| | |
| | | <el-table-column v-if="checkPer(['admin','task:divide','task:edit','task:del'])" label="操作" width="180px" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <udOperation |
| | | v-if="userRolesLevelMin == roleLevelSuper || userRolesLevelMin == roleLevelGeneral || scope.row.projectLiableUserId == $store.state.user.user.id" |
| | | v-if="userRolesLevelMin == roleLevelSuper || userRolesLevelMin == roleLevelGeneral || scope.row.projectLiableUserIdList.indexOf($store.state.user.user.id) != -1" |
| | | :data="scope.row" |
| | | :permission="permission" |
| | | > |
| | |
| | | return item.id === this.divideForm.projectId |
| | | }) |
| | | // 判断是否是项目责任人 |
| | | if (chooseProject.length !== 1 || chooseProject[0].liableUserId !== this.$store.state.user.user.id) { |
| | | if (chooseProject.length !== 1 || chooseProject[0].liableUserIdList.indexOf(this.$store.state.user.user.id) === -1) { |
| | | // 消息提示 |
| | | this.crud.notify('您不是当前项目责任人,无法进行任务分配操作', CRUD.NOTIFICATION_TYPE.WARNING) |
| | | // 分配表单加载 |
| | |
| | | return item.id === this.form.projectId |
| | | }) |
| | | // 判断是否是项目责任人 |
| | | if (chooseProject.length === 1 && chooseProject[0].liableUserId === this.$store.state.user.user.id) { |
| | | if (chooseProject.length === 1 && chooseProject[0].liableUserIdList.indexOf(this.$store.state.user.user.id) !== -1) { |
| | | return true |
| | | } else { |
| | | // 消息提示 |