|
@@ -37,7 +37,7 @@
|
|
<HcLazyTree
|
|
<HcLazyTree
|
|
v-model:loading="isLoading"
|
|
v-model:loading="isLoading"
|
|
:is-auto-check="true"
|
|
:is-auto-check="true"
|
|
- show-checkbox
|
|
|
|
|
|
+ :show-checkbox="isShowCheckbox"
|
|
:auto-expand-keys="treeAutoExpandKeys"
|
|
:auto-expand-keys="treeAutoExpandKeys"
|
|
is-counts
|
|
is-counts
|
|
is-type
|
|
is-type
|
|
@@ -1126,7 +1126,7 @@ import HcTreeData1 from './components/division/HcTreeData1.vue'
|
|
import DivisionTree from './components/division/DivisionTree.vue'
|
|
import DivisionTree from './components/division/DivisionTree.vue'
|
|
import HcTreeNode from './components/HcTreeNode.vue'
|
|
import HcTreeNode from './components/HcTreeNode.vue'
|
|
import divisionDialog from './components/divisionDialog.vue'
|
|
import divisionDialog from './components/divisionDialog.vue'
|
|
-
|
|
|
|
|
|
+import { HcIsButton } from '~src/plugins/IsButtons'
|
|
import {
|
|
import {
|
|
arrIndex,
|
|
arrIndex,
|
|
arrToId,
|
|
arrToId,
|
|
@@ -1170,7 +1170,7 @@ watch(
|
|
isCollapse.value = Collapse
|
|
isCollapse.value = Collapse
|
|
},
|
|
},
|
|
)
|
|
)
|
|
-
|
|
|
|
|
|
+const isShowCheckbox = ref(false)
|
|
//自动展开缓存
|
|
//自动展开缓存
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
//自动展开缓存
|
|
//自动展开缓存
|
|
@@ -1182,6 +1182,11 @@ watch(isLoading, (newVal) => {
|
|
})
|
|
})
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
+ if (HcIsButton('data-division-batch-btn')) {
|
|
|
|
+ isShowCheckbox.value = true
|
|
|
|
+ } else {
|
|
|
|
+ isShowCheckbox.value = false
|
|
|
|
+ }
|
|
//setElTreeMenu()
|
|
//setElTreeMenu()
|
|
getWbsNodeTypeApi()
|
|
getWbsNodeTypeApi()
|
|
getMajorDataTypeApi()
|
|
getMajorDataTypeApi()
|