From 0c87c4120feed4468fb1ad7bdedb0d14b0dc8493 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期四, 28 八月 2025 20:47:59 +0800
Subject: [PATCH] 搜索
---
src/views/wel/shemi.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index 66c1bcd..ad0977a 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -538,7 +538,7 @@
label: '閿佸畾鐘舵��',
prop: 'isLocked',
formatter: (val, value, label) => {
- if (val.nodeType == '60' || val.nodeType == '70') {
+ if (val.nodeType == '60') {
if (value == 1) {
return '宸查攣瀹�';
} else {
@@ -930,13 +930,14 @@
method: 'get',
params: this.searchTreeData
}).then(res => {
- this.treeSearchLoad = false;
+
if (res.data.data.length == 0) return;
// this.option.defaultExpandAll = true;
let treeData = this.removeHasChildren(res.data.data);
console.log('treeData', treeData)
this.option = Object.assign({},this.option,{defaultExpandedKeys: this.defaultExpandedKeys,lazy: true,defaultExpandAll: true});
setTimeout(() => {
+ this.treeSearchLoad = false;
this.treeData = treeData;
this.$nextTick(() => {
this.highlightTargetRow(); // 璁剧疆褰撳墠琛岄珮浜�
@@ -951,7 +952,7 @@
if (this.treeData.length == 0) {
return;
}
- }, 100);
+ }, 1000);
});
--
Gitblit v1.9.3