系统设置登录模块区分
This commit is contained in:
parent
f1ea06327d
commit
53a5b893cb
@ -420,7 +420,7 @@ export default {
|
|||||||
onChange1(val) {
|
onChange1(val) {
|
||||||
if (this.oldVal != '') {
|
if (this.oldVal != '') {
|
||||||
if (this.oldVal != this.form) {
|
if (this.oldVal != this.form) {
|
||||||
;(this.verificateBtn = false), (this.pass = true)
|
; (this.verificateBtn = false), (this.pass = true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -437,7 +437,7 @@ export default {
|
|||||||
onFail() {
|
onFail() {
|
||||||
this.msg = '验证失败'
|
this.msg = '验证失败'
|
||||||
},
|
},
|
||||||
onRefresh() {},
|
onRefresh() { },
|
||||||
getData() {
|
getData() {
|
||||||
getOneComputerAuthApi().then((res) => {
|
getOneComputerAuthApi().then((res) => {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
@ -446,8 +446,10 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getDetail() {
|
getDetail(val) {
|
||||||
selectSystemLogoConfigApi().then((res) => {
|
selectSystemLogoConfigApi({
|
||||||
|
headquartersSn: val
|
||||||
|
}).then((res) => {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log('查看有没有背景图', res)
|
console.log('查看有没有背景图', res)
|
||||||
console.log(window.location.protocol)
|
console.log(window.location.protocol)
|
||||||
@ -492,7 +494,6 @@ export default {
|
|||||||
})
|
})
|
||||||
} else if (LOGINTYPE == 2) {
|
} else if (LOGINTYPE == 2) {
|
||||||
console.log(2222222222222)
|
console.log(2222222222222)
|
||||||
|
|
||||||
companyLoginApi(this.form).then((res) => {
|
companyLoginApi(this.form).then((res) => {
|
||||||
this.parseLoginData(res.result)
|
this.parseLoginData(res.result)
|
||||||
})
|
})
|
||||||
@ -574,6 +575,7 @@ export default {
|
|||||||
'Bearer' + ' ' + data.token
|
'Bearer' + ' ' + data.token
|
||||||
this.$http.defaults.headers.common['operateId'] = data.userId
|
this.$http.defaults.headers.common['operateId'] = data.userId
|
||||||
this.$store.commit('setUserInfo', data)
|
this.$store.commit('setUserInfo', data)
|
||||||
|
|
||||||
var moduleList = data.menuAuthority.moduleList
|
var moduleList = data.menuAuthority.moduleList
|
||||||
? data.menuAuthority.moduleList
|
? data.menuAuthority.moduleList
|
||||||
: []
|
: []
|
||||||
@ -685,6 +687,7 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.getDetail(this.$store.state.userInfo.headquartersSn)
|
||||||
this.selectMp3FileList()
|
this.selectMp3FileList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user