@@ -26,6 +26,9 @@ export default { | |||
}, | |||
datagenarated(newVal,oldVal){ | |||
this.switchState() | |||
}, | |||
generateEnable(newVal,oldVal){ | |||
this.switchState() | |||
} | |||
}, | |||
computed:{ | |||
@@ -34,7 +37,8 @@ export default { | |||
lock_waipandan: (state) => state.luru.lock_waipandan, | |||
lock_gongshi: (state) => state.luru.lock_gongshi, | |||
lock_gongshi_getold: (state) => state.luru.lock_gongshi_getold, | |||
datagenarated:(state)=>state.luru.datagenarated | |||
datagenarated:(state)=>state.luru.datagenarated, | |||
generateEnable:(state)=>state.luru.generateEnable, | |||
}), | |||
}, | |||
mounted(){} |
@@ -52,8 +52,8 @@ const getDefaultState = () => { | |||
const state = getDefaultState() | |||
const mutations = { | |||
RESET_STATE: (state) => { | |||
// Object.assign(state, getDefaultState()) | |||
RESET_STATE: (state,value) => { | |||
Object.assign(state, getDefaultState()) | |||
}, | |||
setstate:(state,value)=>{ | |||
if(value){ |
@@ -102,7 +102,8 @@ export default { | |||
lock_waipandan:store.state.luru.lock_waipandan, | |||
lock_gongshi:store.state.luru.lock_gongshi, | |||
lock_gongshi_getold:store.state.luru.lock_gongshi_getold, | |||
generate:store.state.luru.datagenarated | |||
generate:store.state.luru.datagenarated, | |||
generateEnable:store.state.luru.generateEnable | |||
} | |||
let param={ | |||
month:store.state.luru.month.replace("年", "-").replace("月", ""), |
@@ -153,6 +153,7 @@ export default { | |||
handleSubmit(e) { | |||
console.log("开始登录", e); | |||
const that = this; | |||
this.statusInit(true); | |||
if (this.loginForm.user_name != "" && this.loginForm.password != "") { | |||
this.handleLogin(this.loginForm).then((res) => { | |||
console.log("登录", res); | |||
@@ -161,7 +162,6 @@ export default { | |||
console.log(this.$router); | |||
that.getUserInfo().then((res) => { | |||
console.log(res); | |||
this.statusInit(true); | |||
if ( | |||
this.lock_gongzi || | |||
this.lock_gongshi || |