管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-27 f79ebb7dc06cf94667d512af41c2cc61f99c2493
src/views/datamanage/SpatialData.vue
@@ -11,6 +11,7 @@
        style="border: 1px solid #dcdfe6;"
      >
        <el-input
          size="small"
          v-model="filterText"
          style="width:220px;"
          :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')"
@@ -41,28 +42,31 @@
              <!-- type="textarea" disabled-->
              <el-input
                v-model="ruleForm.fileName"
                class="nm-skin-pretty"
                show-word-limit
                :rows="2"
                resize='none'
                style="width: 220px;"
                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')"
                suffix-icon="el-icon-edit"
              ><el-select v-model="select" slot="prepend" placeholder="请选择">
                <el-option label="餐厅名" value="1"></el-option>
                <el-option label="订单号" value="2"></el-option>
                <el-option label="用户电话" value="3"></el-option>
              </el-select></el-input>
            </el-form-item>
            <el-form-item style="float: right">
              <el-button
                @click="getSpaceMapVisibale"
                size="small"
                type="primary"
              >{{
              $t('synthesis.rangequery')
            }}</el-button>
                :rows="2"
                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"
@@ -70,9 +74,19 @@
                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 style="float: right">
              <el-button
                  v-if="btnStatus.insert"
                  @click="conditionVisible = true"
@@ -80,14 +94,17 @@
                  icon="el-icon-plus"
                  type="success"
              >{{$t('common.append')}}</el-button>
            </el-form-item>
            </el-form-item>-->
            <el-form-item style="float: right">
              <el-button
                @click="submitForm"
                type="primary"
                @click="getSpaceMapVisibale"
                size="small"
                type="primary"
                icon="el-icon-search"
              >{{$t('common.iquery')}}</el-button>
              >{{
                  $t('synthesis.rangequery')
                }}</el-button>
            </el-form-item>
          </el-form>
@@ -95,7 +112,7 @@
        <div class="dividing-line"></div>
        <div
          class="table_box"
          style="height:calc(100% - 89px)"
          style="height:calc(100% - 130px)"
        >
          <!--          border-->
          <!--          ref="filterTable"-->
@@ -104,21 +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="55"
              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"
              v-for="(item, index) in attributeData"
              :key="index"
              :label="item.alias"
@@ -146,19 +166,25 @@
              </template>
            </el-table-column>
          </el-table>
          <div class="pagination_box">
            <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>
@@ -198,7 +224,6 @@
    </div>
    <el-dialog
      :title="$t('common.attachinform')"
      top="2vh"
      :visible.sync="dialogFormVisible"
    >
      <div style="height: 500px; overflow: auto">
@@ -724,6 +749,7 @@
        this.$message.error("调用列表失败,请联系工作人员!");
        return;
      }
      this.tableData = []
      var res_val = this.attributeData;
      this.count = data.count;
      for (var i in data.result) {
@@ -737,7 +763,10 @@
      }
      this.tableData = data.result;
      this.$refs.filterTable.doLayout();
      this.$nextTick(() => {
        this.$refs.refTableData.doLayout();
      });
    },
    //获取每个表字段名称及阈值
    async getCollapseDomFiled() {
@@ -763,7 +792,7 @@
      var std = [];
      for (var i in data1) {
        if (data1[i].type != 'geometry' && data1[i].type) {
          debugger
          this.filedsOption.push(data1[i]);
        }
        if (data1[i].showtype == 1) {
@@ -864,6 +893,7 @@
        this.formSql.field + " " + this.formSql.condition + " " + val;
      this.startFiledAndcondition();
      this.submitForm();
    },
    //值域字段匹配
@@ -1147,7 +1177,7 @@
.Spatialbox {
  height: 98%;
  width: 98%;
  padding: 1%;
  padding: 0.5%;
  .spatialContent {
    width: 100%;
    height: calc(100% - 75px);