管道基础大数据平台系统开发-【前端】-新系統界面
src/components/mapsdk.vue
@@ -359,11 +359,11 @@
            <span>属性信息</span>
            <div style="float: right; cursor: pointer">
              <el-link
                  v-if="$store.state.propertiesName.tabDesc == '勘察工点'"
                  type="primary"
                  :underline="false"
                  @click="getPointInfo"
                  style="margin-right: 10px"
                v-if="$store.state.propertiesName.tabDesc == '勘察工点'"
                type="primary"
                :underline="false"
                @click="getPointInfo"
                style="margin-right: 10px"
              >勘察信息表</el-link>
              <el-link
                type="primary"
@@ -397,31 +397,29 @@
      </div>
      <!--勘察信息弹窗-->
      <div
          class="attributionPop"
          v-if="showAttribute"
        class="attributionPop"
        v-if="showAttribute"
      >
        <el-card class="box-card">
          <div slot="header">
            <span>勘察信息</span>
            <div style="float: right; cursor: pointer">
              <i
                  class="el-icon-close"
                  @click="showAttribute=false"
                class="el-icon-close"
                @click="showAttribute=false"
              ></i>
            </div>
          </div>
          <div
              class="pointInfoBoxContext"
              style="height:250px;overflow-y: auto"
            class="pointInfoBoxContext"
            style="height:250px;overflow-y: auto"
          >
            <div
                style="line-height: 20px"
                v-for="(item, index) in attributeList"
                :key="index"
              style="line-height: 20px"
              v-for="(item, index) in attributeList"
              :key="index"
            >
              <span
                  style="font-size: 14px;font-weight: bold;margin-right: 5px"
              >{{item.alias}}:</span>
              <span style="font-size: 14px;font-weight: bold;margin-right: 5px">{{item.alias}}:</span>
              <span>{{item.value ? item.value :'暂无数据'}}</span>
            </div>
          </div>
@@ -450,19 +448,37 @@
      </div>
      <!--三维截面分析弹窗-->
      <div
          class="modelClipPop"
          v-if="$store.state.propertiesFlag == '3'"
        class="modelClipPop"
        v-if="$store.state.propertiesFlag == '3'"
      >
        <div class="slide-bg">
          <el-slider class="slide" @change="valveChange()" :min="-300" :max="300" v-model="valueX"></el-slider>
          <el-slider
            class="slide"
            @change="valveChange()"
            :min="-300"
            :max="300"
            v-model="valueX"
          ></el-slider>
          <span>左右截面</span>
        </div>
        <div class="slide-bg">
          <el-slider class="slide" @change="valveChange()" :min="-300" :max="300" v-model="valueY"></el-slider>
          <el-slider
            class="slide"
            @change="valveChange()"
            :min="-300"
            :max="300"
            v-model="valueY"
          ></el-slider>
          <span>前后截面</span>
        </div>
        <div class="slide-bg">
          <el-slider class="slide" @change="valveChange()" :min="-300" :max="300" v-model="valueZ"></el-slider>
          <el-slider
            class="slide"
            @change="valveChange()"
            :min="-300"
            :max="300"
            v-model="valueZ"
          ></el-slider>
          <span>上下截面</span>
        </div>
      </div>
