perf: 子任务允许多个负责人

This commit is contained in:
kuaifan 2023-03-09 03:27:19 +08:00
parent 032b02c1ec
commit dc9a7c07e8
3 changed files with 7 additions and 4 deletions

View File

@ -674,9 +674,6 @@ class ProjectTask extends AbstractModel
'owner' => 1,
]);
$array[] = $uid;
if ($this->parent_id) {
break; // 子任务只能是一个负责人
}
}
if ($array) {
if (count($older) == 0 && count($array) == 1 && $array[0] == User::userid()) {

View File

@ -54,7 +54,7 @@
<div slot="content">
<UserInput
v-model="ownerData.owner_userid"
:multiple-max="1"
:multiple-max="10"
:project-id="taskDetail.project_id"
:placeholder="$L('选择任务负责人')"
:transfer="false"

View File

@ -425,6 +425,12 @@
}
.subtask-avatar {
cursor: pointer;
display: flex;
flex-direction: column;
.avatar-wrapper {
margin-top: 3px;
margin-bottom: -2px;
}
}
.ivu-icon-ios-loading {
animation: animation-icon-loading 0.6s infinite linear;