flx:修复安全筛选问题
This commit is contained in:
parent
3b1653ec38
commit
9b5f8bf642
@ -299,6 +299,10 @@
|
|||||||
name: '已撤回',
|
name: '已撤回',
|
||||||
type: 3,
|
type: 3,
|
||||||
value: 6
|
value: 6
|
||||||
|
}, {
|
||||||
|
name: '超期未关闭',
|
||||||
|
type: 3,
|
||||||
|
value: 7
|
||||||
}], //状态
|
}], //状态
|
||||||
urgencyList: [{
|
urgencyList: [{
|
||||||
name: '全部',
|
name: '全部',
|
||||||
@ -378,7 +382,10 @@
|
|||||||
if (option.sourceIdList) {
|
if (option.sourceIdList) {
|
||||||
this.sourceIdList = JSON.parse(option.sourceIdList);
|
this.sourceIdList = JSON.parse(option.sourceIdList);
|
||||||
}
|
}
|
||||||
this.checkedTabType = option.checkedTabType;
|
if(option.checkedTabType) {
|
||||||
|
this.checkedTabType = Number(option.checkedTabType);
|
||||||
|
}
|
||||||
|
|
||||||
this.roleFlag = this.userInfo.accountType==5 || this.userInfo.accountType==10;
|
this.roleFlag = this.userInfo.accountType==5 || this.userInfo.accountType==10;
|
||||||
|
|
||||||
this.getCheckPointList();
|
this.getCheckPointList();
|
||||||
@ -423,8 +430,10 @@
|
|||||||
data,
|
data,
|
||||||
success: res => {
|
success: res => {
|
||||||
// this.countMyTodoInfo = res.result;
|
// this.countMyTodoInfo = res.result;
|
||||||
if(res.result.length == 0) return;
|
if(res.result.length > 0) {
|
||||||
this.roleName = res.result[0].roleName;
|
this.roleName = res.result[0].roleName;
|
||||||
|
};
|
||||||
|
|
||||||
let countNum = 0;
|
let countNum = 0;
|
||||||
if(this.roleFlag || this.roleName.includes('项目管理员') || this.roleName.includes('安全管理员')) {
|
if(this.roleFlag || this.roleName.includes('项目管理员') || this.roleName.includes('安全管理员')) {
|
||||||
countNum = this.checkedTabType ? this.checkedTabType : 0;
|
countNum = this.checkedTabType ? this.checkedTabType : 0;
|
||||||
@ -954,38 +963,41 @@
|
|||||||
this.listData = [];
|
this.listData = [];
|
||||||
this.checkPointName = ''
|
this.checkPointName = ''
|
||||||
this.regionId = []
|
this.regionId = []
|
||||||
|
this.condition.reviewId = '';
|
||||||
|
this.condition.changeId = '';
|
||||||
|
this.condition.verifyManId = ''
|
||||||
|
this.condition.regionId = ''
|
||||||
this.getListData()
|
this.getListData()
|
||||||
},
|
},
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
getListData() {
|
getListData() {
|
||||||
if (this.checkedTab == 2 || this.checkedTab == 5) {
|
if (this.checkedTab == 2 || this.checkedTab == 5) {
|
||||||
this.condition.changeId = this.userInfo.userId
|
this.condition.changeId = this.userInfo.userId
|
||||||
this.condition.reviewId = ''
|
// this.condition.reviewId = ''
|
||||||
this.condition.verifyManId = ''
|
// this.condition.verifyManId = ''
|
||||||
this.condition.regionId = []
|
// this.condition.regionId = []
|
||||||
} else if (this.checkedTab == 3) {
|
} else if (this.checkedTab == 3) {
|
||||||
this.condition.reviewId = this.userInfo.userId
|
this.condition.reviewId = this.userInfo.userId
|
||||||
this.condition.changeId = '';
|
// this.condition.changeId = '';
|
||||||
this.condition.verifyManId = ''
|
// this.condition.verifyManId = ''
|
||||||
this.condition.regionId = []
|
// this.condition.regionId = []
|
||||||
} else if (this.checkedTab == 4) {
|
} else if (this.checkedTab == 4) {
|
||||||
this.condition.verifyManId = this.userInfo.userId
|
this.condition.verifyManId = this.userInfo.userId
|
||||||
this.condition.changeId = '';
|
// this.condition.changeId = '';
|
||||||
this.condition.reviewId = ''
|
// this.condition.reviewId = ''
|
||||||
this.condition.regionId = []
|
// this.condition.regionId = []
|
||||||
} else if (this.checkedTab == 6) {
|
} else if (this.checkedTab == 6) {
|
||||||
this.condition.status = ''
|
// this.condition.status = ''
|
||||||
this.condition.verifyManId = ''
|
// this.condition.verifyManId = ''
|
||||||
this.condition.changeId = '';
|
// this.condition.changeId = '';
|
||||||
this.condition.reviewId = ''
|
// this.condition.reviewId = ''
|
||||||
this.condition.regionId = this.regionId
|
this.condition.regionId = this.regionId
|
||||||
} else {
|
} else {
|
||||||
this.condition.status = ''
|
// this.condition.status = ''
|
||||||
this.condition.reviewId = '';
|
// this.condition.reviewId = '';
|
||||||
this.condition.changeId = '';
|
// this.condition.changeId = '';
|
||||||
this.condition.verifyManId = ''
|
// this.condition.verifyManId = ''
|
||||||
this.condition.regionId = ''
|
// this.condition.regionId = ''
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log('查询列表条件数据', this.checkedTab)
|
console.log('查询列表条件数据', this.checkedTab)
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user