修改责任领域后保留高级搜索查询条件

This commit is contained in:
zyx.net
2022-08-04 13:44:30 +08:00
parent 0e4ff77c64
commit fbf0841835
2 changed files with 13 additions and 1 deletions
@@ -322,6 +322,8 @@
xs: { span: 24 },
sm: { span: 7 }
},
queryParamQuery:{},
queryParam:{},
querySdtList: [], // 工程接口人
Dateline: {},
getquerySdtId: '', // 当前工程接口人的id
@@ -331,6 +333,9 @@
},
mounted() {
this.getHeader()
eventBUs.$on('getTableList', search => {
this.queryParamQuery = search
})
},
watch: {
currentPersonRole: {
@@ -565,7 +570,9 @@
if (!(result.some(val => val.value == res.result.userType))) {
res.result.userType = result[0] ? result[0].value : ''
}
this.queryParam = {...this.queryParamQuery}
this.getTableList(res.result.userType)
} else {
this.getTableList(result[0].value)
}
@@ -650,6 +657,7 @@
},
getTableListReset() {
this.formInline = {}
this.queryParam = {}
let params = {
paramsManifestId: this.$route.query.id,
pageNo: this.pageNo,
@@ -735,7 +743,8 @@
userTypes: this.currentPersonRole || currentPersonRole,
paramsManifestId: paramsManifestid,
...this.formInline,
...currentPersonRole
...currentPersonRole,
...this.queryParam
}
this.loading = true
getAction(url, params).then((res) => {