管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-09 731d894cf232d98b547df2bd006795de74fb16a7
src/views/datamanage/SpatialData.vue
@@ -5,8 +5,8 @@
        `${$t('dataManage.dataRetrieval')}`,
      ]"></My-bread>
    <el-divider />
    <div class="spatialContent">
      <div class="spatial_leftTree">
    <div class="spatialContent ">
      <div class="spatial_leftTree subpage_Div">
        <el-input v-model="filterText"></el-input>
        <div style="width:300px">
@@ -22,7 +22,7 @@
          ></el-tree>
        </div>
      </div>
      <div class="spatial_rightContent">
      <div class="spatial_rightContent subpage_Div">
        <el-form
          ref="ruleForm"
          :model="ruleForm"
@@ -42,7 +42,8 @@
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button v-if="btnStatus.insert"
            <el-button
              v-if="btnStatus.insert"
              @click="conditionVisible = true"
              size="small"
              icon="el-icon-plus"
@@ -139,7 +140,7 @@
      </div>
    </div>
    <div
      class="infoBox"
      class="infoBox box_div"
      v-show="showinfoBox"
    >
@@ -194,7 +195,7 @@
            style="display: none"
            @change="insertFile( )"
          />
          <el-link
          <el-link
            @click="getInsertFile( )"
            :underline="false"
          ><i class="el-icon-folder-opened"></i></el-link>
@@ -202,14 +203,16 @@
        <el-form-item>
          <el-row>
            <el-col :span="3">
              <el-link v-if="btnStatus.insert"
              <el-link
                v-if="btnStatus.insert"
                class="elLink"
                :underline="false"
                @click="setAttachInsert"
              >{{$t('common.append')}}</i></el-link>
            </el-col>
            <el-col :span="3">
              <el-link v-if="btnStatus.delete"
              <el-link
                v-if="btnStatus.delete"
                class="elLink"
                :underline="false"
                @click="setAttachDel"
@@ -222,7 +225,7 @@
          <el-table
            :data="tableAttach"
            ref="filterTable"
            height="99%"
            height="100%"
            border
            style="width: 100%"
            @selection-change="handleAttatchChange"
@@ -248,7 +251,7 @@
          </el-table>
        </el-form-item>
        <el-form-item>
        <!-- <el-form-item>
          <el-row :gutter="20">
            <el-col
@@ -256,7 +259,7 @@
              :offset="8"
            >
              <el-button
                class="primary"
                type="primary"
                size="small"
                @click="dialogFormVisible = false"
              >确认</el-button>
@@ -267,14 +270,13 @@
              >取消</el-button>
            </el-col>
          </el-row>
        </el-form-item>
        </el-form-item> -->
      </el-form>
    </el-dialog>
    <el-dialog
      width="37%"
      :visible.sync="conditionVisible"
      append-to-body
      title="查询条件"
      :before-close="handleconditionClose"
    >
@@ -287,6 +289,7 @@
          <el-select
            @change="fieldChange($event)"
            v-model="formSql.field"
            :popper-append-to-body="false"
          >
            <el-option
              v-for="item in filedsOption"
@@ -298,7 +301,10 @@
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-select v-model="formSql.condition">
          <el-select
            :popper-append-to-body="false"
            v-model="formSql.condition"
          >
            <el-option
              v-for="item in condOption"
              :key="item.value"
@@ -340,6 +346,7 @@
      :title=" $t('synthesis.rangequery')"
      :visible.sync="dialogMapVisible"
      width="90%"
      top="10vh"
      :before-close="handleMapClose"
    >
      <div style="height:700px">
@@ -389,6 +396,7 @@
          tabDesc: '基础数据',
          label: '基础数据',
          value: 'BD',
          ns: 'bd',
          id: 1,
          children: [],
        },
@@ -397,6 +405,14 @@
          tabDesc: '业务数据',
          label: '业务数据',
          value: 'BS',
          ns: 'bs',
          children: [],
        }, {
          id: 3,
          tabDesc: '元数据',
          label: '元数据',
          value: 'MD',
          ns: 'md',
          children: [],
        },
      ],
@@ -605,12 +621,17 @@
        // 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') {
          this.tree[0].children.push(val_Data);
        } else {
          this.tree[1].children.push(val_Data);
        for (var j in this.tree) {
          if (this.tree[j].ns == option[i].ns) {
            this.tree[j].children.push(val_Data);
          }
        }
        // if (option[i].ns == 'bd') {
        //   this.tree[0].children.push(val_Data);
        // } else {
        //   this.tree[1].children.push(val_Data);
        // }
      }
      this.handleNodeClick(this.tree[0].children[0])
    },
