修改责任领域后保留高级搜索查询条件
This commit is contained in:
@@ -322,6 +322,8 @@
|
|||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 7 }
|
sm: { span: 7 }
|
||||||
},
|
},
|
||||||
|
queryParamQuery:{},
|
||||||
|
queryParam:{},
|
||||||
querySdtList: [], // 工程接口人
|
querySdtList: [], // 工程接口人
|
||||||
Dateline: {},
|
Dateline: {},
|
||||||
getquerySdtId: '', // 当前工程接口人的id
|
getquerySdtId: '', // 当前工程接口人的id
|
||||||
@@ -331,6 +333,9 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getHeader()
|
this.getHeader()
|
||||||
|
eventBUs.$on('getTableList', search => {
|
||||||
|
this.queryParamQuery = search
|
||||||
|
})
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
currentPersonRole: {
|
currentPersonRole: {
|
||||||
@@ -565,7 +570,9 @@
|
|||||||
if (!(result.some(val => val.value == res.result.userType))) {
|
if (!(result.some(val => val.value == res.result.userType))) {
|
||||||
res.result.userType = result[0] ? result[0].value : ''
|
res.result.userType = result[0] ? result[0].value : ''
|
||||||
}
|
}
|
||||||
|
this.queryParam = {...this.queryParamQuery}
|
||||||
this.getTableList(res.result.userType)
|
this.getTableList(res.result.userType)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.getTableList(result[0].value)
|
this.getTableList(result[0].value)
|
||||||
}
|
}
|
||||||
@@ -650,6 +657,7 @@
|
|||||||
},
|
},
|
||||||
getTableListReset() {
|
getTableListReset() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
this.queryParam = {}
|
||||||
let params = {
|
let params = {
|
||||||
paramsManifestId: this.$route.query.id,
|
paramsManifestId: this.$route.query.id,
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
@@ -735,7 +743,8 @@
|
|||||||
userTypes: this.currentPersonRole || currentPersonRole,
|
userTypes: this.currentPersonRole || currentPersonRole,
|
||||||
paramsManifestId: paramsManifestid,
|
paramsManifestId: paramsManifestid,
|
||||||
...this.formInline,
|
...this.formInline,
|
||||||
...currentPersonRole
|
...currentPersonRole,
|
||||||
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(url, params).then((res) => {
|
getAction(url, params).then((res) => {
|
||||||
|
|||||||
@@ -424,6 +424,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import TableCollection from '@/components/tableCollection/index'
|
import TableCollection from '@/components/tableCollection/index'
|
||||||
import { getAction, postAction } from '../../../api/manage'
|
import { getAction, postAction } from '../../../api/manage'
|
||||||
|
import eventBUs from '../../../common/event'
|
||||||
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
||||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
||||||
@@ -854,6 +855,7 @@
|
|||||||
}
|
}
|
||||||
this.queryParamQuery = sqp
|
this.queryParamQuery = sqp
|
||||||
this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
|
this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
|
||||||
|
eventBUs.$emit('getTableList',this.queryParamQuery)
|
||||||
},
|
},
|
||||||
// 认证工程师 批量删除 权限
|
// 认证工程师 批量删除 权限
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||||
@@ -1530,6 +1532,7 @@
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
this.queryParamQuery = {}
|
||||||
this.$refs.CollectionTabel.getTableListReset()
|
this.$refs.CollectionTabel.getTableListReset()
|
||||||
this.$refs.globalAdvancedQueryRef.handleReset()
|
this.$refs.globalAdvancedQueryRef.handleReset()
|
||||||
// this.$refs.globalAdvancedQueryRef.emitCallback()
|
// this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
|
|||||||
Reference in New Issue
Block a user