管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2022-12-21 ec3342e1b34dd02f33dae9bed2db16a14ae8096d
src/views/Archive/index.vue
@@ -8,18 +8,18 @@
      </div>
      <div class="top_right">
        <el-form :inline="true" :model="formInline" class="demo-form-inline">
          <!-- <el-form-item>
          <el-form-item>
            <el-input
              v-model="formInline.user"
              suffix-icon="el-icon-search"
              :placeholder="$t('common.pleaseInput')"
            ></el-input>
          </el-form-item> -->
          <!-- <el-form-item>
          </el-form-item>
          <el-form-item>
            <el-button icon="el-icon-search" class="primaries">{{
              $t('common.iquery')
            }}</el-button>
          </el-form-item> -->
          </el-form-item>
          <el-form-item>
            <el-button @click="getSpaceMapVisibale" class="primaries">{{
              $t('synthesis.rangequery')
@@ -225,7 +225,7 @@
          </el-table>
      </div>
    </div>
    <div class="panerPage">
    <div class="panerPage" v-show="!isMenuActive">
      <div class="pagination_box">
        <el-pagination
          @size-change="handleSizeChange"
@@ -590,6 +590,10 @@
          { validator: repasswordValidator, trigger: 'blur' },
        ],
      },
      upAttach:{
        tabName:null,
        eventid:null,
      }
    };
  },
  computed: {
@@ -644,12 +648,26 @@
      this.showMapVisible =true;
      this.$store.state.mapMenuBoolean = true;
      this.$store.state.mapMenuBoxFlag = '1';
       this.$store.state.mapPopBoolean = false;
        this.$store.state.mapPopBoxFlag = null;
      this.$store.state.download = true;
    },
    handleMapClose(){
   this.dialogMapVisible =false;
   this.$confirm('确认关闭?')
        .then((_) => {
          this.closeMapDown();
        })
        .catch((_) => {});
    },
    closeMapDown(){
      this.dialogMapVisible =false;
      this.showMapVisible =false;
      this.$store.state.mapMenuBoolean = false;
      this.$store.state.mapMenuBoxFlag = null;
      this.$store.state.download = false;
       this.$store.state.mapPopBoolean = false;
        this.$store.state.mapPopBoxFlag = null;
    },
    moreEvent(res) {
      switch (res) {
@@ -755,7 +773,6 @@
      for (var i in this.multipleSelection1) {
        std.push(this.multipleSelection1[i].id)
      }
      debugger
      var obj = {
        pwd: encrypt.encrypt(this.codeForm.repassword),
        ids: std
@@ -771,9 +788,8 @@
        guid: res.result,
        pwd: encodeURIComponent(encrypt.encrypt(this.codeForm.repassword))
      }
      debugger
      const data = await dataLib_selectDownloadFile(downObj)
      const data = await dataLib_selectDownloadFile(downObj)
      if (data.code != 200) {
        this.$message.error('下载请求失败');
        return
@@ -856,6 +872,7 @@
      this.listTypeData.pageIndex = 1;
      this.listTypeData.pageSize = 10;
      this.dialogtitle = res.tabDesc + '(' + res.tab + ')';
      this.upAttach.tabName= res.ns+"."+res.tab;
      this.filedsLayer = this.getCollapseDomFiled();
      this.getCollapseTable(this.filedsLayer);
@@ -877,7 +894,12 @@
      this.itemdetail = std;
      this.innerVisible = true;
    },
    getAttachTable() {
    getAttachTable(index, row) {
      if(row.eventid != null){
        this.upAttach.eventid = row.eventid;
      }else{
        this.upAttach.eventid ="";
      }
      this.outerVisible = true;
      this.getAttacthFlieList();
    },
@@ -905,7 +927,7 @@
        formData.append('file', fs.files[i]); // fs.files[i].name,file
      }
      $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName=lf.sys_style&eventid=fa25979a5ef8b43ba82a0be35b3fb0d4", {
      $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName="+this.upAttach.tabName+"&eventid="+this.upAttach.eventid, {
        type: "post",
        data: formData,
        async: true,
@@ -918,13 +940,16 @@
            type: 'success'
          });
          document.getElementById("insertFile").value = "";
          this.formInline = {
          this.fromfile = {
            file: '',
          }
          this.getAttacthFlieList();
        },
        error: (e) => {
          document.getElementById("insertFile").value = "";
            this.fromfile = {
            file: '',
          }
          this.$message.error('附件添加失败');
        }
      });
@@ -932,10 +957,7 @@
   async getAttacthFlieList(){
  var obj = {
        tabName: 'lf.sys_style',
        eventid: 'fa25979a5ef8b43ba82a0be35b3fb0d4'
      }
  var obj =this.upAttach;
      const res = await dataLib_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error('列表调用失败');
@@ -967,9 +989,9 @@
        this.attributeData = val;
      });
      if (this.ruleForm.name != null) {
        this.listData.filter = 'name like ' + this.ruleForm.name;
        this.listTypeData.filter = 'name like ' + this.ruleForm.name;
      } else {
        this.listData.filter = null;
        this.listTypeData.filter = null;
      }
      const data = await dataLib_selectByPage(this.listTypeData);
@@ -977,8 +999,10 @@
        this.$message.error('调用列表失败,请联系工作人员!');
        return;
      }
      var res_val = this.attributeData;
      this.count1 = data.count;
      for (var i in data.result) {
        let val_Data = data.result[i];
@@ -1012,9 +1036,11 @@
        this.$message.error('列表调用失败');
        return;
      }
      const domains = await dataLib_selectDomains({
        name: this.listTypeData.name,
      });
      if (domains.code != 200) {
        this.$message.error('列表调用失败');
        return;
@@ -1032,7 +1058,15 @@
      }
      return std;
    },
  //值域字段匹配
    getDomainNaFild(res, result) {
      for (var i in result) {
        if (result[i].domName == res) {
          return result[i].codeDesc;
        }
      }
      return null;
    },
    handleSizeChange(res) {
                   this.listData.pageIndex = 1;
      this.listData.pageSize = res;