管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-04-06 5685babbcf4eb0b1cbbe1385472d862ce5fbb410
src/views/Archive/index.vue
@@ -840,6 +840,7 @@
      width="90%"
      top="10vh"
      :close-on-click-modal="false"
      :before-close="handleMaptClose"
    >
      <div style="height:73vh">
        <map-sdk v-if='showMapVisible'></map-sdk>
@@ -1131,7 +1132,7 @@
            <el-button
              class="primary"
              size="small"
              @click="getInsertDown"
              @click="getInsertDownx"
            >{{
              $t("common.confirm")
            }}</el-button>
@@ -1407,7 +1408,7 @@
        .catch(_ => { })
    },
    downloadx() {
      this.$bus.$emit("setInsertDown", this.codeForm)
      this.$bus.$emit("setInsertDown2", this.codeForm)
      // 
    },
    closeDownx() {
@@ -1417,7 +1418,7 @@
        repassword: '',
      }
    },
    async getInsertDown() {
    async getInsertDownx() {
      this.dialogInsertVisible = false;
      this.dialogVisible1 = false;
@@ -1434,6 +1435,7 @@
        for (var i in this.ruleForm.depname) {
          std.push(this.ruleForm.depname[i].name)
        }
        obj = {
          pwd: encr(this.codeForm.password),
          entities: entities,
@@ -1466,8 +1468,10 @@
        }
        var dirs = null;
        if (this.listData.dirs) {
          dirs = this.listData.dirs
        }
        obj = {
          pwd: encr(this.codeForm.password),
          entities: [this.listBankData.name], // bpachydrogeology,bhydrogeologyattach
@@ -1775,6 +1779,29 @@
      this.$store.state.download = true;
    },
    handleMaptClose() {
      this.dialogMapVisible = false;
      this.showMapVisible = false;
      this.$store.state.mapMenuBoolean = false;
      this.$store.state.mapMenuBoxFlag = null;
      this.$store.state.mapPopBoolean = false;
      this.$store.state.mapPopBoxFlag = false;
      this.$store.state.download = false;
      if (window.sgworld) {
        window.sgworld.Creator.SimpleGraphic.clear();
        for (var i in this.$store.state.queryInfo) {
          window.sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]);
        }
      }
      this.$store.state.queryInfo = [];
      if (this.$store.state.primitLayer != null) {
        sgworld.Viewer.entities.remove(this.$store.state.primitLayer);
        sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
        this.$store.state.primitLayer = null;
      }
    },
    downloadMap(index, rows) {
      var token = getToken()
      var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + rows.guid + "&pwd=" + rows.pwd;