首页
This commit is contained in:
parent
254778bb13
commit
16cf993a89
@ -45,8 +45,8 @@ export default new Vuex.Store({
|
|||||||
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
||||||
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
||||||
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
|
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
|
||||||
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
||||||
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
||||||
/* 2022-05-16 */
|
/* 2022-05-16 */
|
||||||
// tag: 部署河南项目时,需要打开这两行代码
|
// tag: 部署河南项目时,需要打开这两行代码
|
||||||
// UPLOADURL: 'http://124.71.178.44:100/upload/image',
|
// UPLOADURL: 'http://124.71.178.44:100/upload/image',
|
||||||
@ -56,8 +56,8 @@ export default new Vuex.Store({
|
|||||||
// UPLOADURL: 'http://182.90.224.237:7000/upload/image',
|
// UPLOADURL: 'http://182.90.224.237:7000/upload/image',
|
||||||
// FILEURL: 'http://182.90.224.237:7000/image/',
|
// FILEURL: 'http://182.90.224.237:7000/image/',
|
||||||
// 邱平毅的
|
// 邱平毅的
|
||||||
UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
// UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
||||||
FILEURL: 'http://192.168.34.216:6023/image/',
|
// FILEURL: 'http://192.168.34.216:6023/image/',
|
||||||
|
|
||||||
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
|
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
|
||||||
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式
|
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式
|
||||||
|
|||||||
@ -77,6 +77,7 @@
|
|||||||
<el-form :model="form" :rules="rules" ref="form" label-width="0px">
|
<el-form :model="form" :rules="rules" ref="form" label-width="0px">
|
||||||
<el-form-item label="" prop="account">
|
<el-form-item label="" prop="account">
|
||||||
<el-input
|
<el-input
|
||||||
|
@change="onChange1"
|
||||||
v-model="form.account"
|
v-model="form.account"
|
||||||
style="height: 53px; font-size: 16px"
|
style="height: 53px; font-size: 16px"
|
||||||
:placeholder="$t('message.login.account_placeholder')"
|
:placeholder="$t('message.login.account_placeholder')"
|
||||||
@ -90,6 +91,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="margin-top: 25px" label="" prop="password">
|
<el-form-item style="margin-top: 25px" label="" prop="password">
|
||||||
<el-input
|
<el-input
|
||||||
|
@change="onChange2"
|
||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
style="height: 53px; font-size: 16px"
|
style="height: 53px; font-size: 16px"
|
||||||
type="password"
|
type="password"
|
||||||
@ -325,16 +327,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
window._paq.push(["trackEvent", "点击", "登录", "使用账号登录"]);
|
window._paq.push(["trackEvent", "点击", "登录", "使用账号登录"]);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
form:{
|
|
||||||
immediate: true,
|
|
||||||
deep: true,
|
|
||||||
handler(newVal,oldVal){
|
|
||||||
if(newVal != oldVal){
|
|
||||||
console.log("newVal",newVal)
|
|
||||||
console.log("oldVal",oldVal)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -342,7 +334,7 @@ export default {
|
|||||||
this.projectType = PROJECT_TYPE;
|
this.projectType = PROJECT_TYPE;
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$bus.$on('resetSlideVerify',this.onReset)
|
// this.$bus.$on('resetSlideVerify',this.onReset)
|
||||||
delete this.$http.defaults.headers.common["Authorization"];
|
delete this.$http.defaults.headers.common["Authorization"];
|
||||||
if (window.location.href.indexOf("type=lgzbdp") != -1) {
|
if (window.location.href.indexOf("type=lgzbdp") != -1) {
|
||||||
window.localStorage.setItem("isIframe", "1");
|
window.localStorage.setItem("isIframe", "1");
|
||||||
@ -377,6 +369,18 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onChange1(e){
|
||||||
|
if(e!=this.form.account){
|
||||||
|
// this.verificateBtn = false
|
||||||
|
// this.showVerify = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onChange2(e){
|
||||||
|
if(e!=this.form.password){
|
||||||
|
// this.verificateBtn = false
|
||||||
|
// this.showVerify = true
|
||||||
|
}
|
||||||
|
},
|
||||||
onReset() {
|
onReset() {
|
||||||
//重置图片验证组件
|
//重置图片验证组件
|
||||||
this.$refs.slideverify.reset();
|
this.$refs.slideverify.reset();
|
||||||
@ -386,7 +390,7 @@ export default {
|
|||||||
this.showVerify = false
|
this.showVerify = false
|
||||||
this.verificateBtn = true
|
this.verificateBtn = true
|
||||||
this.pass = false
|
this.pass = false
|
||||||
},500)
|
},100)
|
||||||
},
|
},
|
||||||
onFail(){
|
onFail(){
|
||||||
this.msg = '验证失败'
|
this.msg = '验证失败'
|
||||||
@ -429,8 +433,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 验证
|
// 验证
|
||||||
verificateFn(){
|
verificateFn(){
|
||||||
this.showVerify = true,
|
this.showVerify = true
|
||||||
this.$bus.$emit('resetSlideVerify')
|
// this.$bus.$emit('resetSlideVerify')
|
||||||
},
|
},
|
||||||
loginFn() {
|
loginFn() {
|
||||||
// 1系统管理员,2企业管理员账号,3企业区账号,4企业市账号,5项目账号 6项目子账号 7项目部账号
|
// 1系统管理员,2企业管理员账号,3企业区账号,4企业市账号,5项目账号 6项目子账号 7项目部账号
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user