管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-13 a670b7361a32c8b40af9afbf49770d47f4c240e9
src/components/MapView/mapMenuPop.vue
@@ -44,7 +44,7 @@
            <template slot-scope="scope">
              <el-button
                icon="el-icon-map-location"
                size="mini"
                size="small"
                @click="spaceLocation(scope.$index, scope.row)"
              ></el-button>
            </template>
@@ -64,7 +64,7 @@
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="listdata.pageIndex"
          :page-sizes="[10, 20, 30, 40]"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="listdata.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="pageCount"
@@ -140,7 +140,7 @@
          <el-form-item label="审核单位">
            <div>
              <ul>
                <li v-for="item in ruleForm.depname">
                <li v-for="item in ruleForm.depid">
                  {{item.name}}
                </li>
              </ul>
@@ -196,7 +196,7 @@
    ></iframe>
  </div>
</template>
<script>
import {
  dataQuery_selectByPage,
@@ -208,6 +208,7 @@
  dataQuery_selectDbOverflowDep,
  apply_insertApply,
  decr, encr,
  dataLib_selectDepsByIds,
} from "../../api/api.js";
import { getToken } from "@/utils/auth";
import $ from "jquery";
@@ -265,7 +266,7 @@
        entity: [],
        wkt: null,
        descr: null,
      },
      listPage: {
        pageSize: 10,
@@ -330,26 +331,36 @@
        this.$message.error("数据请求失败");
        return;
      }
      if (data.result.length == 0 || data.result == null) {
        this.insertFlag = 1;
        this.dialogVisible = true;
      } else {
        this.insertFlag = 2;
        var std = [];
        this.insertOption.ids = data.result;
        var val = "";
        for (var i in data.result) {
          if (val == "") {
            val += "ids=" + data.result[i]
          } else {
            val += "&ids=" + data.result[i]
          }
          std.push({
            name: data.result[i]
          })
        }
        const data1 = await dataLib_selectDepsByIds(val);
        this.ruleForm.depid = data1.result;
        this.ruleForm.depname = std;
        this.ruleForm.wkt = decr(this.listdata.wkt)
        this.ruleForm.tabs = this.option;
        this.dialogInsertVisible = true;
      }
    },
    async signGetPublicKey() {
      const res = await sign_getPublicKey();
@@ -389,7 +400,7 @@
        var std = [];
        var std1 = [];
        for (var i in this.option) {
          std.push(this.option[i].tabDesc)
          std1.push(this.option[i].entity)
        }
@@ -410,10 +421,10 @@
          message: '数据申请成功',
          type: 'success'
        });
        this.closeDown();
      }
    },
    async selectDownloadFile(rsid, rspwd) {
      var downObj = {
@@ -470,7 +481,7 @@
      }, []);
      this.option = arr;
      this.listdata.name = this.option[0].entity;
      this.getTableDateHidder();
    },
    async getTableDateHidder() {
@@ -486,7 +497,7 @@
      this.attributeData = [];
      var valadata = data.result;
      var laydomain = data1.result;
      for (var i in valadata) {
        if (valadata[i].showtype == 1) {
          if (
@@ -514,7 +525,7 @@
      if (data.code != 200) {
        this.$message.error("列表调用失败");
      }
      var val1 = decr(data.result);
      if (val1) {
        if (this.imagePoint != null) {
@@ -543,7 +554,7 @@
      } else if (res.type == "MultiPolygon") {
        var val = res.coordinates[0][0];
        var std = [];
        for (var i in val) {
          std.push({ x: val[i][0], y: val[i][1], z: 1000 });
        }
@@ -562,7 +573,7 @@
      } else if (res.type == "MultiLineString") {
        var line = res.coordinates[0];
        var std = [];
        for (var i in line) {
          std.push({ x: line[i][0], y: line[i][1], z: 1000 });
        }
@@ -593,12 +604,12 @@
    },
    async getTableData() {
      this.tableData = [];
      const data = await dataQuery_selectByPage(this.listdata);
      if (data.code != 200) {
        this.$message.error("列表调用失败");
      }
      var val_Data = data.result;
      for (var i in val_Data) {
        var valste = val_Data[i];
@@ -656,7 +667,7 @@
          var val = Cesium.Cartesian3.fromDegrees(
            res.coordinates[0],
            res.coordinates[1],
            1000
            200
          );
          this.$store.state.primitLayer.add({
            position: val,
@@ -714,7 +725,7 @@
          break;
      }
    },
    closeMenuBox() {
      if (this.imagePoint != null) {
        sgworld.Creator.DeleteObject(this.imagePoint);
@@ -737,7 +748,7 @@
  },
};
</script>
<style scoped lang="less">
.menuPop {
  width: 100%;
@@ -771,7 +782,7 @@
      justify-content: flex-end;
    }
  }
  .rightBox {
    width: calc(80% - 1px);
    height: 100%;
@@ -833,7 +844,7 @@
  }
  /deep/ .el-table {
    background-color: transparent;
    th,
    td {
      background-color: transparent;
@@ -841,7 +852,7 @@
    .el-table__expanded-cell {
      background-color: transparent !important;
    }
    // 表头背景色
    th.el-table__cell {
      background-color: #303030;
@@ -851,23 +862,23 @@
      background-color: #303030;
      color: #fff;
    }
    // hover效果
    tr:hover > td {
      background-color: rgba(255, 255, 255, 0.3) !important;
    }
    tbody tr:hover {
      background-color: rgba(255, 255, 255, 0.3) !important;
      // text-align: center;
    }
    // 滚动条宽高
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      /*滚动条宽度*/
@@ -880,7 +891,7 @@
      /*滚动条的背景区域的内阴影*/
      border-radius: 10px;
    }
    /*定义滑块 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-thumb {
      box-shadow: 0px 1px 3px #216fe6 inset;
@@ -890,14 +901,9 @@
  }
}
li {
  color: white;
  line-height: 20px;
  border-bottom: 1px solid white;
  border-bottom: 1px solid gray;
  padding: 5px;
}
/deep/.el-textarea .el-input__count {
  background: transparent;
}
</style>
<style lang="less"></style>
<style scoped lang="less"></style>