guhongwei 4 سال پیش
والد
کامیت
8d4d9c87c0
2فایلهای تغییر یافته به همراه18 افزوده شده و 3 حذف شده
  1. 14 1
      src/views/adminCenter/xmly/index.vue
  2. 4 2
      src/views/hall/direct.vue

+ 14 - 1
src/views/adminCenter/xmly/index.vue

@@ -32,7 +32,15 @@
                     <upload :limit="1" :data="form.picture" type="picture" :url="'/files/imgpath/upload'" @upload="uploadSuccess"></upload>
                   </el-form-item>
                   <el-form-item label="视频" prop="filepath">
-                    <upload :limit="1" :data="form.filepath" type="filepath" listType="" :url="'/files/imgpath/upload'" @upload="uploadSuccess"></upload>
+                    <uploaddock
+                      :limit="1"
+                      :data="form.filepath"
+                      type="filepath"
+                      listType=""
+                      :url="'/files/imgpath/upload'"
+                      @upload="uploadSuccess"
+                      @delete="uploadDelete"
+                    ></uploaddock>
                   </el-form-item>
                   <el-form-item label="信息内容">
                     <wang-editor v-model="form.content" placeholder="请输入信息内容"></wang-editor>
@@ -64,6 +72,7 @@
 <script>
 import WangEditor from '@/components/wang-editor.vue';
 import upload from '@/components/upload.vue';
+import uploaddock from '@/components/uploaddock.vue';
 import dataTable from '@/components/data-table.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions: dock } = createNamespacedHelpers('dock');
@@ -75,6 +84,7 @@ export default {
     dataTable,
     WangEditor,
     upload,
+    uploaddock,
   },
   data: function() {
     return {
@@ -169,6 +179,9 @@ export default {
     uploadSuccess({ type, data }) {
       this.$set(this.form, `${type}`, data.uri);
     },
+    uploadDelete(index) {
+      this.$set(this.form, `filepath`, '');
+    },
   },
   computed: {
     ...mapState(['user']),

+ 4 - 2
src/views/hall/direct.vue

@@ -105,7 +105,7 @@
                     >
                       <p>
                         <span class="textOver">{{ item.title }}</span>
-                        <span>时间:{{ item.publish_time }}</span>
+                        <span>{{ item.publish_time }}</span>
                       </p>
                       <p>
                         {{ item.titlejj }}
@@ -533,7 +533,7 @@ export default {
             list-style-type: none;
             float: left;
             width: 100%;
-            height: 450px;
+            height: 470px;
             overflow-y: auto;
             overflow-x: hidden;
             li {
@@ -560,6 +560,7 @@ export default {
                 width: 30%;
                 height: 30px;
                 line-height: 30px;
+                text-align: right;
               }
               p:last-child span {
                 float: left;
@@ -567,6 +568,7 @@ export default {
                 padding: 5px 0;
                 font-size: 14px;
                 color: #666;
+                text-align: right;
               }
             }
             li:nth-child(5) {