GFRS-2504 指定生效日需求-初版提交

This commit is contained in:
bai.jinyan
2021-05-26 10:11:13 +08:00
parent 5dc795930a
commit c3ed28d60d
3 changed files with 74 additions and 11 deletions

View File

@@ -76,14 +76,20 @@ export default {
},
methods: {
checkItemShow(item) {
if (this.activeFlag != 'KMH') {
if (this.activeFlag != 'KMH' && this.activeFlag != 'SQY') {
return true
}
let showFlag = false
if (item.activeLst && item.activeLst.length > 0) {
item.activeLst.forEach(subItem => {
if (subItem == 'KMH') {
showFlag = true
if (this.activeFlag && this.activeFlag == 'KMH') {
if (subItem == 'KMH') {
showFlag = true;
}
}else if (this.activeFlag && this.activeFlag == 'SQY') {
if (subItem == 'SQY') {
showFlag = true;
}
}
})
}