Commit 35a5dfe3 by 杨明

Merge branch 'SAAS+V4.52.1' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.52.1

2 parents f20a0ad5 960f4843
......@@ -174,7 +174,7 @@ export default {
customerInfo () {
return this.$store.state.user.customerInfo
},
viewKey(){
viewKey () {
return this.$store.state.user.viewKey
}
},
......@@ -188,19 +188,13 @@ export default {
viewKey: {
immediate: true,
handler (newval) {
if (this.channelType == 1) {
let { carModelId } = this.customerInfo
const isAito = this.aitoCarModelIds?.findIndex(e => e == carModelId)
if (isAito == -1) {
this.pageToolList = this.toolList.filter(e => !e.isAito)
} else this.pageToolList = this.toolList
}
this.setPageToolList()
}
},
toolList: {
immediate: true,
handler (newval) {
this.pageToolList = newval
this.setPageToolList()
}
},
},
......@@ -296,6 +290,15 @@ export default {
scale (e) {
let { id } = this
this.scaleValueObject[id] = e
},
setPageToolList () {
if (this.channelType == 1) {
let { carModelId } = this.customerInfo
const isAito = this.aitoCarModelIds?.findIndex(e => e == carModelId)
if (carModelId && isAito == -1) {
this.pageToolList = this.toolList.filter(e => !e.isAito)
} else this.pageToolList = this.toolList
} else this.pageToolList = this.toolList
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!