管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-28 c09567a745a8af2096de61c1d894891bcd2dea18
样式管理添加下载功能
已修改5个文件
73 ■■■■ 文件已修改
src/components/MapView/mapSpacePop.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/navMenu.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/SpatialData.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/dataUpdata.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/styleManage.vue 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/MapView/mapSpacePop.vue
@@ -292,6 +292,7 @@
      if (data.code != 200) {
        this.$message.error('列表调用失败');
      }
      this.optionx = [];
      var valadata = data.result;
      for (var i in valadata) {
@@ -324,6 +325,7 @@
        this.$message.error('列表调用失败');
      }
      this.domainsLayer = data.result;
      this.setListDataStart();
      this.getTableselectFields();
    },
src/components/navMenu.vue
@@ -227,10 +227,12 @@
        if (item.url == "Thematic") {
          this.signInsertOpLog("综合展示", item.cnName)
        }
        this.changeSelectStyle = index;
        sessionStorage.setItem('changeSelectStyle', index)
      } else {
        if (this.showFlag != index) {
          this.showFlag = index;
        } else {
          this.showFlag = null;
        }
@@ -240,9 +242,8 @@
        sessionStorage.removeItem('changeliSelect')
        this.$set(this, 'changeliSelect', null)
      }
      sessionStorage.setItem('changeSelectStyle', index)
      this.changeSelectStyle = index;
    },
    closeAllChildren() {
      var val = this.listMenu
@@ -264,6 +265,9 @@
      }
    },
    setLiClick(res, index) {
      this.changeSelectStyle = index;
      sessionStorage.setItem('changeSelectStyle', index)
      sessionStorage.removeItem('hanleselectmochaitmo')
      sessionStorage.removeItem('hanleselectindex')
src/views/datamanage/SpatialData.vue
@@ -277,7 +277,7 @@
            <el-table
              :data="tableAttach"
              ref="filterTable"
              height="100%"
              height="calc(100% - 100px)"
              border
              style="width: 100%"
              @selection-change="handleAttatchChange"
@@ -642,6 +642,7 @@
            this.formInline = {
              file: "",
            };
            this.getAttacthFlieList();
          },
          error: (e) => {
@@ -653,6 +654,7 @@
    },
    async getAttacthFlieList() {
      var obj = this.upAttach;
      const res = await dataQuery_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error("列表调用失败");
@@ -790,6 +792,7 @@
      var data1 = fileds.result;
      var data2 = domains.result;
      var std = [];
      this.filedsOption = [];
      for (var i in data1) {
        if (data1[i].type != 'geometry' && data1[i].type) {
src/views/datamanage/dataUpdata.vue
@@ -2859,7 +2859,7 @@
        this.$message.error("目录列表获取失败");
        return;
      }
      debugger
      this.catalogOption = this.treeData(res.result);
      this.formInline.dirName = this.catalogOption[0].name;
      this.formInline.dirid = this.catalogOption[0].id;
src/views/datamanage/styleManage.vue
@@ -5,7 +5,10 @@
        `${$t('dataManage.styleManage')}`,
      ]"></My-bread>
    <el-divider/>
    <div class="searchComp subpage_Div" ref="container">
    <div
      class="searchComp subpage_Div"
      ref="container"
    >
      <el-form
          ref="ruleForm"
          :model="ruleForm"
@@ -24,7 +27,12 @@
                  v-model="ruleForm.name"
                  :placeholder="$t('shuJuGuanLi.lable1')"
                  style="width:200px"
              ><i slot="suffix" class="el-icon-search"  @click="submitForm('ruleForm')" style="padding-right: 8px"></i></el-input>
              ><i
                  slot="suffix"
                  class="el-icon-search"
                  @click="submitForm('ruleForm')"
                  style="padding-right: 8px"
                ></i></el-input>
            </el-form-item>
          </div>
          <div>
@@ -63,11 +71,13 @@
          </div>
        </div>
      </el-form>
    </div>
    <div class="dividing-line"></div>
    <div class="table_box" :style="styleVar">
    <div
      class="table_box"
      :style="styleVar"
    >
      <el-table
          :data="tableData"
          style="width: 100%"
@@ -154,6 +164,13 @@
                size="small"
            >{{ $t('common.update') }}
            </el-button>
            <el-button
              @click="handleDownload(scope.$index, scope.row)"
              type="success"
              plain
              size="small"
            >{{ $t('common.download') }}
            </el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -174,10 +191,11 @@
      </div>
    </div>
    <div class="infoBox_box" v-show="showinfoBox">
      <div
          class="infoBox subpage_Div box_div"
      class="infoBox_box"
      v-show="showinfoBox"
      >
      <div class="infoBox subpage_Div box_div">
        <div
            slot="header"
@@ -283,7 +301,10 @@
        :visible.sync="dialogFormVisible"
    >
      <div style="height: 500px; overflow: auto">
        <el-form :model="upform" label-position="top">
        <el-form
          :model="upform"
          label-position="top"
        >
          <el-form-item
              :label="$t('dataManage.styleObj.name')"
              :label-width="formLabelWidth"
@@ -582,12 +603,14 @@
    </el-dialog>
    <el-dialog
        :title="$t('dataManage.styleObj.addStyleData')"
        :visible.sync="InsertFormdialog"
        :before-close="handleClose"
    >
      <div style="height: 500px; overflow: auto">
        <el-form :model="insertform" label-position="top">
        <el-form
          :model="insertform"
          label-position="top"
        >
          <el-form-item
              :label="$t('dataManage.styleObj.name')"
              :label-width="formLabelWidth"
@@ -932,6 +955,11 @@
        </el-button>
      </div>
    </div>
    <iframe
      id="downFrame"
      src=""
      style="display: none; border: 0; padding: 0; height: 0; width: 0"
    ></iframe>
  </div>
</template>
@@ -1558,6 +1586,14 @@
      this.itemdetail = {};
    },
    handleDownload(index, row) {
      var token = getToken()
      var url = BASE_URL + "/res/download?token=" + token + "&guid=" + row.fileGuid;
      $("#downFrame").attr("src", url).click();
    },
    handleEdit(index, row) {
      this.upflag = true;
      this.dialogFormVisible = true;