工单导出
This commit is contained in:
@@ -22,7 +22,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
changeColor() {
|
||||
console.log(this.$route);
|
||||
// console.log(this.$route);
|
||||
if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main' || this.$route.path == '/factoryData/hdIndex' || this.$route.path === '/factoryData/factory-data') {
|
||||
return true
|
||||
} else {
|
||||
@@ -34,19 +34,17 @@ export default {
|
||||
changeColor(val) {
|
||||
if (val == true) {
|
||||
let item = document.getElementsByClassName('el-breadcrumb__separator')
|
||||
for (let i in item) {
|
||||
console.log(item[i])
|
||||
if (item[i]) {
|
||||
item[i].style.color = 'rgba(255, 255, 255, 0.45)'
|
||||
}
|
||||
}
|
||||
// for (let i in item) {
|
||||
// console.log('item[i]',item, item[i])
|
||||
// if (item[i].style) {
|
||||
item[0].style.color = 'rgba(255, 255, 255, 0.45)'
|
||||
item[1].style.color = 'rgba(255, 255, 255, 0.45)'
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
let item = document.getElementsByClassName('el-breadcrumb__separator')
|
||||
for (let i in item) {
|
||||
if (item[i]) {
|
||||
// item[i].style.color = '#c0c4cc'
|
||||
}
|
||||
}
|
||||
item[0].style.color = ''
|
||||
item[1].style.color = ''
|
||||
}
|
||||
},
|
||||
$route(route) {
|
||||
|
||||
Reference in New Issue
Block a user