From 58737013341e2363b39a33fea150f72ebd37cfc1 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期一, 29 三月 2021 09:35:17 +0800 Subject: [PATCH] 文 --- src/views/MapTemplate.vue | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue index 7665bb1..e248cee 100644 --- a/src/views/MapTemplate.vue +++ b/src/views/MapTemplate.vue @@ -17,7 +17,7 @@ <enterprise></enterprise> <!-- <el-button id="map-btn" el-icon-c-scale-to-original icon="el-icon-c-scale-to-original" circle @click="isShowHidden"></el-button>--> <el-button type="primary" @click="ChangeState" class="solid-waste">鍥哄簾</el-button> - <SolidContent ref="SolidWastePopup"></SolidContent> + <PublicBounced ref="PublicBounced"></PublicBounced> </div> </template> @@ -36,9 +36,10 @@ // import MenuSpecial from '@components/panel/MenuTopic' import LegendPanel from '@components/panel/LegendPanel' import Enterprise from '../components/table/enterprise' -import SolidContent from '@components/BaseNav/SolidWaste/SolidContent' // 搴曞浘涓氬姟js閫昏緫 import AddSolidWasteHelper from '@components/BaseNav/SolidWaste/SolidWaste' +// 鍏叡灞曠ず鏁版嵁 +import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' export default { name: 'MapTemplate', @@ -54,10 +55,11 @@ LcServiceLayer, Popup, summarySheets, - SolidContent + PublicBounced }, data () { return { + // isShowBtn: false, map: null, lcServiceLayerVisible: false, basemapHelper: {}, @@ -77,9 +79,16 @@ }, methods: { ChangeState () { + const data = { + companyId: 3900100145, + userCode: 'wenchun.deng', + name: '', + marginWarr: '', + longDayWarr: '' + } const AddSolidWaste = new AddSolidWasteHelper({ map: this.map }) - AddSolidWaste.requestData() - AddSolidWaste.SetSolidWasteContent(this.config, this.$refs.SolidWastePopup) + AddSolidWaste.requestData(data) + AddSolidWaste.SetSolidWasteContent(this.config, this.$refs.PublicBounced) }, isShowHidden () { this.isShowBtn = !this.isShowBtn @@ -108,7 +117,7 @@ this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.map) // 鍒濆鍖栧姩鎬佽绱犲浘灞傚姪鎵� this.vectorLayerHelper.initVectorLayers(this.config) - this.ChangeState() + // this.ChangeState() this.saveMapStatus() // this.setMapObj(this.mapObj) -- Gitblit v1.8.0