| | |
| | | storageDirectory: '存储目录', |
| | | dataVersion: '数据版本', |
| | | selectData: '选择数据', |
| | | selectMetadata: '选择元数据', |
| | | selectMetadata: '选择源数据', |
| | | entryName: '项目名称', |
| | | selectWBSData: '选择WBS数据', |
| | | coordinateSystem: '坐标系', |
| | |
| | | downlog: { |
| | | type1: 'Shp文件', |
| | | type2: '专题图', |
| | | type3: '元数据', |
| | | type3: '源数据', |
| | | type4: '业务数据', |
| | | type5: '管道分析', |
| | | type6: '统计报告', |
| | |
| | | position: relative; |
| | | top: 10px; |
| | | // margin-top: 24px; |
| | | width: 500px; |
| | | // width: 500px; |
| | | margin-left: 10px; |
| | | } |
| | | </style> |
| | |
| | | }, |
| | | created() { |
| | | this.getCountProjectDisplay() |
| | | this.getCountProjectTour() |
| | | }, |
| | | methods: { |
| | | ChangeBaseLayer() { |
| | |
| | | const position = line.coordinates[0] |
| | | const result = [] |
| | | position.forEach(pos => { |
| | | pos.push(50) |
| | | // 添加漫游高度,后续修改SDK源码可以适配为地面高程 |
| | | pos.push(1000) |
| | | result.push(...pos) |
| | | }) |
| | | // |
| | | console.log("line", position) |
| | | // 西气东输二线西段干线 |
| | | // console.log("PipeLine", PipeLine) |
| | | const features = PipeLine.features |
| | | // features.forEach(item => { |
| | | // const name = item.properties.pipename |
| | | // const rawArr = item.geometry.coordinates |
| | | // }) |
| | | // const pipeline = features.find( |
| | | // item => item.properties.pipename == "西气东输一线" |
| | | // ) |
| | | // const name = pipeline.properties.pipename |
| | | // const rawArr = pipeline.geometry.coordinates[0] |
| | | // const result = [] |
| | | // rawArr.forEach(pos => { |
| | | // pos.push(50) |
| | | // result.push(...pos) |
| | | // }) |
| | | // console.log("result", result); |
| | | // sgworld.Command.execute(2, 3, "", data => { |
| | | // data.showPoint = false |
| | | // data.showLine = true |
| | | // data.mode = 1 |
| | | // // 弹窗数据 |
| | | // window.PathAnimationData = { |
| | | // flyData: data, |
| | | // } |
| | | // window.PathAnimationData.winIndex = layer.open({ |
| | | // type: 2, |
| | | // title: "路径动画", |
| | | // shade: false, |
| | | // area: ["352px", "690px"], |
| | | // offset: "r", |
| | | // skin: "other-class", |
| | | // content: SmartEarthRootUrl + "Workers/path/Path.html", |
| | | // end: function () { |
| | | // PathAnimationData.fly && PathAnimationData.fly.exit() |
| | | // }, |
| | | // }) |
| | | // }) |
| | | |
| | | window.sgworld.Creator.getFlyData(result, data => { |
| | | data.showPoint = false |
| | | data.showLine = true |
| | | data.mode = 1 |
| | | data.height = 2000 |
| | | data.height = 5000 |
| | | |
| | | // 弹窗数据 |
| | | window.PathAnimationData = { |
| | |
| | | } |
| | | window.PathAnimationData.winIndex = layer.open({ |
| | | type: 2, |
| | | title: "路径动画", |
| | | title: "工程巡视", |
| | | shade: false, |
| | | area: ["352px", "690px"], |
| | | offset: "r", |
| | | skin: "other-class", |
| | | content: SmartEarthRootUrl + "Workers/path/Path.html", |
| | | content: SmartEarthRootUrl + "Workers/path/ProjectPath.html", |
| | | end: function () { |
| | | PathAnimationData.fly && PathAnimationData.fly.exit() |
| | | }, |
| | |
| | | ]" |
| | | ></My-bread> |
| | | <el-divider /> --> |
| | | <div class="menuSettings_tree subpage_Div menuRoleAuthorization_left"> |
| | | <div class="menuSettings_tree subpage_Div menuRoleAuthorization_left" style="padding-top:10px;width: 23%;overflow-y: auto;"> |
| | | <My-bread |
| | | :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('operatManage.UserRoleAuthorization')}`, |
| | | `${$t('operatManage.MenuRoleAuthorization')}`, |
| | | ]" |
| | | ></My-bread> |
| | | |
| | | <el-divider /> |
| | | <div class="menuTreeBox"> |
| | | <div> |
| | | <div class="card_tree"> |
| | | <el-tree |
| | | :data="depList" |
| | |
| | | </div> |
| | | </div> |
| | | <!-- <div class="menuRoleAuthorization_resize" title="收缩侧边栏">⋮</div> --> |
| | | <div class="menuTreeBox menuRoleAuthorization_mid"> |
| | | |
| | | <!-- <div class="left_tree subpage_Div"> |
| | | <el-tree |
| | | :data="depList" |
| | |
| | | color: #409eff; |
| | | line-height: 1; |
| | | cursor: text; |
| | | position: relative; |
| | | top: 5px; |
| | | margin-left: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | :total="usercount" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | border-radius: 10px; |
| | | position: relative; |
| | | display: flex; |
| | | // justify-content: space-between; |
| | | justify-content: space-between; |
| | | |
| | | .menuTreeBox { |
| | | width: 100%; |
| | | height: 98%; |
| | | |
| | | .left_tree { |
| | | width: 29%; |
| | | width: 23%; |
| | | height: 92%; |
| | | padding: 10px; |
| | | |
| | |
| | | } |
| | | .right_menu { |
| | | border-radius: 10px; |
| | | width: 97%; |
| | | height: 100%; |
| | | width: 75%; |
| | | // height: 92%; |
| | | padding: 10px; |
| | | |
| | | border-radius: 5px; |
| | | // padding-top:0; |
| | | border-radius: 10px; |
| | | float: right; |
| | | } |
| | | } |
| | | |
| | | |
| | | .divider { |
| | | margin-top: 8px; |
| | |
| | | .el-table /deep/ tr { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <div class="lalala tree-container"> |
| | | <el-input |
| | | placeholder="输入关键字进行过滤" |
| | | <el-input placeholder="输入关键字进行过滤" |
| | | v-model="filterText" |
| | | class="search" |
| | | > |
| | | class="search"> |
| | | </el-input> |
| | | <el-tree |
| | | :data="treeData" |
| | | <el-tree :data="treeData" |
| | | node-key="id" |
| | | default-expand-all |
| | | show-checkbox |
| | |
| | | @node-contextmenu="rightClick" |
| | | @check-change="handleCheckChange" |
| | | :default-checked-keys="handleTreeCheck" |
| | | ref="tree" |
| | | > |
| | | <span |
| | | class="slot-t-node" |
| | | ref="tree"> |
| | | <span class="slot-t-node" |
| | | slot-scope="{ node, data }" |
| | | @dblclick="editNode(data)" |
| | | > |
| | | @dblclick="editNode(data)"> |
| | | <span v-show="!data.isEdit"> |
| | | <span :class="[data.id >= 99 ? 'slot-t-node--label' : '']">{{ |
| | | node.label |
| | | }}</span> |
| | | </span> |
| | | <span v-show="data.isEdit"> |
| | | <el-input |
| | | class="slot-t-input" |
| | | <el-input class="slot-t-input" |
| | | size="mini" |
| | | autofocus |
| | | v-model="data.label" |
| | | :ref="'slotTreeInput' + data.id" |
| | | @blur.stop="NodeBlur(node, data)" |
| | | @keydown.native.enter="NodeBlur(node, data)" |
| | | ></el-input> |
| | | @keydown.native.enter="NodeBlur(node, data)"></el-input> |
| | | </span> |
| | | </span> |
| | | |
| | | </el-tree> |
| | | |
| | | <el-card |
| | | class="box-card" |
| | | <el-card class="box-card" |
| | | ref="card" |
| | | :style="{ ...rightClickMenuStyle }" |
| | | v-show="menuVisible" |
| | | > |
| | | v-show="menuVisible"> |
| | | <div @click="addSameLevelNode()"> |
| | | <i class="el-icon-circle-plus-outline"></i> 添加图层组 |
| | | </div> |
| | | <div |
| | | class="add" |
| | | <div class="add" |
| | | @click="addChildNode()" |
| | | v-show="firstLevel" |
| | | > |
| | | v-show="firstLevel"> |
| | | <i class="el-icon-circle-plus-outline"></i> 添加图层 |
| | | </div> |
| | | <div |
| | | class="delete" |
| | | @click="deleteNode()" |
| | | > |
| | | <div class="delete" |
| | | @click="deleteNode()"> |
| | | <i class="el-icon-remove-outline"></i> 删除节点 |
| | | </div> |
| | | <div |
| | | class="edit" |
| | | @click="editNode()" |
| | | > |
| | | <div class="edit" |
| | | @click="editNode()"> |
| | | <i class="el-icon-edit"></i> 修改节点 |
| | | </div> |
| | | <div |
| | | class="edit" |
| | | @click="showLayerAttribute()" |
| | | > |
| | | <div class="edit" |
| | | @click="showLayerAttribute()"> |
| | | <i class="el-icon-edit"></i> 属性 |
| | | </div> |
| | | <!-- <div |
| | |
| | | <i class="el-icon-bottom"></i> 下移 |
| | | </div> --> |
| | | </el-card> |
| | | <el-dialog |
| | | :title="appendNodetitle" |
| | | <el-dialog :title="appendNodetitle" |
| | | :visible.sync="dialogVisible" |
| | | width="30%" |
| | | top="20vh" |
| | | :modal="false" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-form |
| | | ref="form" |
| | | :before-close="handleClose"> |
| | | <el-form ref="form" |
| | | :model="addFormServer" |
| | | label-width="100px" |
| | | > |
| | | label-width="100px"> |
| | | <el-form-item label="服务类型"> |
| | | <!-- <el-input v-model="addFormServer.type"></el-input> --> |
| | | <el-select |
| | | style="width:100%" |
| | | <el-select style="width:100%" |
| | | :popper-append-to-body="false" |
| | | v-model="addFormServer.layerType" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | placeholder="请选择"> |
| | | <el-option v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-slider v-model="addFormServer.opacity"></el-slider> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | @click="setAddServer" |
| | | >确 定</el-button> |
| | | <span slot="footer" |
| | | class="dialog-footer"> |
| | | <el-button type="primary" |
| | | @click="setAddServer">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <queryinfo ref="queryinfo" /> |
| | |
| | | }, |
| | | setAddLayers(res) { |
| | | if (res.layerType == 'WMS') { |
| | | |
| | | var url = geoServerURl; |
| | | if (res.url != null && res.url != undefined) { |
| | | url = res.url |
| | | } |
| | | var width = $("#mapdiv").width() +5 ; |
| | | var height = $("#mapdiv").height()+5 ; |
| | | |
| | | //var width = $("#mapdiv").width(); |
| | | //var height = $("#mapdiv").height(); |
| | | |
| | | var imageryLayers = window.Viewer.scene.imageryLayers; |
| | | let layerWMS = new Cesium.WebMapServiceImageryProvider({ |
| | |
| | | srs: "EPSG:4490", |
| | | styles: "", |
| | | }, |
| | | tileWidth: width, |
| | | tileHeight: height |
| | | tileWidth: 512, |
| | | tileHeight: 512 |
| | | }); |
| | | layerWMS.name = res.label; |
| | | //透明度 |
| | |
| | | source: new ImageWMS({ |
| | | crossOrigin: 'anonymous', |
| | | url: url, |
| | | |
| | | params: { |
| | | FORMAT: 'image/png', |
| | | VERSION: '1.1.1', |
| | |
| | | <el-table-column :label="$t('dataManage.vmobj.name')" > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.ismeta > 0 "> |
| | | <el-link title="元数据查询" @click="setQueryMetaData(scope.row)" target="_blank">{{ scope.row.name }}</el-link> |
| | | <el-link title="源数据查询" @click="setQueryMetaData(scope.row)" target="_blank">{{ scope.row.name }}</el-link> |
| | | </span> |
| | | <span v-else>{{ scope.row.name }}</span> |
| | | </template> |
| | |
| | | |
| | | this.startQueryMetaData(); |
| | | }, |
| | | //元数据页面切换 |
| | | //源数据页面切换 |
| | | handleMetaSizeChange(val){ |
| | | this.listMetaData.pageIndex = 1; |
| | | this.listMetaData.pageSize = val; |
| | | this.startQueryMetaData(); |
| | | }, |
| | | //元数据页面切换 |
| | | //源数据页面切换 |
| | | handMetaCurrentChange(val){ |
| | | this.listMetaData.pageIndex = val; |
| | | this.startQueryMetaData(); |
| | | }, |
| | | //元数据查询 |
| | | //源数据查询 |
| | | setQueryMetaData(row){ |
| | | this.fromQueryMeta.title = row.name |
| | | this.listMetaData = { |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px"> |
| | | <div style="margin-top: 25px"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |