|
@@ -1986,6 +1986,7 @@ import {
|
|
|
selectPrivateFormElements,
|
|
|
syncCurrentFormInProject,
|
|
|
getQueryValueByType,
|
|
|
+ getQueryValueByNodeType
|
|
|
} from "@/api/manager/wbstree";
|
|
|
import {
|
|
|
saveElement,
|
|
@@ -2912,7 +2913,25 @@ export default {
|
|
|
this.searchtreeLoad = false;
|
|
|
},
|
|
|
filterSearchClick(){
|
|
|
+
|
|
|
+ this.isSearch = true;
|
|
|
+ this.searchtreeLoad = true;
|
|
|
+ getQueryValueByNodeType({
|
|
|
+ queryValue: this.filterText,
|
|
|
+ wbsId: this.id,
|
|
|
+ projectId: this.projectid,
|
|
|
+ }).then((res) => {
|
|
|
+ let arr = [];
|
|
|
+ if (Array.isArray(res.data.data)) {
|
|
|
+ arr = res.data.data;
|
|
|
+ this.searchTreeData = arr;
|
|
|
+ } else {
|
|
|
+ this.searchTreeData = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
+ this.searchtreeLoad = false;
|
|
|
},
|
|
|
clearSearch() {
|
|
|
this.isSearch = false;
|