管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-01-17 93a38ac31615b1aa053a4440c59814ea72353945
src/views/datamanage/SpatialData.vue
@@ -7,15 +7,20 @@
    <el-divider />
    <div class="spatialContent">
      <div class="spatial_leftTree">
        <el-tree
          ref="treeDay"
          :data="tree"
          :props="defaultProps"
          :default-expanded-keys="[1]"
          node-key="id"
          :current-node-key="10"
          @node-click="handleNodeClick"
        ></el-tree>
        <el-input v-model="filterText"></el-input>
        <div style="width:300px">
          <el-tree
            :data="tree"
            :props="defaultProps"
            :default-expanded-keys="[1]"
            node-key="id"
            :current-node-key="10"
            @node-click="handleNodeClick"
            :filter-node-method="filterNode"
            ref="tree"
          ></el-tree>
        </div>
      </div>
      <div class="spatial_rightContent">
        <el-form
@@ -33,46 +38,50 @@
              :rows="2"
              resize='none'
              disabled
              style="width: 650px;"
              style="width: 545px;"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button
              @click="conditionVisible = true"
              class="primaries"
              size="small"
              icon="el-icon-plus"
              type="success"
            >{{$t('common.append')}}</el-button>
          </el-form-item>
          <el-form-item>
            <el-button
              @click="submitForm"
              class="primaries"
              type="primary"
              size="small"
              icon="el-icon-search"
            >{{$t('common.iquery')}}</el-button>
          </el-form-item>
          <el-form-item>
            <el-button
              @click="resetForm"
              size="small"
              icon="el-icon-refresh"
              type="info"
            >{{$t('common.reset')}}</el-button>
          </el-form-item>
          <el-form-item>
            <el-button
              @click="getSpaceMapVisibale"
              class="primaries"
              size="small"
                type="primary"
            >{{
              $t('synthesis.rangequery')
            }}</el-button>
          </el-form-item>
        </el-form>
        <el-divider class="eldivider" />
        <div style="height=500px">
        <div>
          <el-table
            ref="filterTable"
            :data="tableData"
            height="500px"
            border
            style="width: 100%"
            style="width: 100% "
            @selection-change="handleSelectionChange"
          >
            <el-table-column
@@ -245,10 +254,12 @@
            >
              <el-button
                class="primary"
                size="small"
                @click="dialogFormVisible = false"
              >确认</el-button>
              <el-button
                type="info"
                size="small"
                @click="dialogFormVisible = false"
              >取消</el-button>
            </el-col>
@@ -311,9 +322,13 @@
        slot="footer"
        class="dialog-footer"
      >
        <el-button @click="startFiledAndcondition">取 消</el-button>
        <el-button
          size="small"
          @click="startFiledAndcondition"
        >取 消</el-button>
        <el-button
          class="primaries"
          size="small"
          @click="appendQueryFilter"
        >确 定</el-button>
      </span>
@@ -443,7 +458,8 @@
      upAttach: {
        tabName: null,
        eventid: null,
      }
      },
      filterText: ''
    };
  },
@@ -453,8 +469,17 @@
    this.showPermsBtn();
    this.getTreeDataAll();
  },
  methods: {
  watch: {
    filterText(val) {
      this.$refs.tree.filter(val);
    }
  },
  methods: {
    filterNode(value, data) {
      if (!value) return true;
      return data.label.indexOf(value) !== -1;
    },
    getSpaceMapVisibale() {
      this.dialogMapVisible = true;
      this.showMapVisible = true;
@@ -496,7 +521,11 @@
      var token = getToken();
      var fs = document.getElementById("insertFile");
      if (fs.files.length == 0) {
        alert("请选择要上传的文件!");
        this.$message({
          message: '请选择要上传的文件!',
          type: 'warning'
        });
        return;
      }
      const formData = new FormData()
@@ -570,7 +599,8 @@
      for (var i in option) {
        var val_Data = option[i];
        val_Data.id = '1' + i;
        val_Data.label = val_Data.tabDesc + "(" + val_Data.tab + ")"
        // val_Data.label = val_Data.tabDesc + "(" + val_Data.tab + ")"
        val_Data.label = val_Data.tabDesc
        option[i].id = parseInt(option[i].id)
        if (option[i].ns == 'bd') {
@@ -1049,29 +1079,26 @@
<style lang="less" scoped>
//@import url(); 引入公共css类
.Spatialbox {
  height: 81%;
  width: 97%;
  position: absolute;
  height: 98%;
  width: 98%;
  box-sizing: border-box;
  padding: 1%;
  .spatialContent {
    width: 100%;
    height: 92%;
    display: flex;
    justify-content: space-between;
    .spatial_leftTree {
      width: 15%;
      height: 95%;
      width: calc(15% - 0px);
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      max-height: 670px;
      overflow: auto;
    }
    .spatial_rightContent {
      width: 80%;
      height: 95%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
@@ -1130,13 +1157,13 @@
    // 滚动条宽高
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      height: 5px;
      height: 10px;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      /*滚动条宽度*/
      height: 5px;
      height: 10px;
      /*滚动条高度*/
    }
    /*定义滚动条轨道 内阴影+圆角*/