| | |
| | | name: '', |
| | | avatar: '', |
| | | deptId: null, |
| | | childDeptIds: [], |
| | | deptName: '', |
| | | roles: [], |
| | | roleIds: [], |
| | |
| | | }, |
| | | SET_DEPT: (state, deptId) => { |
| | | state.deptId = deptId |
| | | }, |
| | | SET_CHILD_DEPT: (state, deptIds) => { |
| | | state.childDeptIds = deptIds |
| | | }, |
| | | SET_DEPT_NAME: (state, deptName) => { |
| | | state.deptName = deptName |
| | |
| | | commit('SET_ROLE_IDS', user.roles.map(role => role.roleId)) |
| | | commit('SET_NAME', user.userName) |
| | | commit('SET_DEPT', user.deptId) |
| | | commit('SET_CHILD_DEPT', res.childDeptList) |
| | | commit('SET_DEPT_NAME', user.dept ? user.dept.deptName : '') |
| | | commit('SET_AVATAR', avatar) |
| | | |
| | |
| | | |
| | | <el-col :span="6"> |
| | | <el-form-item label="项目状态" label-width="100px" prop="projectStatus" style="width: 100%"> |
| | | <el-select v-model="projectForm.projectStatus" clearable placeholder="请选择" @change="handleProjectStatusChange" style="width: 100%"> |
| | | <el-select v-model="projectForm.projectStatus" clearable placeholder="请选择" style="width: 100%"> |
| | | <el-option v-for="item in dict.type.sys_project_status" :key="item.value" :label="item.label" |
| | | :value="item.value"/> |
| | | </el-select> |
| | |
| | | showHandle(row) { |
| | | if (row.taskStatus === '待办' || row.taskStatus === '挂起') { |
| | | if (row.handlerType === "USER") { |
| | | 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 row.handlerUnitId.indexOf(this.$store.state.user.deptId) !== -1 |
| | | // return this.$store.state.user.name === '市发展改革委' || this.$store.state.user.name === '市住建局' |
| | | return row.handlerUnitId.indexOf(this.$store.state.user.deptId) !== -1 || row.handlerUnitId.some(id => this.$store.state.user.childDeptIds.indexOf(id) !== -1) |
| | | } else if (row.handlerType === "ROLE") { |
| | | return row.handlerUnitId.some(roleId => this.$store.state.user.roleIds.indexOf(roleId) !== -1) |
| | | } |