From 68e4f07d5312537d4c8b9f8f856265e611e51e14 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期四, 28 八月 2025 21:01:06 +0800
Subject: [PATCH] 搜索
---
src/views/wel/shemi.vue | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index ad0977a..c16667e 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -200,7 +200,7 @@
data() {
let rejectText = '椹冲洖';//+this.row.categoryName;
return {
- isSearch: false,
+ isSearch: null,
treeSearchLoad: false,
drawingNoList: [],
searchLoading: false,
@@ -922,7 +922,7 @@
if (this.searchTreeData.programStatus.length == 0) return;
if (this.searchTreeData.drawingNo == "") return;
this.treeSearchLoad = true;
- this.isSearch = true
+ this.isSearch = !this.isSearch
this.searchTreeData.status = this.searchTreeData.programStatus.join();
this.treeData = []
axios({
@@ -931,7 +931,11 @@
params: this.searchTreeData
}).then(res => {
- if (res.data.data.length == 0) return;
+ if (res.data.data.length == 0) {
+ this.treeData = [];
+ this.treeSearchLoad = false;
+ return
+ };
// this.option.defaultExpandAll = true;
let treeData = this.removeHasChildren(res.data.data);
console.log('treeData', treeData)
@@ -1280,8 +1284,12 @@
},
treeLoad(tree, treeNode, resolve) {
console.log('tree', tree, treeNode, this.option)
+ if(this.isSearch !== null){
+ return
+ }
this.loading = true;
var obj = { parentId: tree.id }
+
axios({
url: '/blade-mdm/program/node/lazy-list',
method: 'get',
@@ -1303,8 +1311,12 @@
},
onLoad() { //鏌ヨtreeTable
+ if(this.isSearch !== null){
+ return
+ }
this.loading = true;
var obj = { parentId: "" }
+
axios({
url: '/blade-mdm/program/node/lazy-list',
method: 'get',
--
Gitblit v1.9.3