瀏覽代碼

拖拽的bug

xiaochan 3 年之前
父節點
當前提交
28945b0899
共有 1 個文件被更改,包括 11 次插入10 次删除
  1. 11 10
      src/components/si-sheet-upload/JieSuanDanXiangQing.vue

+ 11 - 10
src/components/si-sheet-upload/JieSuanDanXiangQing.vue

@@ -769,21 +769,22 @@ export default {
             })
           }, 1000)
         }
-        if (diseinfo.value.length > 0) {
-          setTimeout(() => {
-            sortableDiseinfo()
-          }, 100)
-        }
-        if (oprninfo.value.length > 0) {
-          setTimeout(() => {
-            sortableOprninfo()
-          }, 100)
-        }
+
         //初始化拖拽表格
       } else {
         diseinfo.value = clone(props.data.ybZyDisDiag)
         oprninfo.value = clone(props.data.batjBa4)
       }
+      if (diseinfo.value.length > 0) {
+        setTimeout(() => {
+          sortableDiseinfo()
+        }, 100)
+      }
+      if (oprninfo.value.length > 0) {
+        setTimeout(() => {
+          sortableOprninfo()
+        }, 100)
+      }
       zhenDuanQuery.value.medType = props.data.medType
     }