Parcourir la source

表单窗口清除数据

duy il y a 2 ans
Parent
commit
f828a68b2b
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/views/data-fill/collapse-form/index.vue

+ 6 - 1
src/views/data-fill/collapse-form/index.vue

@@ -689,12 +689,17 @@ const handleMenuSelect = async ({ key }) => {
                     }
                     await refs?.getTableFormInfo(pkeyId)
               
-                   nextTick(()=>{
+                   nextTick(async ()=>{
                     listDatas.value[index].isTableRender = true
                     listDatas.value[index].isTableForm = true
                     if (DragModalTableForm.value.length > 0) {
                         DragModalTableForm.value[index].isTableForm = true
                         DragModalTableForm.value[index].isTableRender = true
+                        listDatas.value[index].isWindow = false 
+                        DragModalTableForm.value.splice(index, 1)
+                        await refs?.getTableFormInfo(pkeyId)
+                        windowClick( listDatas.value[index], index)
+                     
                     }
                     window.$message.success(msg)
                    })