修改禅道已知bug
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
<div class="Virtual-detail-left">
|
<div class="Virtual-detail-left">
|
||||||
<div class="Virtual-detail-left-text" :title="$t('projectDetails')"
|
<div class="Virtual-detail-left-text" :title="$t('projectDetails')"
|
||||||
v-has="'projectLawsInventory:projectDetails'"
|
v-has="'projectLawsInventory:projectDetails'"
|
||||||
|
v-if="isTrue"
|
||||||
@click="textClick(0,$t('projectDetails'))">
|
@click="textClick(0,$t('projectDetails'))">
|
||||||
<a-icon type="container"/>
|
<a-icon type="container"/>
|
||||||
{{$t('projectDetails')}}
|
{{$t('projectDetails')}}
|
||||||
@@ -101,7 +102,7 @@
|
|||||||
title: this.$t('projectDetails'),
|
title: this.$t('projectDetails'),
|
||||||
isDisplayNum: '',
|
isDisplayNum: '',
|
||||||
textTitle: '',
|
textTitle: '',
|
||||||
isTrue: false,
|
isTrue: true,
|
||||||
url: {
|
url: {
|
||||||
logList: '/project/projectLawsInventoryLogEO/page',
|
logList: '/project/projectLawsInventoryLogEO/page',
|
||||||
historicalVersionUrl: '',
|
historicalVersionUrl: '',
|
||||||
@@ -134,7 +135,15 @@
|
|||||||
this.textTitle = this.$t('TaskParameterCollection')
|
this.textTitle = this.$t('TaskParameterCollection')
|
||||||
}
|
}
|
||||||
} else {
|
} 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: {
|
methods: {
|
||||||
@@ -145,6 +154,7 @@
|
|||||||
textColor[0].classList.remove('Virtual-detail-left-text-color')
|
textColor[0].classList.remove('Virtual-detail-left-text-color')
|
||||||
}
|
}
|
||||||
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
||||||
|
console.log(text)
|
||||||
if (name == 0) {
|
if (name == 0) {
|
||||||
text[name].classList.add('Virtual-detail-left-text-color')
|
text[name].classList.add('Virtual-detail-left-text-color')
|
||||||
this.textTitle = text[name].title
|
this.textTitle = text[name].title
|
||||||
@@ -217,14 +227,14 @@
|
|||||||
dataSource.forEach(res => {
|
dataSource.forEach(res => {
|
||||||
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ','
|
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ','
|
||||||
})
|
})
|
||||||
|
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
|
||||||
|
this.isTrue = true
|
||||||
|
} else {
|
||||||
|
this.isTrue = false
|
||||||
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
|
this.textColor(0)
|
||||||
this.isTrue = true
|
|
||||||
} else {
|
|
||||||
this.isTrue = false
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.textColor(0)
|
|
||||||
} else {
|
} else {
|
||||||
this.textColor(0)
|
this.textColor(0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user