|
@@ -47,7 +47,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="tentative_parameter_sieve_del">
|
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn color="#e03997" @click="delNodeModalClick">
|
|
|
+ <el-button v-del-com:[delNodeModalClick] :disabled="tableCheckedKeys.length <= 0" hc-btn color="#e03997">
|
|
|
<HcIcon name="delete-bin-2" />
|
|
|
<span>删除</span>
|
|
|
</el-button>
|
|
@@ -202,15 +202,12 @@ const contextMenuClick = ({ key, item }) => {
|
|
|
addEditNodeFormModel.value = item
|
|
|
addEditNodeFormModal.value = true
|
|
|
} else if (key === 'del') {
|
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- instance.confirmButtonLoading = true
|
|
|
- delClassification(item)
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- done()
|
|
|
- } else {
|
|
|
- done()
|
|
|
- }
|
|
|
+ HcDelMsg({}, async (instance, resolve) => {
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
+ instance.confirmButtonText = '删除中...'
|
|
|
+ await delClassification(item)
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -439,17 +436,9 @@ const addEditFormClick = async () => {
|
|
|
|
|
|
|
|
|
//删除分类
|
|
|
-const delNodeModalClick = () => {
|
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- instance.confirmButtonLoading = true
|
|
|
- tableRemoveData()
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- done()
|
|
|
- } else {
|
|
|
- done()
|
|
|
- }
|
|
|
- })
|
|
|
+const delNodeModalClick = async (_, resolve) => {
|
|
|
+ await tableRemoveData()
|
|
|
+ resolve()
|
|
|
}
|
|
|
|
|
|
//批量删除
|