管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2022-12-20 c960e2add5751edbe728dd5d297079b36544d11a
src/views/Archive/index.vue
@@ -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,28 @@
      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 +775,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 +790,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 +874,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 +896,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 +929,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 +942,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 +959,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 +991,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 +1001,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 +1038,11 @@
        this.$message.error('列表调用失败');
        return;
      }
      const domains = await dataLib_selectDomains({
        name: this.listTypeData.name,
      });
      if (domains.code != 200) {
        this.$message.error('列表调用失败');
        return;
@@ -1032,7 +1060,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;