|
@@ -930,8 +930,23 @@ watch(() => [
|
|
if (search.length == 0) {
|
|
if (search.length == 0) {
|
|
isSearchTree.value = false
|
|
isSearchTree.value = false
|
|
}
|
|
}
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+//加载树需要的classType
|
|
|
|
+const classType = ref('')
|
|
|
|
+watch(() => [
|
|
|
|
+ classType.value,
|
|
|
|
+], ([classify]) => {
|
|
|
|
+ if (classify) {
|
|
|
|
+ //重新加载左边树
|
|
|
|
+ isShowLeft.value = false
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ isShowLeft.value = true
|
|
|
|
+ }, 500)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+})
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
treeLoading.value = typeName === 'tree'
|
|
treeLoading.value = typeName === 'tree'
|
|
@@ -939,8 +954,6 @@ onMounted(() => {
|
|
getDictionaryApi()
|
|
getDictionaryApi()
|
|
})
|
|
})
|
|
|
|
|
|
-//加载树需要的classType
|
|
|
|
- const classType = ref('')
|
|
|
|
//身份按钮切换数据
|
|
//身份按钮切换数据
|
|
const authBtnTabKey = ref('1')
|
|
const authBtnTabKey = ref('1')
|
|
|
|
|
|
@@ -1135,6 +1148,7 @@ const searchTreeClick = async () => {
|
|
//懒加载的数据
|
|
//懒加载的数据
|
|
const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
let contractIdRelation = '', parentId = '', primaryKeyId = ''
|
|
let contractIdRelation = '', parentId = '', primaryKeyId = ''
|
|
|
|
+ console.log(classType.value, 'classType1111')
|
|
if (level !== 0) {
|
|
if (level !== 0) {
|
|
const nodeData = getObjValue(item)
|
|
const nodeData = getObjValue(item)
|
|
contractIdRelation = nodeData?.contractIdRelation || ''
|
|
contractIdRelation = nodeData?.contractIdRelation || ''
|