|
@@ -103,6 +103,8 @@ export default {
|
|
this.timer = setInterval(function () {
|
|
this.timer = setInterval(function () {
|
|
that.initNotice()
|
|
that.initNotice()
|
|
}, 3000)
|
|
}, 3000)
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
this.userInfo = JSON.parse(localStorage.getItem("supply_user"))
|
|
this.userInfo = JSON.parse(localStorage.getItem("supply_user"))
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -177,6 +179,7 @@ export default {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$successMsg("绑定成功,正在打开工程机系统")
|
|
this.$successMsg("绑定成功,正在打开工程机系统")
|
|
this.$store.dispatch('user/getInfo').then(() => {
|
|
this.$store.dispatch('user/getInfo').then(() => {
|
|
|
|
+ this.userInfo.bindEngin = true
|
|
this.userInfo.enginUserName = this.engineForm.account
|
|
this.userInfo.enginUserName = this.engineForm.account
|
|
this.userInfo.enginPassword = this.engineForm.password
|
|
this.userInfo.enginPassword = this.engineForm.password
|
|
this.$refs.engineSubmit.click()
|
|
this.$refs.engineSubmit.click()
|