xiangpei
2024-12-06 b0d5edcb0445d654154ba3baf8110886b8543d61
src/views/projectProcess/detail/index.vue
@@ -1,5 +1,6 @@
<template>
  <div class="app-container" v-loading.fullscreen.lock="loading">
  <div class="app-container">
    <div v-loading="loading">
    <div class="top">
      <div class="project-title">
        <h2>项目名称:{{detailData.projectName}}</h2>
@@ -31,7 +32,7 @@
          <el-input v-model="queryParams.taskName" placeholder="任务名称"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="getList">查询</el-button>
            <el-button type="primary" @click="search">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
@@ -89,15 +90,15 @@
    </div>
    <div class="table" style="margin-top: 15px">
      <el-pagination
        v-if="total > queryParams.pageSize"
        @size-change="getList"
        @current-change="getList"
          @size-change="sizeChange"
          @current-change="pageChange"
        :current-page.sync="queryParams.currentPage"
        :page-sizes="[5, 10, 20]"
        :page-size="100"
        layout="sizes, prev, pager, next"
        :total="total">
      </el-pagination>
      </div>
    </div>
  </div>
</template>
@@ -142,7 +143,8 @@
        if (row.handlerType === "USER") {
          return this.$store.state.user.id === row.handlerId
        } else if (row.handlerType === "DEPT") {
          return this.$store.state.user.id === row.handlerId
          // return this.$store.state.user.id === row.handlerId
          return this.$store.state.user.name === '市发展改革委' || this.$store.state.user.name === '市住建局'
        } else if (row.handlerType === "ROLE") {
          return this.$auth.hasRole(row.handlerUnitName)
        }
@@ -192,6 +194,18 @@
          taskId: row.taskId
        }})
    },
    search() {
      this.queryParams.currentPage = 1;
      this.getList()
    },
    sizeChange(pageSize) {
      this.queryParams.pageSize = pageSize;
      this.getList()
    },
    pageChange(pageNum) {
      this.queryParams.currentPage = pageNum;
      this.getList()
    },
    getList() {
      // 获取任务列表
      getProjectProcessDetailTaskList(this.queryParams).then(res => {