修改已知问题
This commit is contained in:
@@ -51,7 +51,8 @@
|
||||
<div class="Virtual-detail-right">
|
||||
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === '项目详情'"/>
|
||||
<listOfRegulations v-else-if="textTitle === '法规清单'"/>
|
||||
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility" v-else-if="textTitle === '任务清单'"/>
|
||||
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
|
||||
v-else-if="textTitle === '任务清单'"/>
|
||||
<TaskParameterCollection v-else-if="textTitle === '认证参数收集'"/>
|
||||
<nonConformance v-else-if="textTitle === '未符合项'"/>
|
||||
</div>
|
||||
@@ -89,29 +90,47 @@
|
||||
data() {
|
||||
return {
|
||||
title: this.$t('projectDetails'),
|
||||
isDisplayNum:'',
|
||||
isDisplayNum: '',
|
||||
textTitle: '项目详情',
|
||||
url: {
|
||||
logList: '/project/projectLawsInventoryLogEO/page',
|
||||
historicalVersionUrl: '',
|
||||
queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId'
|
||||
},
|
||||
areaOfResponsibility:{},
|
||||
areaOfResponsibility: {}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.textColor()
|
||||
this.textColor(0)
|
||||
this.getTaskId()
|
||||
if (this.$route.query.type) {
|
||||
if (this.$route.query.type == '101') {
|
||||
this.textColor(0)
|
||||
this.textTitle = '详情详情'
|
||||
} else if (this.$route.query.type == '102') {
|
||||
this.textColor(1)
|
||||
this.textTitle = '法规清单'
|
||||
} else if (this.$route.query.type == '103') {
|
||||
this.textColor(2)
|
||||
this.textTitle = '任务清单'
|
||||
} else if (this.$route.query.type == '104') {
|
||||
this.textColor(3)
|
||||
this.textTitle = '未符合项'
|
||||
} else if (this.$route.query.type == '105') {
|
||||
this.textColor(4)
|
||||
this.textTitle = '认证参数收集'
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
textColor() {
|
||||
textColor(num) {
|
||||
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
||||
if (textColor && textColor.length > 0) {
|
||||
textColor[0].classList.remove('Virtual-detail-left-text-color')
|
||||
}
|
||||
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
||||
if (text && text.length > 0) {
|
||||
text[0].classList.add('Virtual-detail-left-text-color')
|
||||
text[num].classList.add('Virtual-detail-left-text-color')
|
||||
}
|
||||
},
|
||||
textClick(num, name) {
|
||||
@@ -138,11 +157,11 @@
|
||||
}
|
||||
getAction(this.url.queryUserPremissionByProjectLibraryId, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.isDisplayNum = res.result
|
||||
this.isDisplayNum = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
TaskListChange(item){
|
||||
TaskListChange(item) {
|
||||
this.areaOfResponsibility = item
|
||||
this.textTitle = '任务清单'
|
||||
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
||||
@@ -151,7 +170,7 @@
|
||||
}
|
||||
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
||||
text[2].classList.add('Virtual-detail-left-text-color')
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user