Browse Source

删除选择修改

duy 5 months ago
parent
commit
e8dc09a091
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/data-fill/division.vue

+ 9 - 2
src/views/data-fill/division.vue

@@ -15,11 +15,11 @@
 
                     <hc-tooltip keys="data-division-batch-btn">
                         <el-button
-                            
+                            :disabled="isLoading || leftPid === ''"
                             :loading="batchDelLoading"
                             hc-btn
                             type="danger"
-                            :disabled="leftPid === ''"
+                          
                             @click="batchDelClick"
                         >
                             <HcIcon name="delete" />
@@ -35,6 +35,8 @@
             >
                 <el-scrollbar>
                     <HcLazyTree
+                        v-model:loading="isLoading"
+                        :is-auto-check="true"
                         show-checkbox
                         :auto-expand-keys="treeAutoExpandKeys"
                         is-counts
@@ -1173,6 +1175,11 @@ watch(
 const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
 //自动展开缓存
 const TreeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
+//监听
+const isLoading = ref(false)
+watch(isLoading, (newVal) => {
+  console.log('加载状态变化:', newVal)
+})
 //渲染完成
 onMounted(() => {
     //setElTreeMenu()