Bladeren bron

上传文件修改

duy 2 maanden geleden
bovenliggende
commit
83c831c43e
2 gewijzigde bestanden met toevoegingen van 10 en 3 verwijderingen
  1. 2 0
      src/views/data-fill/collapse-form/index.vue
  2. 8 3
      src/views/data-fill/wbs.vue

+ 2 - 0
src/views/data-fill/collapse-form/index.vue

@@ -309,6 +309,8 @@
             :datas="uploadData"
             :file-list="fileListData"
             :is-canupload="false"
+            :auto-upload="false"
+            :is-list-file="true"
             @change="uploadChange"
             @close="uploadModalClose"
         />

+ 8 - 3
src/views/data-fill/wbs.vue

@@ -1268,7 +1268,7 @@
                             class="hc-attachment-item"
                         >
                             <div class="hc-attachment-file-name">
-                                <HcIcon name="arrow-up-down" class="text-blue" />
+                                <HcIcon name="drag-move-2" class="text-blue" />
                                 <HcIcon name="attachment" class="ml-2" />
                                 <div class="name">{{ item1?.name }}</div>
                             </div>
@@ -3092,8 +3092,11 @@ const abolishOneSave = async () => {
 const attachmentModal = ref(false)
 const attachmentModalShow = () => {
     attachmentModal.value = true
-      initSortable()
+
     getAttachmentList()
+    nextTick(()=>{
+          initSortable()
+    })
 }
 const attachmentListLoaing = ref(false)
 const attachmentList = ref([])
@@ -3166,7 +3169,9 @@ const saveFileOrder = async () => {
 
 // 监听attachmentList变化时初始化拖拽
 watch(() => attachmentList.value, () => {
-  initSortable()
+     nextTick(()=>{
+          initSortable()
+    })
 }, { deep: true })
 //预览
 const previewFile = (item) => {