+
{{$t('listOfRegulations')}}
-
+
-
+
-
+
{{$t('TaskParameterCollection')}}
-
-
+
+
-
-
+ v-else-if="textTitle === $t('taskList')"/>
+
+
@@ -106,19 +110,19 @@
if (this.$route.query.type) {
if (this.$route.query.type == '101') {
this.textColor(0)
- this.textTitle = '详情详情'
+ this.textTitle = this.$t('projectDetails')
} else if (this.$route.query.type == '102') {
this.textColor(1)
- this.textTitle = '法规清单'
+ this.textTitle = this.$t('listOfRegulations')
} else if (this.$route.query.type == '103') {
this.textColor(2)
- this.textTitle = '任务清单'
+ this.textTitle = this.$t('taskList')
} else if (this.$route.query.type == '104') {
this.textColor(3)
- this.textTitle = '未符合项'
+ this.textTitle = this.$t('nonConformance')
} else if (this.$route.query.type == '105') {
this.textColor(4)
- this.textTitle = '认证参数收集'
+ this.textTitle = this.$t('TaskParameterCollection')
}
}
},
@@ -140,7 +144,20 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
- text[num].classList.add('Virtual-detail-left-text-color')
+ console.log(text)
+ for (let i = 0; i < text.length; i++) {
+ if (text[i].title == name) {
+ text[i].classList.add('Virtual-detail-left-text-color')
+ } else if (text[i].title == name) {
+ text[i].classList.add('Virtual-detail-left-text-color')
+ } else if (text[i].title == name) {
+ text[i].classList.add('Virtual-detail-left-text-color')
+ } else if (text[i].title == name) {
+ text[i].classList.add('Virtual-detail-left-text-color')
+ } else if (text[i].title == name) {
+ text[i].classList.add('Virtual-detail-left-text-color')
+ }
+ }
},
UpdateLogClick() {
this.$refs.updateLogRef.getList({ projectLibraryId: this.$route.query.id })
@@ -163,7 +180,7 @@
},
TaskListChange(item) {
this.areaOfResponsibility = item
- this.textTitle = '任务清单'
+ this.textTitle = this.$t('taskList')
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
if (textColor && textColor.length > 0) {
textColor[0].classList.remove('Virtual-detail-left-text-color')