管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-18 cbbbc6bd2d854270b9342ce2ff2a3432aaca22cf
src/views/datamanage/projectManage.vue
@@ -21,6 +21,12 @@
      </div>
      <div class="verSion_rightContent subpage_Div">
        <el-form
          style="    height: 44px;
    padding: 1%;
    display: flex;
    flex-direction: row-reverse;
    border-radius: 5px;
    border: 1px solid #dcdfe6;"
          :inline="true"
          class="demo-form-inline"
        >
@@ -35,12 +41,12 @@
            >{{ $t('common.append') }}</el-button>
          </el-form-item>
        </el-form>
        <el-divider class="eldivider" />
        <div style="height: 80%; padding: 1%; overflow: auto">
        <!-- <el-divider class="eldivider" /> -->
        <div style="height: 80%; margin-top: 10px;">
          <el-table
            ref="filterTable"
            :data="dbTableData"
            height="90%"
            height="100%"
            border
            style="width: 100%"
          >
@@ -124,9 +130,9 @@
            style="margin-top: 10px"
            class="pagination_box"
          >
          </div>
        </div>
      </div>
    </div>
@@ -143,7 +149,7 @@
        width="60%"
        :title="$t('dataManage.projectObj.location')"
        :visible.sync="innerVisible"
        append-to-body
        :modal="false"
        :before-close="innerClose"
      >
        <div style="height: 540px">
@@ -320,9 +326,9 @@
            this.editFrom.country = val;
          } else if (key == "省") {
            this.editFrom.province = val;
          }else if (key == "市") {
          } else if (key == "市") {
            this.editFrom.location = val;
          }
          }
        }
      }
      this.editFrom.geom = this.$store.state.projeOl;
@@ -355,12 +361,30 @@
    //删除项目
    async deleteProject(row) {
      const data = await project_delete({ gid: row.gid });
      if (data.code != 200) {
        this.$message.error('项目删除失败');
        return;
      }
      this.getSelectProject();
      this.$confirm('此操作将永久删除该项目, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await project_delete({ gid: row.gid });
        if (data.code == 200) {
          this.$message({
            message: "删除成功!",
            type: "success",
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: "删除失败!",
            type: "warning",
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    //修改项目
    EditProject(row) {
@@ -381,7 +405,8 @@
    //目录树点击事件
    handleNodeClick(data) {
      //获取目录ID
      this.dirId = data.id;
      // this.dirId = data.id;
      this.dirId = data.code
      this.getSelectProject();
    },
@@ -393,7 +418,7 @@
        this.$message.error('列表获取失败');
        return;
      }
      // this.count = data.result;
      this.count1 = data.count;
      this.dbTableData = data.result;
@@ -441,16 +466,16 @@
    .verSion_leftTree {
      width: 15%;
      height: 91%;
      border-radius: 5px;
      padding: 1%;
      max-height: 670px;
      overflow-y: auto;
    }
    .verSion_rightContent {
      width: 80%;
      height: 91%;
      max-height: 670px;
      border-radius: 5px;
      padding: 1%;
      overflow-y: auto;
@@ -459,7 +484,7 @@
      height: 46px;
      padding: 12px 12px;
      font-size: 14px;
      border-bottom: 1px solid white;
      line-height: 46px;
    }
@@ -477,12 +502,6 @@
      width: 600px;
    }
  }
}
</style>
 >