@@ -677,9 +693,9 @@
      },
      showAttribute: false,
      attributeList: [],
      valueZ:0,
      valueX:0,
      valueY:0
      valueZ: 0,
      valueX: 0,
      valueY: 0
    };
  },
  mounted() {
@@ -692,24 +708,24 @@
    });
    this.$bus.$on('closeMenuPop', (e) => {
      //非路径分析
      if (e != 'd3'){
      if (e != 'd3') {
        this.showPathAnalysisBoxDialog = false;
      }
      //非坡度分析
      if (e != 'd2'){
      if (e != 'd2') {
        this.showLengendDialog = false;
      }
      //非地形平整
      if (e != 'd10'){
      if (e != 'd10') {
        this.showTerrainLevelDialog = false;
      }
    });
    //模型捕捉
    this.catchmodel()
    window.localStorage.setItem('slider_x',this.valueX);
    window.localStorage.setItem('slider_y',this.valueY);
    window.localStorage.setItem('slider_z',this.valueZ);
    window.localStorage.setItem('slider_x', this.valueX);
    window.localStorage.setItem('slider_y', this.valueY);
    window.localStorage.setItem('slider_z', this.valueZ);
  },
  methods: {
@@ -1359,7 +1375,8 @@
      if (this.$store.state.propertiesName == null) {
        return
      }
      let tabName = this.$store.state.propertiesName.ns + '.' + this.$store.state.propertiesName.tab;
      let tabName = this.$store.state.propertiesName.ns + '.' + this.$store.state.propertiesName.enName;
      let eventid = this.$store.state.propertiesInfo.eventid;
      var obj = {
@@ -1375,6 +1392,7 @@
        this.$message.error('暂无附件');
        return
      }
      this.attachList = res.result;
      this.showAttach = true;
    },
@@ -1439,9 +1457,9 @@
      return m < 10 ? '0' + m : m;
    },
    //勘察信息表
    getPointInfo(){
    getPointInfo() {
      this.showAttribute = !this.showAttribute;
      if (this.showAttribute){
      if (this.showAttribute) {
        let attrbuteOption = workSite;
        var name = attrbuteOption[0].table.replaceAll("_", "");
        this.getAttributeDomFiled(name);
@@ -1480,18 +1498,18 @@
          std.push(data1[i]);
        }
      }
      this.getAttributeTableData(std, res,this.$store.state.propertiesInfo.工点名称,data1)
      this.getAttributeTableData(std, res, this.$store.state.propertiesInfo.工点名称, data1)
    },
    //获取表格信息
    async getAttributeTableData(res, name,title,list) {
    async getAttributeTableData(res, name, title, list) {
      let attributeFild = res;
      let parmams = {
        name:name,
        pageIndex:1,
        pageSize:10,
        count:0,
        title:title,
        filter : "workname = " + "'" + title + "'",
        name: name,
        pageIndex: 1,
        pageSize: 10,
        count: 0,
        title: title,
        filter: "workname = " + "'" + title + "'",
      }
      const data = await dataQuery_selectByPage(parmams);
      if (data.code != 200) {
@@ -1507,12 +1525,12 @@
          }
        }
      }
      let info = data.result.length >0 ? data.result[0] : '';
      if (info){
      let info = data.result.length > 0 ? data.result[0] : '';
      if (info) {
        let keys = Object.keys(info);
        keys.forEach((obj) => {
          list.forEach((item) => {
            if (item.field == obj){
            if (item.field == obj) {
              item.value = info[obj];
            }
          })
@@ -1520,10 +1538,10 @@
        this.attributeList = list;
      }
    },
    valveChange(){
      window.localStorage.setItem('slider_x',this.valueX);
      window.localStorage.setItem('slider_y',this.valueY);
      window.localStorage.setItem('slider_z',this.valueZ);
    valveChange() {
      window.localStorage.setItem('slider_x', this.valueX);
      window.localStorage.setItem('slider_y', this.valueY);
      window.localStorage.setItem('slider_z', this.valueZ);
    }
  },
  destroyed() {
@@ -1581,26 +1599,26 @@
        padding: 10px 20px;
      }
    }
    .modelClipPop{
    .modelClipPop {
      width: 350px;
      z-index: 40;
      position: absolute;
      left: 2%;
      top: 3%;
      background: rgba(255,255,255,0.85);
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(32, 160, 255, 0.6);
      .slide-bg{
        padding:10px;
      .slide-bg {
        padding: 10px;
        display: flex;
        align-items: center;
        .slide{
        .slide {
          width: 250px;
          margin-left: 5px;
          margin-right: 15px;
        }
      }
    }
    .pathAnalysisBox{
    .pathAnalysisBox {
      width: 412px;
      height: 370px;
      z-index: 40;
@@ -1608,7 +1626,7 @@
      right: 8%;
      bottom: 1%;
    }
    .attributionPop{
    .attributionPop {
      width: 350px;
      height: 370px;
      z-index: 40;