| | |
| | | loading:false, |
| | | pipelineEntity:[], |
| | | reporturl:null, |
| | | layerMnage:false, |
| | | }, |
| | | mutations: { |
| | | //获取权限合集 |
| | |
| | | }, |
| | | /* 打开Loading */ |
| | | START_LOADING(state, msg) { |
| | | state.loadingInstance = Loading.service({ |
| | | lock: true, |
| | | text: msg ? msg : '加载中...', |
| | | background: 'rgba(0, 0, 0, 0.7)', |
| | | }); |
| | | // state.loadingInstance = Loading.service({ |
| | | // lock: true, |
| | | // text: msg ? msg : '加载中...', |
| | | // background: 'rgba(0, 0, 0, 0.7)', |
| | | // }); |
| | | }, |
| | | /* 关闭loading */ |
| | | |
| | | CLOSE_LOADING(state) { |
| | | state.loadingInstance.close(); |
| | | // state.loadingInstance.close(); |
| | | }, |
| | | /* 更新请求线程池 */ |
| | | UPDATE_API_COUNT(state, handle) { |
| | |
| | | login(data) |
| | | .then((response) => { |
| | | const data = response; |
| | | |
| | | if (data.code !== 200) { |
| | | return Message({ |
| | | message: data.msg, |
| | | type: 'error', |
| | | duration: 5 * 1000, |
| | | }); |
| | | resolve(data); |
| | | return |
| | | // return Message({ |
| | | // message: data.msg, |
| | | // type: 'error', |
| | | // duration: 5 * 1000, |
| | | // }); |
| | | } |
| | | commit('SET_UNAME', data.result.uname); |
| | | commit('SET_TOKEN', data.result.token); |