Răsfoiți Sursa

表单窗口清除数据

duy 2 ani în urmă
părinte
comite
f828a68b2b
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  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)
                    })