Commit 45c5069a by 王志慧

更改判断条件

1 parent 5ffdb103
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
// 取消判断 // 取消判断
this.showGh = window.location.host.indexOf('cgacar') == -1 this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) this.judgeGh() if (this.showGh) this.judgeGh()
this.getCardContentFun() this.getCardContentFun()
this.getCardtypeList() this.getCardtypeList()
......
...@@ -463,7 +463,7 @@ export default { ...@@ -463,7 +463,7 @@ export default {
} }
} }
let href = window.location.host let href = window.location.host
this.showGh = href.indexOf('cgacar') == -1 this.showGh = href.indexOf('cgacar') !== -1
}, },
mounted() { mounted() {
......
...@@ -970,7 +970,7 @@ export default { ...@@ -970,7 +970,7 @@ export default {
// 从域名判断是不是广汇的 // 从域名判断是不是广汇的
diffHost() { diffHost() {
let href = window.location.host let href = window.location.host
this.showGh = href.indexOf('cgacar') == -1 this.showGh = href.indexOf('cgacar') !== -1
if (this.showGh) { if (this.showGh) {
let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo') let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo')
let serviceCodeIdx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'serviceCode') let serviceCodeIdx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'serviceCode')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!