|
@@ -44,6 +44,7 @@ import TreeNodeChildren from './children.vue'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
import { getArrValue, getObjValue, getRandom, isArrItem } from 'js-fast-way'
|
|
import { getArrValue, getObjValue, getRandom, isArrItem } from 'js-fast-way'
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
|
|
+import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
|
|
|
//参数
|
|
//参数
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -107,17 +108,11 @@ watch(() => [
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
const useRoutes = useRoute()
|
|
const useRoutes = useRoute()
|
|
- tableOwner.value = useRoutes.query?.tableOwner
|
|
|
|
- classifyType.value = useRoutes.query?.classifyType
|
|
|
|
- console.log(tableOwner.value, 'tableOwner.value ')
|
|
|
|
|
|
+ tableOwner.value = getStoreValue('tableOwner')
|
|
|
|
+ classifyType.value = getStoreValue('classifyType')
|
|
getTreeOneLevel()
|
|
getTreeOneLevel()
|
|
})
|
|
})
|
|
-onActivated(() => {
|
|
|
|
- const useRoutes = useRoute()
|
|
|
|
- tableOwner.value = useRoutes.query?.tableOwner
|
|
|
|
- classifyType.value = useRoutes.query?.classifyType
|
|
|
|
|
|
|
|
-})
|
|
|
|
|
|
|
|
|
|
|
|
//导图结构树节点查询
|
|
//导图结构树节点查询
|