|
@@ -137,7 +137,7 @@ import Iam from '@/api/iamlogin/iamlogin'
|
|
|
import documentApi from '@/api/oilsupplier/document'
|
|
import documentApi from '@/api/oilsupplier/document'
|
|
|
import SIdentify from '@/components/VCode.vue'
|
|
import SIdentify from '@/components/VCode.vue'
|
|
|
import Cookies from 'js-cookie'
|
|
import Cookies from 'js-cookie'
|
|
|
-import Base64 from 'base-64'
|
|
|
|
|
|
|
+import Base64 from 'base-64'
|
|
|
// import { JSEncrypt } from 'jsencrypt'
|
|
// import { JSEncrypt } from 'jsencrypt'
|
|
|
// import {mapGetters} from 'vuex'
|
|
// import {mapGetters} from 'vuex'
|
|
|
@Component({
|
|
@Component({
|
|
@@ -264,9 +264,9 @@ import Base64 from 'base-64'
|
|
|
this.$router.push({ path: '/' })
|
|
this.$router.push({ path: '/' })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error({
|
|
this.$message.error({
|
|
|
- duration: 10000,
|
|
|
|
|
- message: '您无权限登陆本系统'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ duration: 10000,
|
|
|
|
|
+ message: '您无权限登陆本系统'
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -400,7 +400,7 @@ import Base64 from 'base-64'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- //加密
|
|
|
|
|
|
|
+ // 加密
|
|
|
// encrypt () {
|
|
// encrypt () {
|
|
|
// // global.navigator = {
|
|
// // global.navigator = {
|
|
|
// // userAgent: 'node.js'
|
|
// // userAgent: 'node.js'
|
|
@@ -434,14 +434,14 @@ import Base64 from 'base-64'
|
|
|
this.login()
|
|
this.login()
|
|
|
} else if (res.data.items === 3) {
|
|
} else if (res.data.items === 3) {
|
|
|
this.$message.error({
|
|
this.$message.error({
|
|
|
- duration: 10000,
|
|
|
|
|
- message: '您无权限登陆本系统'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ duration: 10000,
|
|
|
|
|
+ message: '您无权限登陆本系统'
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error({
|
|
this.$message.error({
|
|
|
- duration: 10000,
|
|
|
|
|
- message: '账号或密码错误'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ duration: 10000,
|
|
|
|
|
+ message: '账号或密码错误'
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
this.identifyCode = ''
|
|
this.identifyCode = ''
|
|
|
this.makeCode(this.identifyCodes, 4)
|
|
this.makeCode(this.identifyCodes, 4)
|
|
@@ -449,9 +449,9 @@ import Base64 from 'base-64'
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
this.$message.error({
|
|
this.$message.error({
|
|
|
- duration: 10000,
|
|
|
|
|
- message: '账号或密码错误'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ duration: 10000,
|
|
|
|
|
+ message: '账号或密码错误'
|
|
|
|
|
+ })
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
this.identifyCode = ''
|
|
this.identifyCode = ''
|
|
|
this.makeCode(this.identifyCodes, 4)
|
|
this.makeCode(this.identifyCodes, 4)
|