From a6ab25145a4b82f5a7fd1b8cc4a3f027b0f8c608 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期日, 28 五月 2023 11:24:39 +0800 Subject: [PATCH] Merge branch 'master' of http://103.85.165.99:8989/r/LFWEB_NEW --- src/views/Synthesis/LeftMenu.vue | 510 ++++++++++++++++++++++++-------------------------------- 1 files changed, 217 insertions(+), 293 deletions(-) diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index 54eaa7d..e8ed9ec 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -1,15 +1,11 @@ <template> <div class="menu_Box box_div"> - <div - class="leftMen_div" - @click="setChangeTwoMenu(item)" - v-for="(item, index) in setListTwoMenu" - :class="{ lefMenuDivActive: showTwoMenuFlag == item.id }" - > - <div - class="menuTwoImage" - :class="item.css" - ></div> + <div class="leftMen_div" + @click="setChangeTwoMenu(item)" + v-for="(item, index) in setListTwoMenu" + :class="{ lefMenuDivActive: showTwoMenuFlag == item.id }"> + <div class="menuTwoImage" + :class="item.css"></div> <div>{{ $t(item.label) }}</div> </div> <mapinfo ref="mapinfo" /> @@ -19,80 +15,58 @@ <modelAttach ref="modelAttach" /> <undergroundModel ref="undergroundModel" /> <setPellucidity ref="setPellucidity" /> - <input - type="file" - accept=".kml" - class="file" - style="display: none" - /> - <input - :accept="'.shp, .shx, .dbf, .prj'" - style="display: none" - ref="pathClear" - type="file" - name="file" - id="shpFile" - multiple="multiple" - @change="handleOpenShp()" - /> + <input type="file" + accept=".kml" + class="file" + style="display: none" /> + <input :accept="'.shp, .shx, .dbf, .prj'" + style="display: none" + ref="pathClear" + type="file" + name="file" + id="shpFile" + multiple="multiple" + @change="handleOpenShp()" /> - <el-dialog - :title="formInline.title" - :visible.sync="dialogVisible" - :modal="false" - :modal-append-to-body="false" - :close-on-click-modal="false" - :before-close="handleClose" - width="30%" - > - <el-dialog - title="棰勮" - :append-to-body="false" - :visible.sync="dialog.dialogVisible" - width="70%" - :modal="false" - :close-on-click-modal="false" - > - <div - v-if="dialog.isPdf" - class="pdfClass" - > - <iframe - :src="dialog.src" - type="application/x-google-chrome-pdf" - width="100%" - height="100%" - > + <el-dialog :title="formInline.title" + :visible.sync="dialogVisible" + :modal="false" + :modal-append-to-body="false" + :close-on-click-modal="false" + :before-close="handleClose" + width="30%"> + <el-dialog title="棰勮" + :append-to-body="false" + :visible.sync="dialog.dialogVisible" + width="70%" + :modal="false" + :close-on-click-modal="false"> + <div v-if="dialog.isPdf" + class="pdfClass"> + <iframe :src="dialog.src" + type="application/x-google-chrome-pdf" + width="100%" + height="100%"> </iframe> </div> - <div - v-if="dialog.isJpg" - class="pdfClass" - > + <div v-if="dialog.isJpg" + class="pdfClass"> - <el-image - style="width:100%; height:100%" - :src="dialog.src" - :preview-src-list="[dialog.src]" - > + <el-image style="width:100%; height:100%" + :src="dialog.src" + :preview-src-list="[dialog.src]"> </el-image> </div> </el-dialog> <div style="height:63vh"> - <el-tabs - v-model="activeName" - @tab-click="handleClick" - > - <el-tab-pane - label="灞炴��" - name="first" - > - <el-form - ref="form" - :model="formInline" - label-width="80px" - > + <el-tabs v-model="activeName" + @tab-click="handleClick"> + <el-tab-pane label="灞炴��" + name="first"> + <el-form ref="form" + :model="formInline" + label-width="80px"> <el-form-item :label="$t('common.name')"> <!-- <el-input v-model="formInline.name"></el-input> --> @@ -138,49 +112,33 @@ </el-form> </el-tab-pane> - <el-tab-pane - label="闄勪欢" - name="second" - > + <el-tab-pane label="闄勪欢" + name="second"> - <el-table - :data="tableData" - ref="filterTable" - height="calc(100% - 130px)" - border - style="width: 100%" - @selection-change="handleAttatchChange" - > - <el-table-column - type="selection" - width="70" - /> - <el-table-column - width="60" - type="index" - :label="$t('common.index')" - /> - <el-table-column - prop="name" - :label="$t('common.name')" - /> + <el-table :data="tableData" + ref="filterTable" + height="calc(100% - 130px)" + border + style="width: 100%" + @selection-change="handleAttatchChange"> + <el-table-column type="selection" + width="70" /> + <el-table-column width="60" + type="index" + :label="$t('common.index')" /> + <el-table-column prop="name" + :label="$t('common.name')" /> - <el-table-column - prop="sizes" - :label="$t('common.size')" - :formatter="statSizeChange" - /> - <el-table-column - align="center" - :label="$t('common.operate')" - min-width="100" - > + <el-table-column prop="sizes" + :label="$t('common.size')" + :formatter="statSizeChange" /> + <el-table-column align="center" + :label="$t('common.operate')" + min-width="100"> <template slot-scope="scope"> - <el-link - v-if="matchState(scope, /[]/)" - @click="setAttatchDetail(scope.$index, scope.row)" - class="elLink" - >{{ $t('common.see') }}</el-link> + <el-link v-if="matchState(scope, /[]/)" + @click="setAttatchDetail(scope.$index, scope.row)" + class="elLink">{{ $t('common.see') }}</el-link> </template> </el-table-column> @@ -192,20 +150,16 @@ </div> </el-dialog> - <el-dialog - title="鏁版嵁鐢宠" - :visible.sync="dialogInsertVisible" - width="30%" - top="35vh" - :modal="false" - :before-close="handleInsertClose" - > + <el-dialog title="鏁版嵁鐢宠" + :visible.sync="dialogInsertVisible" + width="30%" + top="35vh" + :modal="false" + :before-close="handleInsertClose"> <div style="width: 100%; max-height: 450px; overflow-y: auto"> - <el-form - ref="form" - :model="ruleForm" - label-width="100px" - > + <el-form ref="form" + :model="ruleForm" + label-width="100px"> <el-form-item label="瀹℃牳鍗曚綅"> <div> <ul> @@ -225,101 +179,75 @@ </div> </el-form-item> <el-form-item label="鏉′欢"> - <el-input - :title="ruleForm.wkt" - v-model="ruleForm.wkt" - disabled - ></el-input> + <el-input :title="ruleForm.wkt" + v-model="ruleForm.wkt" + disabled></el-input> </el-form-item> <el-form-item label="鎻忚堪"> - <el-input - type="textarea" - placeholder="璇疯緭鍏ュ唴瀹�" - v-model="ruleForm.descr" - maxlength="50" - show-word-limit - > + <el-input type="textarea" + placeholder="璇疯緭鍏ュ唴瀹�" + v-model="ruleForm.descr" + maxlength="50" + show-word-limit> </el-input> </el-form-item> <el-form-item> - <el-button - class="primary" - size="small" - @click="getInsertDownz()" - >{{ + <el-button class="primary" + size="small" + @click="getInsertDownz()">{{ $t("common.confirm") }}</el-button> - <el-button - type="info" - size="small" - @click="closeInsertDown" - >{{ + <el-button type="info" + size="small" + @click="closeInsertDown">{{ $t("common.cancel") }}</el-button> </el-form-item> </el-form> </div> </el-dialog> - <el-dialog - :title="$t('common.passworld')" - :visible.sync="dialogVisible1" - width="30%" - top="35vh" - :modal="false" - :before-close="handleCloseDown1" - > - <el-form - :model="codeForm" - :rules="rules" - ref="codeForm" - label-width="100px" - class="codeForm" - > - <el-form-item - :label="$t('common.passworld')" - prop="password" - > - <el-input - type="password" - v-model="codeForm.password" - show-password - ></el-input> + <el-dialog :title="$t('common.passworld')" + :visible.sync="dialogVisible1" + width="30%" + top="35vh" + :modal="false" + :before-close="handleCloseDown1"> + <el-form :model="codeForm" + :rules="rules" + ref="codeForm" + label-width="100px" + class="codeForm"> + <el-form-item :label="$t('common.passworld')" + prop="password"> + <el-input type="password" + v-model="codeForm.password" + show-password></el-input> </el-form-item> - <el-form-item - :label="$t('common.SPassword')" - prop="repassword" - > - <el-input - type="password" - v-model="codeForm.repassword" - show-password - ></el-input> + <el-form-item :label="$t('common.SPassword')" + prop="repassword"> + <el-input type="password" + v-model="codeForm.repassword" + show-password></el-input> </el-form-item> <el-form-item> - <el-button - class="primary" - size="small" - @click="downloadx('codeForm')" - >{{ $t("common.confirm") }}</el-button> - <el-button - type="info" - size="small" - @click="closeDownx('codeForm')" - >{{ + <el-button class="primary" + size="small" + @click="downloadx('codeForm')">{{ $t("common.confirm") }}</el-button> + <el-button type="info" + size="small" + @click="closeDownx('codeForm')">{{ $t("common.cancel") }}</el-button> </el-form-item> </el-form> </el-dialog> - <el-dialog - title="鑼冨洿" - :visible.sync="dialogExtentVisible" - width="30%" - :before-close="handleExtentClose" - :modal="false" - :lock-scroll="false" - :close-on-click-modal="false" - > + <el-dialog title="鑼冨洿" + :visible.sync="dialogExtentVisible" + width="30%" + :before-close="handleExtentClose" + :modal="false" + :lock-scroll="false" + :close-on-click-modal="false"> <el-row :gutter="20"> <el-col :span="16"> @@ -331,15 +259,11 @@ </div> </el-col> </el-row> - <span - slot="footer" - class="dialog-footer" - > + <span slot="footer" + class="dialog-footer"> <el-button @click="handleExtentClose">鍙� 娑�</el-button> - <el-button - @click="handleExtentinsert" - type="primary" - >纭� 瀹�</el-button> + <el-button @click="handleExtentinsert" + type="primary">纭� 瀹�</el-button> </span> </el-dialog> </div> @@ -386,7 +310,7 @@ export default { components: { mapinfo, maplayer, queryinfo, terrainDig, modelAttach, undergroundModel, setPellucidity }, - data() { + data () { var repasswordValidator = (rule, value, callback) => { if (value === '') { callback(new Error('璇峰啀娆¤緭鍏ュ瘑鐮�')); @@ -844,7 +768,7 @@ }, methods: { //浜岀礆鑿滃崟鐐瑰嚮鍒囨崲 - setChangeTwoMenu(res) { + setChangeTwoMenu (res) { var val = res.id[0]; if (window.model != null) { // window.model.deleteObject(); @@ -916,7 +840,7 @@ break; } }, - setPlot(res) { + setPlot (res) { switch (res) { case "h1": @@ -976,7 +900,7 @@ break; } }, - handleSaveClick() { + handleSaveClick () { let funDownload = function (content, filename) { let eleLink = document.createElement("a"); eleLink.download = filename; @@ -1014,7 +938,7 @@ alert("褰撳墠鍦烘櫙娌℃湁entities瀹炰綋"); } }, - handleSaveShp() { + handleSaveShp () { var entities = sgworld.Viewer.entities.values; if (entities.length == 0) { return; @@ -1159,7 +1083,7 @@ error: function (e) { }, }); }, - handleOpenShp() { + handleOpenShp () { var formData = new FormData(); var fs = document.getElementById("shpFile"); var exts = [".shp", ".shx", ".dbf", ".prj"]; @@ -1196,7 +1120,7 @@ document.getElementById("shpFile").value = ""; }, - showShpEntity(res) { + showShpEntity (res) { for (var i in res) { var wkt = this.$wkt.parse(res[i].wkt); var fillColor = res[i].fillColor.split(","); @@ -1294,7 +1218,7 @@ } }, - setCartesianToEightFour(res) { + setCartesianToEightFour (res) { var std = []; let ellipsoid = Viewer.scene.globe.ellipsoid; let cartographic = ellipsoid.cartesianToCartographic(res); @@ -1304,7 +1228,7 @@ std = [lng, lat, alt]; return std; }, - handleOpenClick() { + handleOpenClick () { var that = this; sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); let fileInput = document.querySelector(".file"); @@ -1353,12 +1277,12 @@ }; fileInput.click(); }, - setLayerScene() { + setLayerScene () { var URL = window.location.href.split("#"); this.openwindow({ url: URL[0] + "LfSKyline/index.html" }); }, - openwindow(data) { + openwindow (data) { var url = data.url; //杞悜缃戦〉鐨勫湴鍧�; var name = data.title || "閫夋嫨瑕佹坊鍔犵殑椤甸潰"; //缃戦〉鍚嶇О锛屽彲涓虹┖; var iWidth = window.screen.width; //寮瑰嚭绐楀彛鐨勫搴�; @@ -1384,7 +1308,7 @@ ); }, - setMeasurement(res) { + setMeasurement (res) { switch (res) { case "j1": var measure = window.sgworld.Command.execute( @@ -1505,7 +1429,7 @@ break; } }, - openMeasureResultInfo(name, data) { + openMeasureResultInfo (name, data) { let info = ""; switch (name) { case "琛ㄩ潰璺濈": @@ -1543,7 +1467,7 @@ }) ); }, - clearMeasure(id) { + clearMeasure (id) { if (id) { let data = this.measureData.get(id); data && data.deleteObject && data.deleteObject(); @@ -1559,7 +1483,7 @@ this.measureData.clear(); } }, - setIquery(res) { + setIquery (res) { switch (res) { case "e2": this.showPickUp = false; @@ -1591,7 +1515,7 @@ break; } }, - clearAllAnalsy() { + clearAllAnalsy () { // switch (this.showTwoMenuFlag) { // case 'd1': // that.isolineFlag = false; @@ -1605,14 +1529,14 @@ // break; // } }, - ClearDraw() { + ClearDraw () { //console.log(sgworld); // console.log(sgworld.drawObj.drawHandler); // sgworld.drawObj.drawHandler.destroy(); // 聽 sgworld.drawObj.end() }, - setAnalsy(res) { + setAnalsy (res) { //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); this.$bus.$emit("closeMenuPop", res); var that = this; @@ -1944,7 +1868,7 @@ }, //妯″瀷瑁佸垏 - modelClipping() { + modelClipping () { const scene = Viewer.scene; let targetY = 40.0; let planeEntities = []; @@ -2080,7 +2004,7 @@ // console.log("targetY----",targetY) } }, Cesium.ScreenSpaceEventType.MOUSE_MOVE); - function createPlaneUpdateFunction(plane) { + function createPlaneUpdateFunction (plane) { return function () { plane.distance = targetY; // console.log("targetY----",targetY) @@ -2088,7 +2012,7 @@ }; } //鑾峰彇鍒囬潰鐨則ype // 涓娿�佷笅銆佸乏銆佸彸銆佸墠銆佸悗 - function getType4Plane(plane) { + function getType4Plane (plane) { var m_type; var normal = plane._normal; var x = normal.x; @@ -2111,7 +2035,7 @@ } return m_type; } - function createPlaneUpdateFunction_box(plane, type, origin) { + function createPlaneUpdateFunction_box (plane, type, origin) { return function () { var num_x = window.localStorage.getItem('slider_x') / 100000; var num_y = window.localStorage.getItem('slider_y') / 100000; @@ -2178,7 +2102,7 @@ }; } - function createPlanePos(origin, x, y, z) { + function createPlanePos (origin, x, y, z) { var clipbox = Viewer.entities.getById('ClopBox'); if (clipbox) { clipbox.position = new Cesium.CallbackProperty(function () { @@ -2186,7 +2110,7 @@ }, false); } } - function cartesian3ToDegrees(cartesian3) { + function cartesian3ToDegrees (cartesian3) { var ellipsoid = Viewer.scene.globe.ellipsoid; var cartographic = ellipsoid.cartesianToCartographic(cartesian3); var lat = Cesium.Math.toDegrees(cartographic.latitude); @@ -2199,12 +2123,12 @@ }, //鍏抽棴绠¢亾淇℃伅寮圭獥 - closePipelinePop() { + closePipelinePop () { this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); }, - setclippingModel() { + setclippingModel () { if (window.model) { setTimeout(() => { window.model.clippingModel({ @@ -2216,7 +2140,7 @@ // }); } }, - clear(res) { + clear (res) { switch (res) { case "d4": layer.close(this.dxpmIndex); @@ -2234,7 +2158,7 @@ break; } }, - addAnalysisFlood() { + addAnalysisFlood () { var url = window.location.href; var testurl = ""; if (url.indexOf("web") != -1) { @@ -2253,7 +2177,7 @@ (value) => { } ); }, - addterrainSectionAnalysis() { + addterrainSectionAnalysis () { window.AnalysisDXPM = sgworld.Command.execute( 2, 6, @@ -2286,7 +2210,7 @@ } ); }, - setWander(res) { + setWander (res) { switch (res) { case "c1": if (window.PointMY != null) { @@ -2333,7 +2257,7 @@ break; } }, - setOrientation(res) { + setOrientation (res) { var resid; switch (res) { case "f1": @@ -2349,7 +2273,7 @@ }; this.$bus.$emit("mapChangeBox", val); }, - setViewport(res) { + setViewport (res) { switch (res) { case "b1": //鍒嗗睆 this.$bus.$emit("changemap", 1); @@ -2416,7 +2340,7 @@ break; } }, - setCoverage(res) { + setCoverage (res) { switch (res) { case "a1": if (this.$store.state.layerMnage == false) { @@ -2432,10 +2356,10 @@ break; } }, - menuChange(res) { + menuChange (res) { this.setListTwoMenu = this.setListTwoMenuAll[res]; }, - async layersStart() { + async layersStart () { const data = await perms_selectLayers(); if (data.code != 200) { return this.$message.error("鍥惧眰鍒楄〃鏌ヨ澶辫触"); @@ -2488,7 +2412,7 @@ this.$store.state.checkedKeys = checkKey; }, - setTreeData(source) { + setTreeData (source) { let cloneData = JSON.parse(JSON.stringify(source)); // 瀵规簮鏁版嵁娣卞害鍏嬮殕 return cloneData.filter((father) => { // 寰幆鎵�鏈夐」 @@ -2505,7 +2429,7 @@ return father.pid == 0; // 杩斿洖涓�绾ц彍鍗� }); }, - setAddLayers(res) { + setAddLayers (res) { this.setClearWmsLayer() var std = [[]]; for (var i in res) { @@ -2526,7 +2450,7 @@ } }, - setPrjidWmsLayer(res) { + setPrjidWmsLayer (res) { var layer = []; var sql = []; var dirid = this.$store.state.pigCode @@ -2564,7 +2488,7 @@ }); layerWMS.name = "Wms_Layer"; - window.Viewer.scene.imageryLayers.addImageryProvider(window.layerWMS); + window.Viewer.imageryLayers.addImageryProvider(window.layerWMS); var layer2 = new Image({ name: "Wms_Layer", source: new ImageWMS({ @@ -2586,7 +2510,7 @@ - setClearWmsLayer() { + setClearWmsLayer () { for (var i = 0; i < window.Viewer.imageryLayers._layers.length; i++) { var val_id = window.Viewer.imageryLayers._layers[i].imageryProvider.name; if (val_id == "Wms_Layer") { @@ -2603,7 +2527,7 @@ } } }, - setAddWmsLayer(res) { + setAddWmsLayer (res) { var url = []; for (var i in res) { @@ -2633,7 +2557,7 @@ tileHeight: 512, }); layerWMS.name = "Wms_Layer"; - window.Viewer.scene.imageryLayers.addImageryProvider(window.layerWMS); + window.Viewer.imageryLayers.addImageryProvider(window.layerWMS); var layer2 = new Image({ name: "Wms_Layer", source: new ImageWMS({ @@ -2651,7 +2575,7 @@ } window.map.addLayer(layer2); }, - async getFeatureInfo(html) { + async getFeatureInfo (html) { var start = html.indexOf("<caption class=\"featureInfo\">") + "<caption class=\"featureInfo\">".length; var end = html.indexOf("</caption>"); var tab = html.substr(start, end - start); @@ -2712,7 +2636,7 @@ } }, //鏍煎紡鍖栨椂闂� - format(shijianchuo) { + format (shijianchuo) { //shijianchuo鏄暣鏁帮紝鍚﹀垯瑕乸arseInt杞崲 var time = new Date(shijianchuo); var y = time.getFullYear(); @@ -2736,10 +2660,10 @@ ); }, //鏍煎紡鍖栨椂闂� - add0(m) { + add0 (m) { return m < 10 ? '0' + m : m; }, - async getTableData() { + async getTableData () { this.tableData = [] const data = await dataQuery_selectByGid(this.$store.state.pickoption) if (data.code != 200) { @@ -2801,7 +2725,7 @@ }, - showModelAttach() { + showModelAttach () { if (this.$store.state.attachModel) { var name = this.$store.state.attachinfo.cnName; this.$refs && @@ -2812,7 +2736,7 @@ } else { } }, - async showModelCatch() { + async showModelCatch () { if (this.$store.state.catModel) { this.formInline = { title: '', @@ -2835,7 +2759,7 @@ window.pickedFeature.color = window.pickedColor; } }, - async startModelData() { + async startModelData () { var obj = { layerid: this.$store.state.catModelInfo.layerId, modelid: this.$store.state.catModelInfo.id @@ -2856,7 +2780,7 @@ } }, - async EditData() { + async EditData () { const data = await comprehensive_updateModel(this.formInline) if (data.code != 200) { this.$message.error('淇敼澶辫触'); @@ -2868,7 +2792,7 @@ } this.startModelData(); }, - async InsertData() { + async InsertData () { var std = { "bak": this.formInline.bak, "guid": this.$store.state.catModelInfo.id, @@ -2889,12 +2813,12 @@ this.startModelData(); }, - handleClose() { + handleClose () { this.$store.state.catModel = false; }, //闄勪欢鍒楄〃鏂板 - setAttachInsert() { + setAttachInsert () { var token = getToken(); var fs = document.getElementById("insertFile"); if (fs.files.length == 0) { @@ -2935,7 +2859,7 @@ }); }, //闄勪欢鍒楄〃鏌ヨ - async getAttacthFlieList() { + async getAttacthFlieList () { var obj = { eventid: this.$store.state.catModelInfo.id, tabName: "lf.sys_style" @@ -2950,18 +2874,18 @@ //闄勪欢=>鏂囦欢閫夋嫨 - getInsertFile() { + getInsertFile () { $('#insertFile').click(); }, - insertFile() { + insertFile () { var val = document.getElementById('insertFile').files; if (!val || !val.length) return; this.formInline.file = val[0].name; }, - statSizeChange(row, column) { + statSizeChange (row, column) { return this.stateFormatSizes(row.sizes) }, - stateFormatSizes(res) { + stateFormatSizes (res) { if (res >= 1024) { const val = parseFloat(res / 1024).toFixed(3); return val + ' GB'; @@ -2969,7 +2893,7 @@ return res + ' MB'; } }, - matchState(state = "", reg) { + matchState (state = "", reg) { var row = state.row; var name = row.name; if (name.indexOf('.pdf') != -1 @@ -2989,14 +2913,14 @@ return false; }, - refreshAttatchDetail() { + refreshAttatchDetail () { this.dialog.src = ""; this.dialog.dialogVisible = false; this.dialog.isPdf = false; this.dialog.isJpg = false; }, //闄勪欢鏌ョ湅 - setAttatchDetail(index, row) { + setAttatchDetail (index, row) { this.refreshAttatchDetail() var name = row.name; if (name.indexOf('.pdf') != -1 || name.indexOf('.PDF') != -1) { @@ -3022,13 +2946,13 @@ this.dialog.src = url } }, - handleClick(tab, event) { + handleClick (tab, event) { if (tab.name == "second") { this.getAttacthFlieList(); } }, //闄勪欢鍒櫎 - async setAttachDel() { + async setAttachDel () { var std = []; for (var i in this.attacgSelection) { std.push(this.attacgSelection[i].id); @@ -3041,11 +2965,11 @@ this.getAttacthFlieList(); }, // 闄勪欢=>琛ㄦ牸閫夋嫨 - handleAttatchChange(val) { + handleAttatchChange (val) { this.attacgSelection = val; }, //鎷惧彇鏁版嵁鑾峰彇 - async getPickUpData(info) { + async getPickUpData (info) { let checkedLayers = JSON.parse(sessionStorage.getItem("checkedLayers")); let showPop = false; for (const item of checkedLayers) { @@ -3072,7 +2996,7 @@ this.$message.warning("鏆傛棤鏁版嵁!"); } }, - showPopBox() { + showPopBox () { if (this.$store.state.showPopBoxFlag == true) { this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close(); @@ -3093,32 +3017,32 @@ }); } }, - setPellucidity() { + setPellucidity () { this.$refs && this.$refs.setPellucidity && this.$refs.setPellucidity.open(); }, - setDialogInsertVisible(res) { + setDialogInsertVisible (res) { this.ruleForm = res; this.dialogInsertVisible = true; }, - downloadx() { + downloadx () { this.$bus.$emit("setInsertDown1", this.codeForm) this.closeDownx(); }, - handleCloseDown1() { + handleCloseDown1 () { this.$confirm("纭鍏抽棴锛�") .then(_ => { this.closeDownx(); }) .catch(_ => { }) }, - closeDownx() { + closeDownx () { this.dialogVisible1 = false; this.codeForm = { password: '', repassword: '', } }, - closeInsertDown() { + closeInsertDown () { this.ruleForm = { depname: [], tabs: [], @@ -3129,31 +3053,31 @@ } this.dialogInsertVisible = false }, - handleInsertClose() { + handleInsertClose () { this.$confirm("纭鍏抽棴锛�") .then(_ => { this.closeInsertDown() }) .catch(_ => { }) }, - getInsertDownz() { + getInsertDownz () { this.dialogInsertVisible = false; // this.dialogVisible1 = true; // this.$bus.$emit("setInsertApply1", this.ruleForm) }, - handleExtentClose() { + handleExtentClose () { this.dialogExtentVisible = false this.setExtent = 10; }, - handleExtentinsert() { + handleExtentinsert () { this.$bus.$emit("setExtentBUff", this.setExtent) this.handleExtentClose(); } }, - mounted() { + mounted () { this.$bus.$off(); this.measureData = new Map(); this.colorAll = { @@ -3205,24 +3129,24 @@ }, watch: { - Obj(newVal, oldVal) { + Obj (newVal, oldVal) { this.showModelAttach(); }, - catch(newVal, oldVal) { + catch (newVal, oldVal) { this.showModelCatch(); }, - popObj(newVal, oldVal) { + popObj (newVal, oldVal) { this.showPopBox(); } }, computed: { - Obj() { + Obj () { return this.$store.state.attachModel; }, - catch() { + catch () { return this.$store.state.catModel; }, - popObj() { + popObj () { return this.$store.state.showPopBoxFlag; } }, -- Gitblit v1.9.3