xiangpei
2025-01-03 7e2445e59ae0f5aaa39b9b8c1fbdf32ed080f5c7
src/views/projectProcess/detail/index.vue
@@ -126,7 +126,7 @@
} from "@/api/projectProcess/projectProcess";
export default {
  name: "index",
  name: "Detail",
  data() {
    return {
      loading: false,
@@ -174,19 +174,21 @@
      }
    },
    finalFinishedFormatter(row) {
      if (row.taskStatus === '未开始') {
      // 不是已完成的状态没有实际处理人,已完成的状态只有一个人
      if (row.taskStatus !== '已完成') {
        return null
      } else {
        return row.handlerName
      }
      return row.handlerName.join('、')
    },
    showHandle(row) {
      console.log(this.$store.state.user, "用户信息")
      if (row.taskStatus === '待办') {
        if (row.handlerType === "USER") {
          return this.$store.state.user.id === row.handlerId
          console.log(row.handlerId.indexOf(this.$store.state.user.id) !== -1, "我是不是")
          return row.handlerId.indexOf(this.$store.state.user.id) !== -1
        } else if (row.handlerType === "DEPT") {
          console.log(this.$store.state.user.deptId, "部门id", row.handlerUnitId)
          return this.$store.state.user.deptId === row.handlerUnitId
          return row.handlerUnitId.indexOf(this.$store.state.user.deptId) !== -1
          // return this.$store.state.user.name === '市发展改革委' || this.$store.state.user.name === '市住建局'
        } else if (row.handlerType === "ROLE") {
          return this.$auth.hasRole(row.handlerUnitName)