|
@@ -494,20 +494,34 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
searchChange(){
|
|
|
- if(this.treeId){
|
|
|
- this.onLoad2()
|
|
|
+ if(this.treeId){
|
|
|
+ this.page.current=1;
|
|
|
+ this.page.currentPage=1
|
|
|
+ this.page.size=10;
|
|
|
+ this.onLoad2()
|
|
|
}else{
|
|
|
+ if(this.input3){
|
|
|
this.tabloading=true;
|
|
|
+ this.page.current=1;
|
|
|
+ this.page.currentPage=1
|
|
|
+ this.page.size=10;
|
|
|
this.tabTypeLazyTree(this.curTreeData.id, this.projectid, this.page.current,this.page.size,this.input3).then((res)=>{
|
|
|
console.log(res.records);
|
|
|
this.loadData=res.records;
|
|
|
this.page.total=res.total;
|
|
|
this.tabloading=false;
|
|
|
})
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ this.$message.warning('请输入你想搜索的表单名称')
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
currentChange (currentPage) {
|
|
|
this.page.current = currentPage;
|
|
|
+
|
|
|
// this.searchChange();
|
|
|
|
|
|
},
|
|
@@ -520,6 +534,7 @@ export default {
|
|
|
},
|
|
|
clearinput(){
|
|
|
this.searchChange()
|
|
|
+
|
|
|
},
|
|
|
onLoad2(){
|
|
|
|
|
@@ -574,13 +589,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(page){
|
|
|
- this.tabloading=true
|
|
|
- this.tabTypeLazyTree(this.treeId,this.projectid, page.currentPage,page.pageSize,this.input3).then((res)=>{
|
|
|
- this.loadData=res.records
|
|
|
- this.page.total=res.total
|
|
|
+ if(this.input3||this.treeId){
|
|
|
+ this.tabloading=true;
|
|
|
+ this.tabTypeLazyTree(this.treeId,this.projectid, page.currentPage,page.pageSize,this.input3).then((res)=>{
|
|
|
+ this.loadData=res.records
|
|
|
+ this.page.total=res.total
|
|
|
this.tabloading=false
|
|
|
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|