Przeglądaj źródła

删除提醒修改

duy 1 rok temu
rodzic
commit
6677d2e066

+ 2 - 4
src/views/other-file/image-view.vue

@@ -455,12 +455,10 @@ const delClick = () => {
     const rows = tableCheckedKeys.value
     if (rows.length > 0) {
         const ids = arrToId(rows)
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg( async ( resolve) => {
             await removeImageclassifyFile(ids)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
+         
         })
     } else {
         window.$message?.warning('请先勾选需要删除的资料文件')

+ 1 - 4
src/views/other-file/project-scanning.vue

@@ -910,12 +910,9 @@ const batchDel = () => {
     })
     if (result) {
         const ids = arrToId(rows)
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg( async (resolve) => {
             await removeArchiveFile(ids)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     } else {
         window.$message?.warning('已上报的文件需要先废除,才能执行删除')

+ 1 - 4
src/views/other/first-item.vue

@@ -633,12 +633,9 @@ const tableFileData = ref([])
 const tableDelButton = (index) => {
     const arr = tableFileData.value
     if (arr.length > 1) {
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg( async ( resolve) => {
             tableFileData.value.splice(index, 1)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     } else {
         window?.$message?.warning('至少保留一个文件')

+ 1 - 4
src/views/other/first-itemcopy.vue

@@ -630,12 +630,9 @@ const tableFileData = ref([])
 const tableDelButton = (index) => {
     const arr = tableFileData.value
     if (arr.length > 1) {
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg(async (resolve) => {
             tableFileData.value.splice(index, 1)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     } else {
         window?.$message?.warning('至少保留一个文件')

+ 1 - 4
src/views/tentative/collect/test.vue

@@ -345,12 +345,9 @@ const delModalClick = () => {
         window.$message.warning('请先选择数据')
         return
     }
-    HcDelMsg({}, async (instance, resolve) => {
-        instance.confirmButtonLoading = true
-        instance.confirmButtonText = '删除中...'
+    HcDelMsg(async (resolve) => {
         await removeContractTreeNode()
         resolve() //关闭弹窗的回调
-        instance.confirmButtonLoading = false
     })
 }
 const removeContractTreeNode = async () => {

+ 1 - 4
src/views/tentative/detect/components/HcTreeData.vue

@@ -177,12 +177,9 @@ const handleMenuSelect = ({ key }) => {
         nodeFormModel.value = data
         nodeFormModal.value = true
     } else if (key === 'del') {
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg(async (resolve) => {
             await treeRemoveData(data.id)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     }
 }

+ 1 - 4
src/views/tentative/detect/test.vue

@@ -547,12 +547,9 @@ const delModalClick = () => {
     const rows = tableCheckedKeys.value
     if (rows.length > 0) {
         const ids = arrToId(rows)
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg(async ( resolve) => {
             await removeDataApi(ids)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     } else {
         window.$message?.warning('请先勾选需要删除的记录')

+ 1 - 4
src/views/tentative/device/approach.vue

@@ -502,12 +502,9 @@ const addEditNodeFormModalClose = () => {
 
 //删除分类
 const delNodeModalClick = (id) => {
-    HcDelMsg({}, async (instance, resolve) => {
-        instance.confirmButtonLoading = true
-        instance.confirmButtonText = '删除中...'
+    HcDelMsg(async ( resolve) => {
         await setClassRemove(id)
         resolve() //关闭弹窗的回调
-        instance.confirmButtonLoading = false
     })
 }
 

+ 1 - 4
src/views/tentative/parameter/container.vue

@@ -438,12 +438,9 @@ const addEditNodeFormModalClose = () => {
 
 //删除分类
 const delNodeModalClick = (id) => {
-    HcDelMsg({}, async (instance, resolve) => {
-        instance.confirmButtonLoading = true
-        instance.confirmButtonText = '删除中...'
+    HcDelMsg( async ( resolve) => {
         await removeClassification(id)
         resolve() //关闭弹窗的回调
-        instance.confirmButtonLoading = false
     })
 }
 

+ 1 - 4
src/views/tentative/parameter/sieve.vue

@@ -202,12 +202,9 @@ const contextMenuClick = ({ key, item }) => {
         addEditNodeFormModel.value = { ...item }
         addEditNodeFormModal.value = true
     } else if (key === 'del') {
-        HcDelMsg({}, async (instance, resolve) => {
-            instance.confirmButtonLoading = true
-            instance.confirmButtonText = '删除中...'
+        HcDelMsg( async ( resolve) => {
             await delClassification(item)
             resolve() //关闭弹窗的回调
-            instance.confirmButtonLoading = false
         })
     }
 }