修改点击责任领域后,跳转未筛选状态

This commit is contained in:
范强强
2023-10-26 14:44:12 +08:00
parent ec44ad553b
commit 4165eee5c6
@@ -128,6 +128,7 @@
<a-select :placeholder="$t('PleaseSelect')+$t('status')" <a-select :placeholder="$t('PleaseSelect')+$t('status')"
class="box-input" class="box-input"
allowClear allowClear
mode="multiple"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.state"> v-model="formInline.state">
<a-select-option v-for="(item, key) in statusList" <a-select-option v-for="(item, key) in statusList"
@@ -1161,17 +1162,13 @@
window.addEventListener('click', this.handleClick) window.addEventListener('click', this.handleClick)
this.GetgetLoginUserType() this.GetgetLoginUserType()
this.getQueryDutyTerritory() this.getQueryDutyTerritory()
console.log(this.currentPersonRole)
if (this.$route.query.type == '1') { if (this.$route.query.type == '1') {
this.handleOkRoleSwitching() this.handleOkRoleSwitching()
} }
if (this.$route.query.statusFlag == '1') { if (this.$route.query.statusFlag) {
this.formInline.state = '1' this.formInline.state = this.$route.query.statusFlag.split(',')
} else if (this.$route.query.statusFlag == '2') {
this.formInline.state = '2'
} else if (this.$route.query.statusFlag == '4') {
this.formInline.state = '4'
} }
this.formInline = { ...this.formInline }
// clearTimeout(this.timeBatch) // clearTimeout(this.timeBatch)
// this.timeBatch = setTimeout(() => { // this.timeBatch = setTimeout(() => {
// if (this.currentPersonRole == 'dre') { // if (this.currentPersonRole == 'dre') {
@@ -1212,9 +1209,9 @@
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
getQueryDutyTerritory() { getQueryDutyTerritory() {
let url = '' let url = ''
if(this.$route.query.it){ if (this.$route.query.it) {
url = '/params/collectManifest/queryDutyTerritoryHistory' url = '/params/collectManifest/queryDutyTerritoryHistory'
}else{ } else {
url = '/params/collectManifest/queryDutyTerritory' url = '/params/collectManifest/queryDutyTerritory'
} }
getAction(url, { id: this.$route.query.id }).then((res) => { getAction(url, { id: this.$route.query.id }).then((res) => {