Merge branch 'master' of http://192.168.20.92:8888/r/PM20230220027_Web
| | |
| | | export function selectByPolyline(params) { |
| | | return request.get("/rasterAnalysis/selectByPolyline", { params: params }); |
| | | } |
| | | //数据管理=>更新数简服务 |
| | | export function publish_updateSjLayerStretch(params) { |
| | | return request.post("/publish/updateSjLayerStretch", params); |
| | | } |
| | | |
| | | |
| | |
| | | level: 1, |
| | | checkImgUrl: "椭圆 3 拷贝 22.png", |
| | | }, |
| | | { |
| | | id: "t3", |
| | | imgUrl: "清除.png", |
| | | level: 1, |
| | | name: "清除", |
| | | checkImgUrl: "清除 拷贝 2.png", |
| | | }, |
| | | // { |
| | | // id: "t3", |
| | | // imgUrl: "清除.png", |
| | | // level: 1, |
| | | // name: "清除", |
| | | // checkImgUrl: "清除 拷贝 2.png", |
| | | // }, |
| | | { |
| | | id: "t4", |
| | | imgUrl: "形状 9.png", |
| | |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div |
| | | <!-- <div |
| | | class="selectBox" |
| | | v-show="colorShow" |
| | | > |
| | |
| | | ></el-option> |
| | | |
| | | </el-select> |
| | | </div> |
| | | <div |
| | | </div> --> |
| | | <!-- <div |
| | | class="selectBox" |
| | | v-show="colorShow " |
| | | > |
| | |
| | | :style="item.domCss" |
| | | ></div> |
| | | |
| | | <!-- <img :src="item.url" style="height: 30px; width: 100%" /> --> |
| | | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> --> |
| | | <div v-show="colorShow"> |
| | | <div class="selectBox"> |
| | | <el-button |
| | |
| | | import { |
| | | publish_selectSjColorTables, |
| | | publish_updateSjService, |
| | | publish_updateSjLayerStretch, |
| | | } from "@/api/api"; |
| | | import { ElMessage } from "element-plus"; |
| | | import store from "@/store"; |
| | |
| | | geom = releaseLayer.value.geom; |
| | | } |
| | | var obj = { |
| | | colorTable: color1, // 普通颜色表,可不设 |
| | | gradientColorTable: color2, |
| | | // colorTable: color1, // 普通颜色表,可不设 |
| | | // gradientColorTable: color2, |
| | | enhanceType: stretchValue.value, // 拉伸方式 0:不拉伸,1 线性拉伸,2 直方图均衡,3 标准差拉伸,4 伽马拉伸 |
| | | enhanceFactor: stretchNum.value, // 拉伸因子 null 或 小数 |
| | | dircode: "00", // 目录编码 |
| | | epsg: 104903, // 104903-月球2000,4326-WGS84 |
| | | ids: null, // 不要设定 |
| | | name: releaseLayer.value.cnName, // 当前服务名称 |
| | | nodata: 0, // 黑色-0,白色-255 |
| | | type: releaseLayer.value.type, // 影像-DOM,高程- |
| | | geom: geom, |
| | | pubid: releaseLayer.value.pubid, |
| | | // dircode: "00", // 目录编码 |
| | | // epsg: 104903, // 104903-月球2000,4326-WGS84 |
| | | layerId: releaseLayer.value.id, // 不要设定 |
| | | // name: releaseLayer.value.cnName, // 当前服务名称 |
| | | // nodata: 0, // 黑色-0,白色-255 |
| | | // type: releaseLayer.value.type, // 影像-DOM,高程- |
| | | // geom: geom, |
| | | // pubid: releaseLayer.value.pubid, |
| | | }; |
| | | publish_updateSjService(obj).then((res) => { |
| | | store.state.loading = true; |
| | | publish_updateSjLayerStretch(obj).then((res) => { |
| | | if (res.code != 200) { |
| | | return ElMessage(data.msg); |
| | | } |
| | | store.state.restLayer = true; |
| | | setSpatialClose(); |
| | | if (res.code == 200 && res.result > 0) { |
| | | store.state.loading = false; |
| | | store.state.restLayer = true; |
| | | setSpatialClose(); |
| | | } else { |
| | | store.state.loading = false; |
| | | } |
| | | }); |
| | | // const data = ; |
| | | // console.log("1122223" + data.code); |
| | |
| | | colorShow.value = true; |
| | | } |
| | | }); |
| | | getColorJson(); |
| | | // getColorJson(); |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | |
| | | // import config from "../../../public/config/config.js"; |
| | | import { dataQuery_selectByPage } from "@/api/api.js"; |
| | | import { ElMessage } from "element-plus"; |
| | | import menuTool from "@/assets/js/Map/menuTool"; |
| | | let searchValue = ref(""); |
| | | const searchFLag = ref(false); |
| | | const tableData = ref([]); |
| | |
| | | const NumhandleChange = (value: number) => {}; |
| | | const handleChange = (val: string[]) => {}; |
| | | const setPoitCannel = () => { |
| | | if (imageLabel) { |
| | | imageLabel.deleteObject(); |
| | | imageLabel = null; |
| | | } |
| | | // if (imageLabel) { |
| | | // imageLabel.deleteObject(); |
| | | // imageLabel = null; |
| | | // } |
| | | menuTool.setClearLocation("地名定位"); |
| | | }; |
| | | const setPointLocal = (res) => { |
| | | if (imageLabel) { |
| | | setPoitCannel(); |
| | | } |
| | | setPoitCannel(); |
| | | |
| | | var position = { X: res.lon, Y: res.lat, Altitude: 10 }; |
| | | imageLabel = window.sgworld.Creator.CreateImageLabel( |
| | | position, |
| | | config.StaticFileBaseUrl + "/Workers/image/location.png", |
| | | {}, |
| | | 0, |
| | | "标签点" |
| | | ); |
| | | var id = imageLabel.item.id; |
| | | window.sgworld.Navigate.flyToObj(imageLabel.item); |
| | | menuTool.setLocationPoint([res.lon, res.lat], "地名定位"); |
| | | // imageLabel = window.sgworld.Creator.CreateImageLabel( |
| | | // position, |
| | | // config.StaticFileBaseUrl + "/Workers/image/location.png", |
| | | // {}, |
| | | // 0, |
| | | // "标签点" |
| | | // ); |
| | | // var id = imageLabel.item.id; |
| | | // window.sgworld.Navigate.flyToObj(imageLabel.item); |
| | | // window.earthCtrl.camera.flyTo(res.log, res.lat, 300, 9.5, -45, 0.0, 5); |
| | | }; |
| | | const setInputCahgne = () => { |