修改禅道已知bug

This commit is contained in:
qq787203167
2022-06-15 11:46:26 +08:00
parent eb4d6eb4e3
commit 90ef924ccd
@@ -29,6 +29,7 @@
<div class="Virtual-detail-left">
<div class="Virtual-detail-left-text" :title="$t('projectDetails')"
v-has="'projectLawsInventory:projectDetails'"
v-if="isTrue"
@click="textClick(0,$t('projectDetails'))">
<a-icon type="container"/>
{{$t('projectDetails')}}
@@ -101,7 +102,7 @@
title: this.$t('projectDetails'),
isDisplayNum: '',
textTitle: '',
isTrue: false,
isTrue: true,
url: {
logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '',
@@ -134,7 +135,15 @@
this.textTitle = this.$t('TaskParameterCollection')
}
} else {
this.getList()
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
if (this.userInfo().userRoleList.length == 1 && this.userInfo().userRoleList[0].roleCode == 'sdt') {
this.getList()
} else {
this.textColor(0)
}
} else {
this.textColor(0)
}
}
},
methods: {
@@ -145,6 +154,7 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
console.log(text)
if (name == 0) {
text[name].classList.add('Virtual-detail-left-text-color')
this.textTitle = text[name].title
@@ -217,14 +227,14 @@
dataSource.forEach(res => {
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ','
})
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
this.isTrue = true
} else {
this.isTrue = false
}
this.$nextTick(() => {
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
this.isTrue = true
} else {
this.isTrue = false
}
this.textColor(0)
})
this.textColor(0)
} else {
this.textColor(0)
}