diff --git a/jero-web/src/views/documentManage/tags/tabs/TagItem.vue b/jero-web/src/views/documentManage/tags/tabs/TagItem.vue index e1b21eaa8..b76aeb093 100644 --- a/jero-web/src/views/documentManage/tags/tabs/TagItem.vue +++ b/jero-web/src/views/documentManage/tags/tabs/TagItem.vue @@ -3,14 +3,19 @@
- + - + + + + + + - + {{item.showArea}} @@ -58,10 +63,10 @@ - + - + @@ -87,7 +92,11 @@ data(){ return{ spinning:false, - queryParam:{ + queryParamOne:{ + pageNo:1, + pageSize:10, + }, + queryParamTwo:{ pageNo:1, pageSize:10, }, @@ -215,7 +224,8 @@ }); }, searchQuery(){ - this.queryParam.pageNo=1 + this.queryParamOne.pageNo=1 + this.queryParamTwo.pageNo=1 if(this.key==1){ this.loadData(1) }else if(this.key==2){ @@ -223,7 +233,11 @@ } }, searchReset(){ - this.queryParam={ + this.queryParamOne={ + pageNo:0, + pageSize: 10 + } + this.queryParamTwo={ pageNo:0, pageSize: 10 } @@ -248,18 +262,25 @@ loadData(val){ this.spinning=true this.tableData=[] - let params={ - ...this.queryParam, + let paramsOne={ + ...this.queryParamOne, isModel:1 } + let paramsTwo={ + ...this.queryParamTwo, + isModel:1 + } + let paramsItem // console.log('params',params) if(val==1){ // console.log('1') - params.isModel=1 + paramsOne.isModel=1 + paramsItem = paramsOne }else if(val==0){ - params.isModel=0 + paramsTwo.isModel=0 + paramsItem = paramsTwo } - postAction(`tag/onlCgformTag/page`,params).then(res=>{ + postAction(`tag/onlCgformTag/page`,paramsItem).then(res=>{ if(res.success){ this.total=res.result.total this.tableData= [ ...res.result.records] @@ -274,16 +295,16 @@ callbackTab(value){ this.key=value if(value==1){ - this.queryParam.dbFieldTxt='' + this.queryParamOne.dbFieldTxt='' this.submitKey='1' - this.queryParam.pageNo=1 + this.queryParamOne.pageNo=1 this.loadData(1) // this.tableData=this.taglab // this.tableData=this.taglabSplit }else if(value==2){ - this.queryParam.dbFieldTxt='' + this.queryParamTwo.dbFieldTxt='' this.submitKey='2' - this.queryParam.pageNo=1 + this.queryParamTwo.pageNo=1 this.loadData(0) } }, @@ -341,14 +362,14 @@ if (res.success) { if (this.key == 1) { this.$message.success(this.$t('OperationSuccessful')) - if (this.tableData && this.tableData.length == 1 && this.queryParam.pageNo != 1) { - this.queryParam.pageNo = this.queryParam.pageNo - 1 + if (this.tableData && this.tableData.length == 1 && this.queryParamOne.pageNo != 1) { + this.queryParamOne.pageNo = this.queryParamOne.pageNo - 1 } this.loadData(1) } else if (this.key == 2) { this.$message.success(this.$t('OperationSuccessful')) - if (this.tableData && this.tableData.length == 1 && this.queryParam.pageNo != 1) { - this.queryParam.pageNo = this.queryParam.pageNo - 1 + if (this.tableData && this.tableData.length == 1 && this.queryParamTwo.pageNo != 1) { + this.queryParamTwo.pageNo = this.queryParamTwo.pageNo - 1 } this.loadData(0) } @@ -382,14 +403,14 @@ if (this.key == 1) { this.$message.success(this.$t('OperationSuccessful')) if(this.ids&&this.ids.length==this.tableData.length){ - this.queryParam.pageNo=this.queryParam.pageNo-1 + this.queryParamOne.pageNo=this.queryParamOne.pageNo-1 } this.selectedRowKey=[] this.loadData(1) } else if (this.key == 2) { this.$message.success(this.$t('OperationSuccessful')) if(this.ids&&this.ids.length==this.tableData.length){ - this.queryParam.pageNo=this.queryParam.pageNo-1 + this.queryParamTwo.pageNo=this.queryParamTwo.pageNo-1 } this.loadData(0) } @@ -441,17 +462,37 @@ this.isTagContent=true } }, - //接收查询条件 - queryParams(val){ - this.queryParam.pageNo=val.pageNo - this.queryParam.pageSize=val.pageSize + queryParamsOne(val) { + this.queryParamOne.pageNo=val.pageNo + this.queryParamOne.pageSize=val.pageSize if(this.key==1){ this.loadData(1) - }else if(this.key==2){ + } + // else if(this.key==2){ + // this.loadData(0) + // } + }, + queryParamsTwo(val) { + this.queryParamTwo.pageNo=val.pageNo + this.queryParamTwo.pageSize=val.pageSize + // if(this.key==1){ + // this.loadData(1) + // } else + if(this.key==2){ this.loadData(0) } - }, + //接收查询条件 + // queryParams(val){ + // this.queryParam.pageNo=val.pageNo + // this.queryParam.pageSize=val.pageSize + // if(this.key==1){ + // this.loadData(1) + // }else if(this.key==2){ + // this.loadData(0) + // } + // + // }, handleOk () { this.$refs.realForm.submitForm(); },