管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-01-16 21ddc9ec1b1b76d2ce20e512328e65acaf1af2bf
src/views/datamanage/projectManage.vue
@@ -35,7 +35,7 @@
          </el-form-item>
        </el-form>
        <el-divider class="eldivider" />
        <div style="height: 82%; padding: 1%; overflow: auto">
        <div style="height: 80%; padding: 1%; overflow: auto">
          <el-table
            ref="filterTable"
            :data="dbTableData"
@@ -57,7 +57,7 @@
              :label="$t('dataManage.projectObj.projtype')"
            />
            <el-table-column
              prop="location"
              prop="geom"
              :label="$t('dataManage.projectObj.location')"
            />
            <el-table-column
@@ -114,7 +114,7 @@
            </el-table-column>
          </el-table>
          <div style="margin-top: 10px" class="pagination_box">
            <el-pagination
            <!-- <el-pagination
              @size-change="handleLoaderSizeChange"
              @current-change="handleLoaderCurrentChange"
              :current-page="listLoader.pageIndex"
@@ -123,7 +123,7 @@
              layout="total, sizes, prev, pager, next, jumper"
              :total="count1"
            >
            </el-pagination>
            </el-pagination> -->
          </div>
          <!-- <el-form
            class="projFrom"
@@ -235,7 +235,7 @@
            <el-input v-model="editFrom.projtype"></el-input>
          </el-form-item>
          <el-form-item :label="$t('dataManage.projectObj.location')">
            <el-input :disabled="true" v-model="editFrom.location"></el-input>
            <el-input :disabled="true" v-model="editFrom.geom"></el-input>
            <el-link
              @click="ShowInner"
              style="color: white; margin-left: 20px"
@@ -307,7 +307,7 @@
      showMap: false,
      count: null,
      projectFrom: {},
      editFrom: { location: ' ' },
      editFrom: { geom: ' ' },
      dirId: null,
      elProject: [],
      dirList: [], //el树数据
@@ -362,7 +362,8 @@
    innerClose() {
      this.showMap = false;
      this.innerVisible = false;
      this.editFrom.location = this.$store.state.projeOl;
      ;
      this.editFrom.geom = this.$store.state.projeOl;
    },
    async insertEditFrom() {
      if (this.behavior == '新增项目') {
@@ -386,13 +387,12 @@
      this.setRestEditFrom();
    },
    setRestEditFrom() {
      this.editFrom = { location: ' ' };
      this.editFrom = { geom: ' ' };
      this.$store.state.projeOl = null;
    },
    //删除项目
    async deleteProject(row) {
      debugger;
      const data = await project_delete({ gid: row.gid });
      if (data.code != 200) {
        this.$message.error('项目删除失败');
@@ -405,7 +405,7 @@
      this.behavior = '修改项目';
      this.outerVisible = true;
      this.editFrom = row;
      this.$store.state.projeOl = row.location;
      this.$store.state.projeOl = row.geom;
    },
    //新增项目
    insertProject() {
@@ -467,10 +467,9 @@
<style lang="less" scoped>
//@import url(); 引入公共css类
.verSionBox {
  height: 81%;
  width: 97%;
  position: absolute;
  box-sizing: border-box;
  height: 98%;
  width: 98%;
padding: 1%;
  .verSionContent {
    width: 100%;
    height: 92%;
@@ -478,16 +477,16 @@
    justify-content: space-between;
    .verSion_leftTree {
      width: 15%;
      height: 95%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      max-height: 670px;
      overflow-y: auto;
    }
    .verSion_rightContent {
      width: 80%;
      height: 95%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
@@ -604,13 +603,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;
      /*滚动条高度*/
    }
    /*定义滚动条轨道 内阴影+圆角*/