liuyg
2022-01-18 1b65bf157e9d1852bf819bcebcdbf596b77ae6b9
src/store/getters.js
@@ -1,26 +1,27 @@
// 手机端
const mobile = {
    mviewer: (state) => state.mobile.mviewer,
    mBigPopup: (state) => state.mobile.mBigPopup,
    popupOurOpenData: (state) => state.mobile.popupOurOpenData,
    popupTableName: (state) => state.mobile.popupTableName,
    mBigPopupAfter: (state) => state.mobile.mBigPopupAfter,
    iconHide: (state) => state.mobile.iconHide,
    MobileWindowsHide: (state) => state.mobile.MobileWindowsHide, // 随地图移动窗口
    MobileWindowChangeData: (state) => state.mobile.MobileWindowChangeData, // 随地图移动窗口
    popupsDom: (state) => state.mobile.popupsDom,
    query: (state) => state.mobile.query,
    openmobileGoTo: (state) => state.mobile.openmobileGoTo, // 测试
    ccDataState: (state) => state.mobile.ccDataState, // 测试
    openmobilePanorama: (state) => state.mobile.openmobilePanorama,
    MobileWindowsHideFixed: (state) => state.mobile.MobileWindowsHideFixed, // 固定窗口
    MobileWindowChangeDataFixed: (state) =>
        state.mobile.MobileWindowChangeDataFixed, // 固定窗口
    startPointFn: (state) => state.mobile.startPointFn, // 默认起始点位置
    dimension: (state) => state.mobile.dimension, // 维度
    dimensionData: (state) => state.mobile.dimensionData, // 维度镜头数据
    perspectiveControl: (state) => state.mobile.perspectiveControl, /// 视角控制:高度、角度  ()=>{}
    audioState: (state) => state.mobile.audioState, // 文字转语音状态
  mviewer: (state) => state.mobile.mviewer,
  mBigPopup: (state) => state.mobile.mBigPopup,
  popupOurOpenData: (state) => state.mobile.popupOurOpenData,
  popupTableName: (state) => state.mobile.popupTableName,
  mBigPopupAfter: (state) => state.mobile.mBigPopupAfter,
  iconHide: (state) => state.mobile.iconHide,
  MobileWindowsHide: (state) => state.mobile.MobileWindowsHide, // 随地图移动窗口
  MobileWindowChangeData: (state) => state.mobile.MobileWindowChangeData, // 随地图移动窗口
  popupsDom: (state) => state.mobile.popupsDom,
  query: (state) => state.mobile.query,
  openmobileGoTo: (state) => state.mobile.openmobileGoTo, // 测试
  ccDataState: (state) => state.mobile.ccDataState, // 测试
  openmobilePanorama: (state) => state.mobile.openmobilePanorama,
  MobileWindowsHideFixed: (state) => state.mobile.MobileWindowsHideFixed, // 固定窗口
  MobileWindowChangeDataFixed: (state) =>
    state.mobile.MobileWindowChangeDataFixed, // 固定窗口
  startPointFn: (state) => state.mobile.startPointFn, // 默认起始点位置
  dimension: (state) => state.mobile.dimension, // 维度
  dimensionData: (state) => state.mobile.dimensionData, // 维度镜头数据
  perspectiveControl: (state) => state.mobile.perspectiveControl, /// 视角控制:高度、角度  ()=>{}
  audioState: (state) => state.mobile.audioState, // 文字转语音状态
  areaLayer: (state) => state.mobile.areaLayer, // 文字转语音状态
  isOpenDrawALine: (state) => state.mobile.isOpenDrawALine, // 是否开启路线
  isendPosition: (state) => state.mobile.isendPosition, // 路线导航终点数据改变
@@ -29,46 +30,46 @@
  choiceRouterS: (state) => state.mobile.choiceRouterS, // 当前选择路径
  showActivity: (state) => state.mobile.showActivity, // 显影活动弹窗
  isOpenDrawALineMany: (state) => state.mobile.isOpenDrawALineMany // 显影活动弹窗
}
  isOpenDrawALineMany: (state) => state.mobile.isOpenDrawALineMany, // 显影活动弹窗
};
const navigation = {
    campusNavFlag: (state) => state.navigation.campusNavFlag,
    comeName: (state) => state.navigation.comeName,
    getToName: (state) => state.navigation.getToName
}
  campusNavFlag: (state) => state.navigation.campusNavFlag,
  comeName: (state) => state.navigation.comeName,
  getToName: (state) => state.navigation.getToName,
};
const search = {
    orgNavBarFlag: (state) => state.search.orgNavBarFlag,
    orgNavBarTitle: (state) => state.search.orgNavBarTitle,
    orgNavBarList: (state) => state.search.orgNavBarList,
    arcNavBarFlag: (state) => state.search.arcNavBarFlag,
    arcNavBarTitle: (state) => state.search.arcNavBarTitle,
    arcNavBarCode: (state) => state.search.arcNavBarCode
}
  orgNavBarFlag: (state) => state.search.orgNavBarFlag,
  orgNavBarTitle: (state) => state.search.orgNavBarTitle,
  orgNavBarList: (state) => state.search.orgNavBarList,
  arcNavBarFlag: (state) => state.search.arcNavBarFlag,
  arcNavBarTitle: (state) => state.search.arcNavBarTitle,
  arcNavBarCode: (state) => state.search.arcNavBarCode,
};
const getters = {
    ...mobile,
    ...navigation,
    ...search,
    viewer: (state) => state.viewer.viewer,
    twoOrThree: (state) => state.viewer.twoOrThree,
    popupBgUrl: (state) => state.popupParams.popupBgUrl,
    pupupQRUrl: (state) => state.popupParams.pupupQRUrl,
    pointPosition: (state) => state.popupParams.pointPosition,
    terminus: (state) => state.popupParams.terminus,
    startingPoint: (state) => state.popupParams.startingPoint,
    stateName: (state) => state.popupParams.stateName,
    siteName: (state) => state.popupParams.siteName,
    telephone: (state) => state.popupParams.telephone,
    introduceText: (state) => state.popupParams.introduceText,
    panoramaUrl: (state) => state.popupParams.panoramaUrl,
    panoramaPopup: (state) => state.popupParams.panoramaPopup,
    monitorUrl: (state) => state.popupParams.monitorUrl,
    monitorPopup: (state) => state.popupParams.monitorPopup,
    detailsPopup: (state) => state.popupParams.detailsPopup,
    popupImgAtlas: (state) => state.popupParams.popupImgAtlas,
    teachList: (state) => state.popupParams.teachList,
    liveList: (state) => state.popupParams.liveList
}
export default getters
  ...mobile,
  ...navigation,
  ...search,
  viewer: (state) => state.viewer.viewer,
  twoOrThree: (state) => state.viewer.twoOrThree,
  popupBgUrl: (state) => state.popupParams.popupBgUrl,
  pupupQRUrl: (state) => state.popupParams.pupupQRUrl,
  pointPosition: (state) => state.popupParams.pointPosition,
  terminus: (state) => state.popupParams.terminus,
  startingPoint: (state) => state.popupParams.startingPoint,
  stateName: (state) => state.popupParams.stateName,
  siteName: (state) => state.popupParams.siteName,
  telephone: (state) => state.popupParams.telephone,
  introduceText: (state) => state.popupParams.introduceText,
  panoramaUrl: (state) => state.popupParams.panoramaUrl,
  panoramaPopup: (state) => state.popupParams.panoramaPopup,
  monitorUrl: (state) => state.popupParams.monitorUrl,
  monitorPopup: (state) => state.popupParams.monitorPopup,
  detailsPopup: (state) => state.popupParams.detailsPopup,
  popupImgAtlas: (state) => state.popupParams.popupImgAtlas,
  teachList: (state) => state.popupParams.teachList,
  liveList: (state) => state.popupParams.liveList,
};
export default getters;