diff --git a/src/components/selection/TreeDataSelectModal.vue b/src/components/selection/TreeDataSelectModal.vue
index b809921..090fd1b 100644
--- a/src/components/selection/TreeDataSelectModal.vue
+++ b/src/components/selection/TreeDataSelectModal.vue
@@ -10,40 +10,44 @@
@cancel="handleCancel">
-
- {{ item[replaceFields.title] }}
-
+
+
+
+ {{ item[replaceFields.title] }}
+
+
-
-
+
+
@@ -162,6 +166,8 @@ export default {
width: 800,
visible: false,
confirmLoading: false,
+ topLoading: false,
+ bottomLoading: false,
parentChildRelate: true, // 父子节点是否关联
autoExpandParent: false, // 是否自动展开父节点
treeData: [],
@@ -324,7 +330,7 @@ export default {
if (node.dataRef.children) {
return
}
- this.confirmLoading = true
+ this.topLoading = true
const params = {}
params.dictId = this.dictId
// 查询条件的名称
@@ -338,7 +344,7 @@ export default {
node.dataRef[this.replaceFields.children] = res.result.record || res.result
}
}).finally(() => {
- this.confirmLoading = false
+ this.topLoading = false
})
},
handleCancel () {
@@ -378,7 +384,7 @@ export default {
}
},
getTreeData () {
- this.confirmLoading = true
+ this.topLoading = true
const params = {}
params.dictId = this.dictId
getAction(this.optionsHref, params).then(res => {
@@ -386,7 +392,7 @@ export default {
this.treeData = res.result.records || res.result
}
}).finally(() => {
- this.confirmLoading = false
+ this.topLoading = false
})
},
// 已选数据列表的删除
@@ -411,6 +417,7 @@ export default {
this.close()
},
getSelectedList (codes) {
+ this.bottomLoading = true
const params = {
selectNodeCodes: codes,
dictId: this.dictId
@@ -429,6 +436,8 @@ export default {
if (res.success) {
this.dataSourceRight = JSON.parse(JSON.stringify(res.result))
}
+ }).finally(() => {
+ this.bottomLoading = false
})
}
}