Lxf 2 роки тому
джерело
коміт
bfc641c63a
4 змінених файлів з 10 додано та 5 видалено
  1. 5
    1
      src/App.vue
  2. 2
    2
      src/store/modules/luru.js
  3. 2
    1
      src/utils/mixins.js
  4. 1
    1
      src/views/login/index.vue

+ 5
- 1
src/App.vue Переглянути файл

@@ -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(){}

+ 2
- 2
src/store/modules/luru.js Переглянути файл

@@ -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){

+ 2
- 1
src/utils/mixins.js Переглянути файл

@@ -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("月", ""),

+ 1
- 1
src/views/login/index.vue Переглянути файл

@@ -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 ||

Завантаження…
Відмінити
Зберегти