var store2 = { debug: true, state: { xzqdm: "", //当前选择的行政区代码 isInitViewer: false, // 控制界面显隐,0默认隐藏,1显示 ToolBarShow: false, toolBarActive: 0, toolBar: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], addLayer: [1, 0, 0], sceneAtttribute: [1, 0, 0, 0, 0], terrain: [1, 0, 0, 0, 0], clip: [1, 0, 0, 0], analysis: [1, 0, 0, 0, 0, 0], cityPlan: [1, 0, 0, 0, 0], onlineEdit: [1, 0, 0], specialEffects: [0, 0, 0], //特效 hotSpots: [0, 0], //热点 compass: true, // 图层管理 S3MLayerManage: null, imgLayerManage: null, terrainLayerManage: null, LayerAttributeToolbar: false, //图层属性显隐 LayerAttribute: [1, 0, 0, 0], selectedLayerName: null, //当前选中编辑图层name // 编辑 isEdit: false, isEditZ: false, vectorlayerlist: [], modellayerlist: [], layerparamslist: [],//影像 chooseLayer: [], flattenNames: [],//存储压平的名称数组 S3MList: [], splitType: 'NONE',//分屏类型 rollerType: '',//影像卷帘 checkedData: null, sceneLayerlist: [], flattenNames: [],//存储压平的名称数组 cockpit_date: null, viewer_flag: true, cockpit_tdsc: { scjd: { percentage: 0, sj_mj: 0, //完成收储 jh_xzqdm_number: 0,//计划收储项目个数 jh_mj: 0,//计划收储面积 sj_xzqdm_number: 1//完成收储项目个数 }, echart: { x: [], bar: [], } }, cockpit_tdgy: {//土地供应 gy_jg: { xdata: [], result: [], }, }, cockpit_hysy: {//海域使用 info: { jh_mj:0,//计划出让海域 sj_number:0,//实际出让海域面积 jh_number:0,//计划出让项目 sj_mj:0,//完成出让海域面积 }, }, regional_information: { id: 4602, name: '', }, cockpit_gkzb: { // 生态保护红线面积 mj: 0, // 路域生态保护红线 ly_mj: 0, // 近海岸面积 hy_mj: 0, // 永久基本农田保护面积 yjjbntmj: 0, // 城市开发边界 kfbjmj: 0, // 覆盖城镇开发边界 bfb: 0, ghdkmj: 0,//已入库管控范围 tbmj_ys: 0, isNightSwitch: false, //夜景状态(中图) } }, setisInitViewer(newValue) { this.state.isInitViewer = newValue; }, setXzqdm(newValue) { this.state.xzqdm = newValue; }, setVectorLayerList(newValue) { this.state.vectorlayerlist = newValue; }, setSceneLayersList(newValue) { this.state.sceneLayerlist = newValue; }, setLayerList(newValue) {//分层分户 this.state.chooseLayer = newValue; }, setFlattenNames(newValue) {//压平 this.state.flattenNames = newValue; }, setS3MList(newValue) {//压平 this.state.S3MList = newValue; }, setRegionalInformation(newValue) {//行政区划信息存储 this.state.regional_information = newValue; }, setModelLayerList(newValue) { this.state.modellayerlist = newValue; }, setlayerparamsList(newValue) { this.state.layerparamslist = newValue; }, setToolBarShow(newValue) { this.state.ToolBarShow = newValue; }, setSpecialEffects(id, val) { this.state.specialEffects[id] = val; this.state.specialEffects = [...this.state.specialEffects]; }, setHotSpots(id, val) { this.state.hotSpots[id] = val; this.state.hotSpots = [...this.state.hotSpots]; }, setCompass(newValue) { this.state.compass = newValue; }, // 设置导航工具显隐 setToolBarAction(newValue) { if (typeof (newValue) != "undefined") { if (this.state.toolBarActive != newValue) { this.hideToolBar(); } this.state.toolBar[newValue] = !this.state.toolBar[newValue]; } else { this.hideToolBar(); } this.state.toolBarActive = newValue; this.state.toolBar = [...this.state.toolBar]; }, hideToolBar(newValue) { this.state.toolBar = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; }, // 设置各功能组件子组件显隐 setAddLayerAction(newValue) { this.state.addLayer = newValue; }, setTerrainAction(newValue) { this.state.terrain = newValue; }, setSceneAtttribute(newValue) { this.state.sceneAtttribute = newValue; }, setsplitType(newValue) { this.state.splitType = newValue; }, setrollerType(newValue) { this.state.rollerType = newValue; }, setCheckedData(newValue) { this.state.checkedData = newValue; }, setClipAction(newValue) { this.state.clip = newValue; }, setAnalysisAction(newValue) { this.state.analysis = newValue; }, setCityPlanAction(newValue) { this.state.cityPlan = newValue; }, setOnlineEditrAction(newValue) { this.state.onlineEdit = newValue; }, // 设置图层管理 setS3MLayerManage(newValue) { this.state.S3MLayerManage = newValue; }, setImgLayerManage(newValue) { this.state.imgLayerManage = newValue; }, setTerrainLayerManage(newValue) { this.state.terrainLayerManage = newValue; }, setLayerAttributeToolbal(newValue) { this.state.LayerAttributeToolbar = newValue; }, setLayerAttribute(newValue) { this.state.LayerAttribute = newValue; }, setSelectedLayerName(newValue) { this.state.selectedLayerName = newValue; }, setIsEdit(newValue) { this.state.isEdit = newValue; }, setIsEditZ(newValue) { this.state.isEditZ = newValue; }, setCockpitDate(newValue) { this.state.cockpit_date = newValue; }, setCockpitGkzb(newValue) { this.state.cockpit_gkzb = newValue; }, setViewerFlagb(newValue) { this.state.viewer_flag = newValue; }, // 中图添加夜景 setIsNightSwitch(newValue) { this.state.isNightSwitch = newValue; }, } // import store from "@/store/store.js" // sharedState: store.state // console.log(this.sharedState.message) // store.setMessageAction("dajiahao") export default store2