@@ -773,7 +794,6 @@
      var val;
      if (this.formSql.type == "long" || this.formSql.type == "integer") {
        val = parseInt(this.formSql.value);
      } else if (this.formSql.type == 'double') {
@@ -1094,7 +1114,7 @@
    .spatial_leftTree {
      width: calc(15% - 0px);
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      overflow: auto;
@@ -1102,202 +1122,11 @@
    .spatial_rightContent {
      width: 80%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      overflow-y: auto;
    }
  }
  .primary {
    background: #409eff;
    border: #409eff;
    color: white;
  }
  .eldivider {
    margin-top: 0px;
  }
  /deep/.el-form-item__label {
    color: white;
  }
  // 设置输入框的背景色、字体颜色、边框属性设置;
  /deep/.el-input__inner {
    background-color: transparent !important ;
    color: #fff;
    border: 1px solid;
  }
  /*修改table 表体的背景颜色和文字颜色*/
  /deep/ .el-table {
    background-color: transparent;
    th,
    td {
      background-color: transparent;
    }
    .el-table__expanded-cell {
      background-color: transparent !important;
    }
    // 表头背景色
    th.el-table__cell {
      background-color: #303030;
      color: #fff;
    }
    tr > td {
      background-color: #303030;
      color: #fff;
    }
    // hover效果
    tr:hover > td {
      background-color: rgba(255, 255, 255, 0.3) !important;
    }
    tbody tr:hover {
      background-color: rgba(255, 255, 255, 0.3) !important;
      // text-align: center;
    }
    // 滚动条宽高
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      height: 10px;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      /*滚动条宽度*/
      height: 10px;
      /*滚动条高度*/
    }
    /*定义滚动条轨道 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-track {
      box-shadow: 0px 1px 3px #216fe6 inset;
      /*滚动条的背景区域的内阴影*/
      border-radius: 10px;
    }
    /*定义滑块 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-thumb {
      box-shadow: 0px 1px 3px #216fe6 inset;
      border-radius: 6px;
      background-color: #216fe6;
    }
  }
  .infoBox {
    width: 500px;
    position: absolute;
    z-index: 100;
    top: 15%;
    right: 15%;
    background-color: #303030;
    color: white;
    border: 1px solid gray;
    height: 600px;
    padding: 10px;
    overflow: auto;
    border-radius: 5px;
    .el-card {
      background-color: transparent;
      color: white;
      span {
        font-size: 16px;
        font-weight: 600;
        color: white;
      }
    }
    .contentBox {
      margin: 0 aotu 10px;
      p {
        color: white;
        font-size: 14px;
      }
    }
  }
  .pagination_box {
    margin-top: 20px;
    /deep/.el-input__inner {
      background-color: transparent !important;
      border: 1px solid;
      color: white;
    }
    /deep/.el-pagination__total {
      color: white;
    }
    /deep/.el-pagination__jump {
      color: white;
    }
    /deep/.el-pager li.active {
      color: #409eff;
    }
    /deep/.el-pager li {
      color: white;
      background: transparent;
    }
    /deep/.el-pager li {
      color: white;
    }
    /deep/.btn-prev {
      background: transparent;
    }
    /deep/.btn-next {
      background: transparent;
    }
    /deep/.btn-next i {
      color: white;
    }
    /deep/.btn-prev i {
      color: white;
    }
  }
  .elLink {
    color: white !important;
  }
  .el-icon-folder-opened {
    color: white;
  }
  /deep/ .el-select .el-input__inner {
    border-color: #fff !important;
  }
  /deep/ .el-dialog {
    background: #303030;
  }
  /deep/.el-range-editor.is-active,
  .el-range-editor.is-active:hover,
  .el-select .el-input.is-focus .el-input__inner {
    border: 1px solid;
  }
  /deep/.el-dialog__title {
    color: white;
  }
  /deep/.el-textarea__inner {
    background: transparent !important;
    border-color: #fff !important;
    color: white;
  }
}
/deep/ .el-dialog {
  background: #303030;
}
/deep/.el-range-editor.is-active,
.el-range-editor.is-active:hover,
.el-select .el-input.is-focus .el-input__inner {
  border: 1px solid;
}
/deep/.el-dialog__title {
  color: white;
}
/deep/ .el-dialog__body {
  padding: 10px;
}
/deep/.el-input__inner {
  background-color: transparent !important ;
  color: #fff;
  border: 1px solid white !important;
}
/deep/.el-dialog__wrapper {
  overflow: hidden !important;
}
</style>