管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2022-12-20 c960e2add5751edbe728dd5d297079b36544d11a
src/views/datamanage/SpatialData.vue
@@ -48,13 +48,14 @@
          </el-form-item>
        </el-form>
        <el-divider class="eldivider" />
        <div style="height: 85%">
        <div style="height=500px">
          <el-table
            ref="filterTable"
            :data="tableData"
            height="90%"
            height="500px"
            border
            style="width: 100%"
            @selection-change="handleSelectionChange"
          >
            <el-table-column type="selection" width="55" />
@@ -75,7 +76,7 @@
                  >{{$t('common.details')}}</el-link
                >
                <el-link class="elLink"
                  @click="getAttachTable"
                  @click="getAttachTable(scope.$index, scope.row)"
                  style="margin-left: 20px;  "
                  >{{$t('common.enclosure')}}</el-link
                >
@@ -256,7 +257,6 @@
      showinfoBox: false,
      itemdetail: {},
      tableData: [],
      attributeData: [],
      currentPage: 1,
      searchName: '',
@@ -272,6 +272,10 @@
      },
      getClickTable: null,
      attacgSelection: [],
      upAttach:{
        tabName:null,
        eventid:null,
      }
    };
  },
  created() {
@@ -305,7 +309,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,
@@ -330,10 +334,7 @@
      });
    },
    async getAttacthFlieList() {
      var obj = {
        tabName: 'lf.sys_style',
        eventid: 'fa25979a5ef8b43ba82a0be35b3fb0d4'
      }
      var obj =this.upAttach
      const res = await dataQuery_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error('列表调用失败');
@@ -343,7 +344,12 @@
    },
    getAttachTable() {
    getAttachTable(index, row) {
      if(row.eventid != null){
        this.upAttach.eventid = row.eventid;
      }else{
         this.upAttach.eventid = '';
      }
      this.getAttacthFlieList();
      this.dialogFormVisible = true;
    },
@@ -393,6 +399,10 @@
      if (data.children != null) return;
      this.listData.name = data.entity; //要查询表格类型;
      this.getClickTable = data;
      this.listData.pageIndex =1;
      this.listData.pageSize=10;
      this.count = 0;
this.upAttach.tabName= data.ns+"."+data.tab;
      this.filedsLayer = this.getCollapseDomFiled(); //获取每个表字段名称及阈值
      //获取table信息
@@ -425,7 +435,9 @@
          }
        }
      }
      this.tableData = data.result;
      this.$refs.filterTable.doLayout();
    },
    //获取每个表字段名称及阈值
    async getCollapseDomFiled() {
@@ -515,13 +527,13 @@
    },
    //分页点击事件
    handleSizeChange(val) {
      this.listdata.pageSize = val;
      this.listdata.pageIndex = 1;
      this.listData.pageSize = val;
      this.listData.pageIndex = 1;
      //获取table信息
      this.getCollapseTable(this.filedsLayer);
    },
    handleCurrentChange(val) {
      this.listdata.pageIndex = val;
      this.listData.pageIndex = val;
      //获取table信息
      this.getCollapseTable(this.filedsLayer);
    },