管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-28 c09567a745a8af2096de61c1d894891bcd2dea18
src/views/datamanage/SpatialData.vue
@@ -10,7 +10,8 @@
        class="spatial_leftTree subpage_Div "
        style="border: 1px solid #dcdfe6;"
      >
        <el-input size="small"
        <el-input
          size="small"
          v-model="filterText"
          style="width:220px;"
          :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')"
@@ -37,40 +38,55 @@
            :inline="true"
          >
            <el-form-item size="small">
            <el-form-item>
              <!-- type="textarea" disabled-->
              <el-input
                v-model="ruleForm.fileName"
                class="nm-skin-pretty"
                show-word-limit
                size="small"
                :rows="2"
                resize='none'
                style="width: 220px;"
                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')"
                :disabled="true"
              ><i slot="suffix" class="el-icon-edit"  @click="conditionVisible = true" style="padding-right: 8px"></i></el-input>
                style="width: 300px;"
                disabled
                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.label')"
              >
                <!-- <i
                  slot="suffix"
                  class="el-icon-search"
                  @click="submitForm"
                  style="padding-right: 8px"
                ></i> -->
              </el-input>
            </el-form-item>
            <el-form-item>
              <el-button
                @click="conditionVisible = true"
                size="small"
                type="success"
                icon="el-icon-plus"
              >{{$t('common.append')}}</el-button>
            </el-form-item>
            <el-form-item style="float: right">
              <el-button
                  @click="resetForm"
                  type="info"
                  size="small"
                  icon="el-icon-refresh"
                @click="resetForm"
                type="info"
                size="small"
                icon="el-icon-refresh"
              >{{$t('common.reset')}}</el-button>
            </el-form-item>
            <el-form-item style="float: right">
            <!--            <el-form-item style="float: right">
              <el-button
                  @click="submitForm"
                  type="primary"
                  size="small"
                  icon="el-icon-search"
              >{{$t('shuJuGuanLi.lable6')}}</el-button>
            </el-form-item>
            </el-form-item>-->
            <!--         去掉   -->
<!--            <el-form-item style="float: right">
            <!--            <el-form-item style="float: right">
              <el-button
                  v-if="btnStatus.insert"
                  @click="conditionVisible = true"
@@ -82,10 +98,10 @@
            <el-form-item style="float: right">
              <el-button
                  @click="getSpaceMapVisibale"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
                @click="getSpaceMapVisibale"
                size="small"
                type="primary"
                icon="el-icon-search"
              >{{
                  $t('synthesis.rangequery')
                }}</el-button>
@@ -96,7 +112,7 @@
        <div class="dividing-line"></div>
        <div
          class="table_box"
          style="height:calc(100% - 60px)"
          style="height:calc(100% - 130px)"
        >
          <!--          border-->
          <!--          ref="filterTable"-->
@@ -105,22 +121,24 @@
          <!--          height="calc(100% - 57px)"-->
          <!--          :header-cell-style="{background:'#e6eaee',color:'#181818', 'text-align': 'center'}  "-->
          <el-table
            ref="refTableData"
            :data="tableData"
            style="width: 100%"
            height="calc(100% - 57px)"
            style="width: 100% ;"
            height="100% "
          >
            <el-table-column
              type="selection"
              width="20"
              align="center"
            />
<!--            <el-table-column
            <!--            <el-table-column
              width="60"
              align="center"
              type="index"
              :label="$t('common.index')"
            />-->
            <el-table-column
                min-width="135"
              min-width="135"
              v-for="(item, index) in attributeData"
              :key="index"
              :label="item.alias"
@@ -148,19 +166,25 @@
              </template>
            </el-table-column>
          </el-table>
          <div class="pagination_box" style="margin-top: 15px">
            <el-pagination
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="listData.pageIndex"
              :page-sizes="[10, 20, 50, 100]"
              :page-size="listData.pageSize"
              layout="total, sizes, prev, pager, next, jumper"
              :total="count"
            >
            </el-pagination>
          </div>
        </div>
        <div
          class="pagination_box"
          style="margin-top: 15px"
        >
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="listData.pageIndex"
            :page-sizes="[10, 20, 50, 100]"
            :page-size="listData.pageSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="count"
          >
          </el-pagination>
        </div>
      </div>
    </div>
@@ -253,7 +277,7 @@
            <el-table
              :data="tableAttach"
              ref="filterTable"
              height="100%"
              height="calc(100% - 100px)"
              border
              style="width: 100%"
              @selection-change="handleAttatchChange"
@@ -598,7 +622,7 @@
        BASE_URL +
        "/dataQuery/uploadFiles?token=" +
        token +
        "&tabName= " +
        "&tabName=" +
        this.upAttach.tabName +
        "&eventid=" +
        this.upAttach.eventid,
@@ -618,6 +642,7 @@
            this.formInline = {
              file: "",
            };
            this.getAttacthFlieList();
          },
          error: (e) => {
@@ -629,6 +654,7 @@
    },
    async getAttacthFlieList() {
      var obj = this.upAttach;
      const res = await dataQuery_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error("列表调用失败");
@@ -725,6 +751,7 @@
        this.$message.error("调用列表失败,请联系工作人员!");
        return;
      }
      this.tableData = []
      var res_val = this.attributeData;
      this.count = data.count;
      for (var i in data.result) {
@@ -738,7 +765,10 @@
      }
      this.tableData = data.result;
      this.$refs.filterTable.doLayout();
      this.$nextTick(() => {
        this.$refs.refTableData.doLayout();
      });
    },
    //获取每个表字段名称及阈值
    async getCollapseDomFiled() {
@@ -762,9 +792,10 @@
      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) {
          debugger
          this.filedsOption.push(data1[i]);
        }
        if (data1[i].showtype == 1) {
@@ -865,6 +896,7 @@
        this.formSql.field + " " + this.formSql.condition + " " + val;
      this.startFiledAndcondition();
      this.submitForm();
    },
    //值域字段匹配