管道基础大数据平台系统开发-【前端】-新系統界面
surprise
2024-04-01 2cbbc0e4c0357260f370c47365810608c19131c9
src/store/index.js
@@ -9,6 +9,7 @@
export default new Vuex.Store({
  state: {
    oldTree: null,
    catalogueName: '',
    cataNode: {},
    lang: 'zh',
@@ -37,16 +38,59 @@
    mapMenuBoxFlag: null,
    mapSpaceQueryLayer: null,
    mapMenuShpFile: null,
    propertiesFlag: null,
    propertiesName: null,
    propertiesInfo: null,
    pickUpPointInfo: null,
    //主题切换
    theme: variables.theme,
    //登录用户名
    uname: null,
    unid: null,
    //项目管理
    projeOl: null,
    download: false,
    showAllLayers: true,
    primitLayer: null,
    loading: false,
    pipelineEntity: [],
    reporturl: null,
    layerMnage: false,
    themeflag: false,
    language: true,
    isNaviget: false,
    treeData: null,
    checkedKeys: [],
    queryInfo: [],
    Map3: [],
    histogramLayer: [],
    attachModel: false,
    attachinfo: null,
    catModel: false,
    catModelInfo: null,
    showPopBoxFlag: false,
    pickoption: null,
    previewLayer: null,
    histLenged: false,
    setAlphaDity: null,
    setAlphaList: [],
    isProjectLayer: [],
    pigCode: null,
    listenTime: null,
    //地表变形
    surfaceDeForm: {
      falg: false,
      gid: null,
      val: null
    },
    setChangeBaseMap:true,
    showThematicFlag:false,
  },
  mutations: {
    UPDATE_LISTEN_TIME(state, msg) {
      state.listenTime = msg;
    },
    //获取权限合集
    getPermsEntity(state, msg) {
      state.permsEntity = msg;
@@ -87,16 +131,16 @@
    },
    /* 打开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) {
@@ -137,12 +181,15 @@
        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);