| | |
| | | } |
| | | |
| | | .content { |
| | | height: calc(100% - 80px); |
| | | height: calc(100% - 60px); |
| | | width: 100%; |
| | | display: flex; |
| | | } |
| | |
| | | color: #409EFF; |
| | | border-bottom: 1px solid #409EFF; |
| | | } |
| | | a { |
| | | |
| | | |
| | | a { |
| | | |
| | | border-bottom: 1px solid black; |
| | | } |
| | | </style> |
| | |
| | | <div id="rightCont" class="left_content"> |
| | | <fieldset class="fieldset"> |
| | | <legend>æ°æ®ç®å½</legend> |
| | | <div id="layers"></div> |
| | | <!-- <div id="layers"></div> --> |
| | | <div> |
| | | <object id="TerraExplorerInformationWindowEx" classid="CLSID:3A4F919B-65A8-11D5-85C1-0001023952C1" width="300" height="400"></object> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </fieldset> |
| | | </div> |
| | | <div class="right_content"> |
| | |
| | | window.SG = null; |
| | | var Index = { |
| | | menuFlag: true, |
| | | treePlay: 'PS\\å
¨å½ç®¡ç½ä¸é¢å¾å±ç¤º', |
| | | treePlay: 'æ¼ç¤ºæ¹æ¡\\æ¹æ¡1', |
| | | objTypes: [19, 23, 26, 29, 34, 36, 38, 39, 40], |
| | | init: function () { |
| | | var flag = Detect.detectIE(); |
| | |
| | | a.href = LFData + "/soft/TEv7.4.zip"; |
| | | }, |
| | | initSG: function () { |
| | | TerraExplorerInformationWindowEx.AttachTo3dWindow(TEWinEx); |
| | | |
| | | SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66 |
| | | SG.AttachEvent("OnLoadFinished", this.loadFinished); |
| | | |
| | | |
| | | |
| | | SG.Open(app.fly); |
| | | }, |
| | | loadFinished: function () { |
| | | SG.DetachEvent("OnLoadFinished", Index.loadFinished); |
| | | var layers = []; |
| | | Index.getLayers("", layers); |
| | | Index.ininTrees("layers", layers); |
| | | // Index.flyToStart(); |
| | | |
| | | // var layers = []; |
| | | // Index.getLayers("", layers); |
| | | // Index.ininTrees("layers", layers); |
| | | Index.flyToStart(); |
| | | |
| | | }, |
| | | |
| | | getLayers: function (pid, layers) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | var isWeb = location.hostname.indexOf("103.85.165.") > -1; |
| | | |
| | | var webHost = isWeb ? location.hostname + ":8052" : location.hostname + ":8088"; |
| | | |
| | | var fmeHost = isWeb ? location.hostname + ":8051" : location.hostname + ":88"; |
| | | |
| | | var iisHost = isWeb ? location.hostname + ":8050" : location.hostname + ":80"; |
| | | |
| | | var menuStartName = "管éåºç¡å¤§æ°æ®å¹³å°"; |
| | | |
| | | var LFData = "http://" + iisHost + "/LFData"; |
| | | |
| | | var BASE_URL = 'http://' + webHost + '/server'; |
| | | |
| | | // WebSocket æå¡å°å |
| | | var socketUrl = 'ws://' + webHost + '/server/ws/select'; |
| | | |
| | | // GeoServerUrl |
| | | var geoServerURl = '/geoserver/LF/wms'; |
| | | |
| | | var geoserverWFS = '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Abs_project&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; |
| | | |
| | | var geoserverWFSLine = '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Am_pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; |
| | | |
| | | // 模åå è½½å°å |
| | | var modelUrl = LFData + '/tileset/SN/tileset.json'; |
| | | |
| | | // DEM |
| | | var demLayer = LFData + '/dem'; |
| | | |
| | | // 综åå±ç¤º |
| | | window.sceneConfig = { |
| | | // Sdkè®¸å¯ |
| | | licenseServer: 'http://' + iisHost + '/LFServer', |
| | | // MPTåç§° |
| | | mptName: "china_5m.Ei.397334", |
| | | // SGå°å |
| | | SGUrl: "http://" + iisHost + "/SG/Elevation", |
| | | // Flyå°å |
| | | fly: 'http://' + iisHost + '/LFData/fly/' + (isWeb ? "lfy_web.fly" : "lf_127.fly"), |
| | | // |
| | | positionBtn: [], |
| | | }; |
| | | |
| | | var gaoDeBaseUrl = [{ |
| | | url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', |
| | | label: 'é«å¾·ç¢é', |
| | | }, { |
| | | url: 'https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', |
| | | label: 'é«å¾·å½±å', |
| | | }, { |
| | | url: 'http://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8', |
| | | label: 'é«å¾·å½±åæ æ³¨' |
| | | }]; |
| | |
| | | var isWeb = location.hostname.indexOf("103.85.165.") > -1; |
| | | |
| | | var webHost = isWeb ? location.hostname + ":8052" : '192.168.20.205' + ":8088"; |
| | | var webHost = isWeb ? location.hostname + ":8052" : '192.168.20.106' + ":12316"; |
| | | |
| | | var fmeHost = isWeb ? location.hostname + ":8051" : '192.168.20.205' + ":88"; |
| | | |
| | |
| | | var socketUrl = 'ws://' + webHost + '/server/ws/select'; |
| | | |
| | | // GeoServerUrl |
| | | var geoServerURl = '/geoserver/LF/wms'; |
| | | var geoServerURl = 'http://192.168.20.205:8088//geoserver/LF/wms'; |
| | | |
| | | var geoserverWFS = '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Abs_project&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; |
| | | |
| | |
| | | export function select_Comprehensive_SelectWktById(params) { |
| | | return request.get('/locate/selectWktById', { params: params }); |
| | | } |
| | | |
| | | //综åå±ç¤º_è·¯å¾è§å |
| | | // export function comprehensive_selectRoute(params) { |
| | | // return request.get('/comprehensive/selectRoute?x1=116.78999&x2=116.80458&y1=39.9468&y2=39.94758'); |
| | | // } |
| | | export function comprehensive_selectRoute(params) { |
| | | return request.get('/comprehensive/selectRoute?x1=' + params.x1 + '&x2=' + params.x2 + '&y1=' + params.y1 + '&y2=' + params.y2); |
| | | } |
| | | //ä¸ä¼ Shpæä»¶è¯»åç¬¬ä¸æ¡è®°å½çWKT; |
| | | export function inquiry_uploadShp(params) { |
| | | return request.post('/inquiry/uploadShp', params); |
| | |
| | | export function dataUpload_selectByPageForUpload(params) { |
| | | return request.get('/dataUpload/selectByPageForUpload', { params: params }); |
| | | } |
| | | |
| | | |
| | | //æ°æ®ä¸ä¼ =æäº¤æ°æ®è´¨æ£ |
| | | export function dataUpload_uploadChecks(params) { |
| | | return request.post('/dataUpload/uploadChecks', params); |
| | |
| | | export function project_update(params) { |
| | | return request.post('/project/update', params); |
| | | } |
| | | //项ç®ç®¡ç=>å é¤ |
| | | export function project_selectLocation(params) { |
| | | return request.get('/project/selectLocation?x=' + params.x + '&y=' + params.y) |
| | | } |
| | |
| | | location: 'Geographical Position', |
| | | province: 'Province', |
| | | country: 'Country', |
| | | county: 'County', |
| | | corpname: ' Constructing units ', |
| | | department: 'competent department', |
| | | conperiod: 'Construction period', |
| | |
| | | openFile: 'open File', |
| | | saveFile: 'save File', |
| | | synthobj: { |
| | | m1: 'Horizontal distance', |
| | | m1: 'Surface distance', |
| | | m2: 'Spatial distance', |
| | | m3: 'Altitude', |
| | | m4: 'Vertical height', |
| | |
| | | location: 'å°çä½ç½®', |
| | | province: 'æå±ç份', |
| | | country: 'æå±å½å®¶', |
| | | county:'æå±å¿', |
| | | corpname: '建设åä½åç§°', |
| | | department: '主管é¨é¨', |
| | | conperiod: '建设工æ', |
| | |
| | | openFile: 'æå¼', |
| | | saveFile: 'ä¿å', |
| | | synthobj: { |
| | | m1: 'æ°´å¹³è·ç¦»', |
| | | m1: '表é¢è·ç¦»', |
| | | m2: '空é´è·ç¦»', |
| | | m3: 'æµ·æé«åº¦', |
| | | m4: 'åç´é«åº¦', |
| | |
| | | import { |
| | | select_Comprehensive_ByPageAndCount, |
| | | select_Comprehensive_SelectWktById, |
| | | comprehensive_selectRoute |
| | | } from '../api/api'; |
| | | export default { |
| | | name: '', |
| | |
| | | }); |
| | | Viewer.imageryLayers.addImageryProvider( |
| | | new Cesium.UrlTemplateImageryProvider({ |
| | | url: gaoDeBaseUrl[0].url, |
| | | |
| | | |
| | | url: gaoDeBaseUrl[0].url, |
| | | |
| | | |
| | | }) |
| | | ); |
| | | |
| | | Viewer.imageryLayers.addImageryProvider( |
| | | new Cesium.UrlTemplateImageryProvider({ |
| | | url: gaoDeBaseUrl[1].url, |
| | | |
| | | url: gaoDeBaseUrl[1].url, |
| | | |
| | | }) |
| | | ); |
| | | Viewer.imageryLayers.addImageryProvider( |
| | | new Cesium.UrlTemplateImageryProvider({ |
| | | url: gaoDeBaseUrl[2].url, |
| | | |
| | | |
| | | url: gaoDeBaseUrl[2].url, |
| | | |
| | | |
| | | }) |
| | | ); |
| | | |
| | |
| | | window.elevationTool = new SmartEarth.ElevationTool(window.sgworld); |
| | | elevationTool.setContourColor('#F1D487'); |
| | | |
| | | var helper = new Cesium.EventHelper(); |
| | | helper.add(Viewer.scene.globe.tileLoadProgressEvent, function (e) { |
| | | |
| | | if (e == 0) { |
| | | console.log("è¿ä¸ªæ¯å è½½æåä¸ä¸ªç¢éåççåè°"); |
| | | } |
| | | helper.removeAll(); |
| | | helper = undefined; |
| | | }); |
| | | // var helper = new Cesium.EventHelper(); |
| | | // helper.add(Viewer.scene.globe.tileLoadProgressEvent, function (e) { |
| | | |
| | | // if (e == 0) { |
| | | // console.log("è¿ä¸ªæ¯å è½½æåä¸ä¸ªç¢éåççåè°"); |
| | | // } |
| | | // helper.removeAll(); |
| | | // helper = undefined; |
| | | // }); |
| | | |
| | | |
| | | |
| | |
| | | break; |
| | | } |
| | | }, |
| | | showMouseLeftClick(res) { |
| | | async showMouseLeftClick(res) { |
| | | if (res == 3) { |
| | | if (this.linePath != null) { |
| | | this.clearPathAll(3); |
| | | } |
| | | var start = this.pathFrom.lon.split(",") |
| | | var end = this.pathFrom.lat.split(",") |
| | | var startData = { |
| | | x1: parseFloat(start[0]), |
| | | y1: parseFloat(start[1]), |
| | | x2: parseFloat(end[0]), |
| | | y2: parseFloat(end[1]) |
| | | } |
| | | |
| | | var jsonurl = |
| | | wnsUrl + |
| | | '?start=' + |
| | | this.pathFrom.lon + |
| | | '&end=' + |
| | | this.pathFrom.lat + |
| | | '&propertyName=Shape&tolerance=500&request=FindPath&format=json'; |
| | | $.ajax({ |
| | | url: jsonurl, |
| | | async: false, |
| | | type: 'GET', |
| | | dataType: 'json', |
| | | contentType: 'application/json;charset=utf-8', |
| | | success: (data) => { |
| | | this.executeFly3D(data); |
| | | }, |
| | | }); |
| | | const data = await comprehensive_selectRoute(startData); |
| | | if (data.code != 200) { |
| | | return this.$message.error('æ°æ®è¯·æ±å¤±è´¥'); |
| | | } |
| | | var wkt = this.$wkt.parse(data.result); |
| | | var bufferSource = Cesium.GeoJsonDataSource.load(wkt, { |
| | | stroke: new Cesium.Color(82 / 255, 152 / 255, 255 / 255, 1), |
| | | |
| | | strokeWidth: 5, |
| | | clampToGround: true, |
| | | }) |
| | | bufferSource.then((bufferSource) => { |
| | | sgworld.Navigate.flyToObj(bufferSource) |
| | | Viewer.dataSources.add(bufferSource); |
| | | |
| | | } |
| | | ) |
| | | // var jsonurl = |
| | | // wnsUrl + |
| | | // '?start=' + |
| | | // this.pathFrom.lon + |
| | | // '&end=' + |
| | | // this.pathFrom.lat + |
| | | // '&propertyName=Shape&tolerance=500&request=FindPath&format=json'; |
| | | // $.ajax({ |
| | | // url: jsonurl, |
| | | // async: false, |
| | | // type: 'GET', |
| | | // dataType: 'json', |
| | | // contentType: 'application/json;charset=utf-8', |
| | | // success: (data) => { |
| | | // this.executeFly3D(data); |
| | | // }, |
| | | // }); |
| | | } else { |
| | | var that = this; |
| | | if (this.handler != null) { |
| | |
| | | sgworld.Creator.DeleteObject(this.linePath); |
| | | this.linePath = null; |
| | | } |
| | | |
| | | Viewer.dataSources.removeAll( ) |
| | | break; |
| | | case 4: |
| | | if (this.linePath != null) { |
| | |
| | | } |
| | | }, |
| | | setLiClick(res, index) { |
| | | |
| | | setTimeout(() => { |
| | | this.changeliSelect = res.cnName; |
| | | if (res.url.indexOf('http') != -1) { |
| | | if (this.$store.reporturl == null) { |
| | | if (location.href.indexOf('/WareInspection') == -1) { |
| | | this.$store.reporturl = res.url; |
| | | this.$router.push('/WareInspection'); |
| | | } else { |
| | |
| | | |
| | | that.setMenuTree(menuLists); |
| | | } else { |
| | | this.$message({ |
| | | message: 'ææ èåæ æ°æ®', |
| | | type: 'warning' |
| | | }); |
| | | this.$message({ |
| | | message: 'ææ èåæ æ°æ®', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | |
| | | return father.pid == 1; // è¿åä¸çº§èå |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | message: 'ææ èåæ æ°æ®', |
| | | type: 'warning' |
| | | }); |
| | | this.$message({ |
| | | message: 'ææ èåæ æ°æ®', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | }, |
| | | logOut() { |
| | |
| | | <el-form-item label="åä½"> |
| | | <el-select |
| | | ref="multiSelect" |
| | | style="width: 300px" |
| | | style="width: 300px; " |
| | | v-model="selFrom.name" |
| | | placeholder="è¯·éæ©åä½åç§°..." |
| | | @change="chooseCustom('multiSelect')" |
| | | > |
| | | <el-option |
| | | :value="selectTree" |
| | | style="overflow: auto; backgrond: transparent; height: 200px" |
| | | style="overflow: auto; backgrond: transparent; height: 100%;" |
| | | disabled |
| | | > |
| | | <el-tree |
| | |
| | | /deep/.el-dialog__title { |
| | | color: white; |
| | | } |
| | | /* //å³ä¾§å䏿¹çç½è¾¹ */ |
| | | /deep/.el-scrollbar__wrap{ |
| | | height: 1000px !important; |
| | | } |
| | | .divider { |
| | | margin-top: 8px; |
| | | } |
| | |
| | | .el-scrollbar__wrap { |
| | | margin-bottom: -20px !important; |
| | | margin-right: -20px !important; |
| | | |
| | | } |
| | | .el-select-dropdown__item.hover, |
| | | .el-select-dropdown__item:hover { |
| | |
| | | { |
| | | id: 'j1', |
| | | label: 'synthesis.synthobj.m1', |
| | | name: 'æ°´å¹³è·ç¦»', |
| | | name: '表é¢è·ç¦»', |
| | | css: 'twoMenu_imge71', |
| | | }, |
| | | { |
| | |
| | | (data) => { |
| | | data.id = window.sgworld.Core.getuid(); |
| | | this.measureData.set(data.id, measure); |
| | | this.openMeasureResultInfo('æ°´å¹³è·ç¦»', data); |
| | | this.openMeasureResultInfo('表é¢è·ç¦»', data); |
| | | } |
| | | ); |
| | | break; |
| | |
| | | ); |
| | | break; |
| | | case 'j3': |
| | | var measure = window.sgworld.Command.execute( |
| | | 1, |
| | | 11, |
| | | this.colorAll, |
| | | (data) => { |
| | | data.id = window.sgworld.Core.getuid(); |
| | | this.measureData.set(data.id, measure); |
| | | this.openMeasureResultInfo('æµ·æé«åº¦', data); |
| | | } |
| | | ); |
| | | // var measure = window.sgworld.Command.execute( |
| | | // 1, |
| | | // 11, |
| | | // this.colorAll, |
| | | // (data) => { |
| | | // data.id = window.sgworld.Core.getuid(); |
| | | // this.measureData.set(data.id, measure); |
| | | // this.openMeasureResultInfo('æµ·æé«åº¦', data); |
| | | // } |
| | | // ); |
| | | var measure = window.sgworld.Command.execute(0, 3, this.colorAll, (data) => { |
| | | data.id = window.sgworld.Core.getuid(); |
| | | this.measureData.set(data.id, measure); |
| | | this.openMeasureResultInfo('å¹³é¢é¢ç§¯', data); |
| | | |
| | | |
| | | }); |
| | | |
| | | break; |
| | | case 'j2': |
| | | var measure = window.sgworld.Command.execute( |
| | |
| | | openMeasureResultInfo(name, data) { |
| | | let info = ''; |
| | | switch (name) { |
| | | case 'æ°´å¹³è·ç¦»': |
| | | case '表é¢è·ç¦»': |
| | | case '空é´è·ç¦»': |
| | | info = 'æ»é¿åº¦ï¼' + data.distance[data.distance.length - 1]; |
| | | break; |
| | | case 'æµ·æé«åº¦': |
| | | info = 'æµ·æï¼' + data.height; |
| | | info = 'é«åº¦ï¼' + data.height; |
| | | break; |
| | | case 'åç´é«åº¦': |
| | | info = `${data.gddistance}<br>${data.kjdistance}<br>${data.spdistance}`; |
| | |
| | | } |
| | | }, |
| | | setAddLayers(res) { |
| | | |
| | | let layerWMS = new Cesium.WebMapServiceImageryProvider({ |
| | | url: geoServerURl, |
| | | layers: res.resource, |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | <el-button v-if="btnStatus.insert" |
| | | @click="conditionVisible = true" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="small" |
| | | type="primary" |
| | | type="primary" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | align="center" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | |
| | | align="center" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | min-width="80" |
| | | min-width="120" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | class="infoBox" |
| | | v-show="showinfoBox" |
| | | > |
| | | <el-card class="box-card"> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{$t('common.details')}}</span> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <span>{{$t('common.details')}}</span> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <ul> |
| | | <li v-for="(item, index) in itemdetail"> |
| | | <p> |
| | | <label> {{ item.label }}:</label> |
| | | <label class="boxlabel">{{ item.value }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-card> |
| | | <el-divider></el-divider> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <ul> |
| | | <li v-for="(item, index) in itemdetail"> |
| | | <p> |
| | | <label> {{ item.label }}:</label> |
| | | <label class="boxlabel">{{ item.value }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | |
| | | </div> |
| | | <el-dialog |
| | | :title="$t('common.attachinform')" |
| | |
| | | style="display: none" |
| | | @change="insertFile( )" |
| | | /> |
| | | <el-link |
| | | <el-link |
| | | @click="getInsertFile( )" |
| | | :underline="false" |
| | | ><i class="el-icon-folder-opened"></i></el-link> |
| | |
| | | <el-form-item> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | <el-link v-if="btnStatus.insert" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachInsert" |
| | | >{{$t('common.append')}}</i></el-link> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | <el-link v-if="btnStatus.delete" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachDel" |
| | |
| | | permsEntity |
| | | .filter((item) => item.perms == currentPerms) |
| | | .map((item) => { |
| | | console.log(item); |
| | | |
| | | this.btnStatus[item.tag.substr(1)] = true; |
| | | }); |
| | | }, |
| | |
| | | } |
| | | .infoBox { |
| | | width: 500px; |
| | | |
| | | position: absolute; |
| | | z-index: 100; |
| | | top: 15%; |
| | | right: 15%; |
| | | background-color: #303030; |
| | | color: white; |
| | | border: 1px solid gray; |
| | | height: 600px; |
| | | padding: 10px; |
| | | overflow: auto; |
| | | border-radius: 5px; |
| | | .el-card { |
| | | background-color: transparent; |
| | | color: white; |
| | |
| | | </el-breadcrumb> |
| | | <div> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(1)" |
| | | type="info" |
| | |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(2)" |
| | | type="info" |
| | |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(1)" |
| | | type="success" |
| | |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(2)" |
| | | type="success" |
| | |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | v-if="menuStatus.delete" |
| | | @click="setDelNode()" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | type="danger" |
| | |
| | | </el-form-item> |
| | | <div class="btnBox"> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | class="primary" |
| | | size="small" |
| | | @click="updCata('itemdetail')" |
| | |
| | | $t('common.preservation') |
| | | }}</el-button> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | type="info" |
| | | size="small" |
| | | @click="reset" |
| | |
| | | updateDirTrees, |
| | | insertDir, |
| | | deleteDir, |
| | | getPerms, |
| | | } from '../../api/api'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | export default { |
| | |
| | | } |
| | | }; |
| | | return { |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | | }, |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'name', |
| | |
| | | this.getDirTree(); |
| | | return; |
| | | } else { |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | }); |
| | | }, |
| | | handleNodeClick(data, node) { |
| | |
| | | }, 500); |
| | | }) |
| | | .catch((res) => { |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | this.$message.error('ä¿®æ¹å¤±è´¥ï¼è¯·éè¯ï¼'); |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | } else { |
| | |
| | | this.itemdetail = JSON.parse(this.backUpData); |
| | | } |
| | | }, |
| | | showPermsMenu(res) { |
| | | |
| | | switch (res.tag) { |
| | | case '/delete': |
| | | this.menuStatus.delete = true; |
| | | break; |
| | | case '/insert': |
| | | this.menuStatus.insert = true; |
| | | break; |
| | | case '/update': |
| | | this.menuStatus.update = true; |
| | | break; |
| | | } |
| | | }, |
| | | getPerms() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | if (!permsEntity || !permsEntity.length) { |
| | | getPerms().then((res) => { |
| | | if (res.code == 200) { |
| | | permsEntity = res.result; |
| | | } |
| | | }); |
| | | } |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (val === permsEntity[i].perms) { |
| | | console.log(i, permsEntity[i]) |
| | | this.showPermsMenu(permsEntity[i]); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getDirTree(); |
| | | this.getPerms(); |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <!-- ä¸ä¼ --> |
| | | <el-button |
| | | <el-button v-if="menuStatus.upload" |
| | | :disabled="tableData.length == 0 ? false : true" |
| | | @click="setFileUpload" |
| | | size="small" |
| | |
| | | $t('common.upload') |
| | | }}</el-button> |
| | | <!-- å é¤ --> |
| | | <el-button |
| | | <el-button v-if="menuStatus.delete" |
| | | :disabled="multipleSelection.length == 0 ? true : false" |
| | | icon="el-icon-delete" |
| | | size="small" |
| | |
| | | type="danger" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | <!-- è´¨æ£ --> |
| | | <el-button |
| | | <el-button v-if="menuStatus.insert" |
| | | :disabled="multipleSelection.length == 0 ? true : false" |
| | | type="info" |
| | | size="small" |
| | |
| | | >{{$t('common.quayTest')}} |
| | | </el-button> |
| | | <!-- å
¥åº --> |
| | | <el-button |
| | | <el-button v-if="menuStatus.insert" |
| | | @click="setFileWare" |
| | | size="small" |
| | | :disabled="tableData.length == 0 ? true: false" |
| | |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | v-if="scope.row.code != null" |
| | | <el-button v-if="menuStatus.download" |
| | | v-show="scope.row.code != null" |
| | | @click="handerLogClick(scope.row)" |
| | | type="text" |
| | | size="mini" |
| | |
| | | size="small" |
| | | type="info" |
| | | >{{ $t('common.reset') }}</el-button> |
| | | <el-button |
| | | <el-button v-if="menuStatus.delete" |
| | | @click="setWarehouseDel" |
| | | icon="el-icon-folder-delete" |
| | | type="danger" |
| | |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkAttrs" |
| | | > |
| | | <el-checkbox checked disabled>屿§æ£æ¥ï¼(*dlg*.gdb+*å°å½¢å¾**.dwg)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >屿§æ£æ¥ï¼(*dlg*.gdb+*å°å½¢å¾**.dwg)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkMath" |
| | | > |
| | | <el-checkbox checked disabled>æ°å¦åºç¡æ£æ¥ï¼(.shp,.dlg)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >æ°å¦åºç¡æ£æ¥ï¼(.shp,.dlg)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkDecorate" |
| | | > |
| | | <el-checkbox checked disabled>å¾é¢æ´é¥°æ£æ¥ï¼(.dwg)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >å¾é¢æ´é¥°æ£æ¥ï¼(.dwg)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkXls" |
| | | > |
| | | <el-checkbox checked disabled>è¡¨æ ¼æ°æ®æ£æ¥ï¼(.xls/.xlsx)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >è¡¨æ ¼æ°æ®æ£æ¥ï¼(.xls/.xlsx)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkOrigin" |
| | | > |
| | | <el-checkbox checked disabled>åç¹æ£æ¥ï¼(*åé¢å¾*.dwg)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >åç¹æ£æ¥ï¼(*åé¢å¾*.dwg)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | | v-show="quayTestShow.checkMeta" |
| | | > |
| | | <el-checkbox checked disabled>å
æ°æ®æ£æ¥ï¼(*å
æ°æ®*.xls/.xlsx)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >å
æ°æ®æ£æ¥ï¼(*å
æ°æ®*.xls/.xlsx)</el-checkbox> |
| | | </div> |
| | | <div |
| | | class="ContBox" |
| | |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-checkbox checked disabled>æææ£æ¥ï¼(*å°å½¢å¾*.dwg)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >æææ£æ¥ï¼(*å°å½¢å¾*.dwg)</el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="ContDiv"> |
| | |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-checkbox checked disabled>æ
æ ¼æ£æ¥ï¼(.tif/.img)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >æ
æ ¼æ£æ¥ï¼(.tif/.img)</el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="ContDiv"> |
| | |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-checkbox checked disabled>é«ç¨æ£æ¥ï¼(.tif/.img)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >é«ç¨æ£æ¥ï¼(.tif/.img)</el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="ContDiv"> |
| | |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-checkbox checked disabled>ç¹äºæ£æ¥ï¼(.laz + *æ¿å
ç¹äº*.xls/.xlsx)</el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >ç¹äºæ£æ¥ï¼(.laz + *æ¿å
ç¹äº*.xls/.xlsx)</el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="ContDiv"> |
| | |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-checkbox checked disabled>OSGBæ£æ¥ï¼(.osgb + *徿æå½±*.xls/.xlsx) </el-checkbox> |
| | | <el-checkbox |
| | | checked |
| | | disabled |
| | | >OSGBæ£æ¥ï¼(.osgb + *徿æå½±*.xls/.xlsx) </el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="ContDiv"> |
| | |
| | | pageSize: 1, |
| | | pageSize: 10, |
| | | }, |
| | | count1:0, |
| | | attributeData:[], |
| | | count1: 0, |
| | | attributeData: [], |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | | upload: false, |
| | | download: false, |
| | | |
| | | }, |
| | | } |
| | | }, |
| | | |
| | |
| | | this.setProjectName(); |
| | | //è·åæä»¶ä¸ä¼ è·¯å¾ |
| | | this.getFilePath(); |
| | | //æéè·å |
| | | this.getPerms(); |
| | | }, |
| | | watch: { |
| | | |
| | | }, |
| | | methods: { |
| | | showPermsMenu(res) { |
| | | |
| | | switch (res.tag) { |
| | | case '/delete': |
| | | this.menuStatus.delete = true; |
| | | break; |
| | | case '/insert': |
| | | this.menuStatus.insert = true; |
| | | break; |
| | | case '/update': |
| | | this.menuStatus.update = true; |
| | | break; |
| | | case '/upload': |
| | | this.menuStatus.upload = true; |
| | | break; |
| | | case '/download': |
| | | this.menuStatus.download = true; |
| | | break; |
| | | } |
| | | }, |
| | | getPerms() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | if (!permsEntity || !permsEntity.length) { |
| | | getPerms().then((res) => { |
| | | if (res.code == 200) { |
| | | permsEntity = res.result; |
| | | } |
| | | }); |
| | | } |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (val === permsEntity[i].perms) { |
| | | |
| | | this.showPermsMenu(permsEntity[i]); |
| | | } |
| | | } |
| | | }, |
| | | //æ°æ®å表æ¸
å-table ç¹å» |
| | | handleLoaderSizeChange(val) { |
| | | this.listLoader.pageIndex = 1; |
| | |
| | | @click="getRemoveForm" |
| | | type="info" |
| | | >{{ $t('common.reset') }}</el-button> |
| | | <el-button |
| | | <el-button v-if="btnStatus.insert" |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | @click="InsertFormdialog = true" |
| | | type="success" |
| | | >{{ $t('common.append') }}</el-button> |
| | | <el-button |
| | | <el-button v-if="btnStatus.delete" |
| | | icon="el-icon-delete" |
| | | size="small" |
| | | @click="DelFormData" |
| | |
| | | >{{ |
| | | $t('common.details') |
| | | }}</el-link> |
| | | <el-link |
| | | <el-link v-if="btnStatus.update" |
| | | @click="editInfo(scope.row)" |
| | | style="margin-left: 10px; color: white" |
| | | >{{ $t('common.edit') }}</el-link> |
| | |
| | | prop="geom" |
| | | :label="$t('dataManage.projectObj.location')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | /> |
| | | <el-table-column |
| | | prop="country" |
| | | :label="$t('dataManage.projectObj.country')" |
| | | /> |
| | | <el-table-column |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | /> |
| | | <el-table-column |
| | | prop="location" |
| | | :label="$t('dataManage.projectObj.county')" |
| | | /> |
| | | <el-table-column |
| | | prop="department" |
| | |
| | | > |
| | | </el-link> |
| | | </el-form-item> |
| | | |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.province')"> |
| | | <el-input v-model="editFrom.province"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country"></el-input> |
| | | <el-form-item :label="$t('dataManage.projectObj.county')"> |
| | | <el-input v-model="editFrom.location"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.corpname')"> |
| | | <el-input v-model="editFrom.corpname"></el-input> |
| | |
| | | project_insert, |
| | | project_delete, |
| | | project_update, |
| | | project_selectLocation, |
| | | } from '../../api/api'; |
| | | import ProjectOl from '../../components/ProjectOl.vue'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | innerClose() { |
| | | async innerClose() { |
| | | this.showMap = false; |
| | | this.innerVisible = false; |
| | | ; |
| | | |
| | | var wkt = this.$wkt.parse(this.$store.state.projeOl); |
| | | |
| | | const data = await project_selectLocation({ x: wkt.coordinates[0], y: wkt.coordinates[1] }) |
| | | console.log(data.result) |
| | | if (data.code == 200) { |
| | | |
| | | for (var i in data.result) { |
| | | var key = data.result[i].key; |
| | | var val = data.result[i].value; |
| | | if (key == "å½") { |
| | | this.editFrom.country = val; |
| | | } else if (key == "ç") { |
| | | this.editFrom.province = val; |
| | | }else if (key == "å¸") { |
| | | this.editFrom.location = val; |
| | | } |
| | | } |
| | | } |
| | | this.editFrom.geom = this.$store.state.projeOl; |
| | | }, |
| | | async insertEditFrom() { |
| | |
| | | this.$message.error('å表è·å失败'); |
| | | return; |
| | | } |
| | | |
| | | // this.count = data.result; |
| | | this.count1 = data.count; |
| | | this.dbTableData = data.result; |
| | |
| | | |
| | | <div> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(1)" |
| | | type="info" |
| | |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(2)" |
| | | type="info" |
| | |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(1)" |
| | | type="success" |
| | |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(2)" |
| | | type="success" |
| | |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | v-if="menuStatus.delete" |
| | | @click="setDelNode()" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | type="danger" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | menuStatus: { |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | |
| | | <br /> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | type="success" |
| | | size="small" |
| | | @click="showAddDialog" |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.delete" |
| | | type="danger" |
| | | size="small" |
| | | @click="deleteUserInfo" |
| | |
| | | </el-form-item> |
| | | <el-form-item v-show="setbatchFlag"> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | size="small" |
| | | @click="editPwd" |
| | | type="warning" |
| | |
| | | width="200px" |
| | | :label="$t('userManage.userInfoObj.bak')" |
| | | /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | :label="$t('common.operate')" |
| | | width="80px" |
| | | fixed="right" |
| | | v-if="menuStatus.update" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- <el-button type="primary" size="small">ä¿®æ¹</el-button> --> |
| | | |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | |
| | | size="small" |
| | | >{{ $t('common.edit') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | <div |
| | | style="margin-top: 25px" |
| | |
| | | methods: { |
| | | ...mapActions(['login', 'getpublickey']), |
| | | getUserInfo() { |
| | | this.pageSize = 10; |
| | | this.currentPage = 1; |
| | | queryDepTree() |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | }; |
| | | this.multipleSelection = []; |
| | | this.resetPwd = false; |
| | | |
| | | this.getUserInfo(); |
| | | } |
| | | }, 500); |
| | |
| | | label-width="100px" |
| | | :inline="true" |
| | | > |
| | | <el-form-item :label="$t('common.username')"> |
| | | <el-form-item > |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | </el-breadcrumb> |
| | | |
| | | <div> |
| | | <el-button |
| | | <el-button v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(1)" |
| | | type="info" |
| | | icon="el-icon-top" |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | <el-button v-if="menuStatus.update" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setEditNode(2)" |
| | | type="info" |
| | | icon="el-icon-bottom" |
| | | size="small" |
| | | >åä¸ç§»å¨</el-button> |
| | | <el-button |
| | | <el-button v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(1)" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | <el-button v-if="menuStatus.insert" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | @click="setNewNode(2)" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | >æ°å¢å级</el-button> |
| | | <el-button |
| | | <el-button v-if="menuStatus.delete" |
| | | @click="setDelNode()" |
| | | :disabled="itemdetail.pid == null ? true : false" |
| | | type="danger" |
| | |
| | | queryMaxId, |
| | | insertDep, |
| | | deleteDep, |
| | | getPerms |
| | | } from '../../api/api'; |
| | | export default { |
| | | //importå¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | |
| | | break; |
| | | } |
| | | }, |
| | | getPerms() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | |
| | | if (permsEntity.length == 0) { |
| | | getPerms().then((res) => { |
| | | if (res.code == 200) { |
| | | permsEntity = res.result; |
| | | } |
| | | }); |
| | | } |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (permsEntity[i].perms == val) { |
| | | console.log(permsEntity[i]) |
| | | this.showPermsMenu(permsEntity[i]); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getMenuTree(); |
| | | this.getPerms(); |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (permsEntity[i].perms == val) { |
| | | this.showPermsMenu(permsEntity[i]); |
| | | } |
| | | } |
| | | // var val = this.$store.state.currentPerms; |
| | | // var permsEntity = this.$store.state.permsEntity; |
| | | // for (var i = 0; i < permsEntity.length; i++) { |
| | | // if (permsEntity[i].perms == val) { |
| | | // this.showPermsMenu(permsEntity[i]); |
| | | // } |
| | | // } |
| | | }, |
| | | }; |
| | | </script> |