perf: 任务详情

This commit is contained in:
kuaifan 2022-02-10 20:33:35 +08:00
parent c117e4b087
commit ae80939d2e
2 changed files with 15 additions and 3 deletions

View File

@ -41,6 +41,7 @@
<Poptip <Poptip
ref="owner" ref="owner"
class="subtask-avatar" class="subtask-avatar"
popper-class="task-detail-user-popper"
:title="$L('修改负责人')" :title="$L('修改负责人')"
:width="240" :width="240"
placement="bottom" placement="bottom"
@ -52,7 +53,8 @@
v-model="ownerData.owner_userid" v-model="ownerData.owner_userid"
:multiple-max="1" :multiple-max="1"
:project-id="taskDetail.project_id" :project-id="taskDetail.project_id"
:placeholder="$L('选择任务负责人')"/> :placeholder="$L('选择任务负责人')"
:transfer="false"/>
<div class="task-detail-avatar-buttons"> <div class="task-detail-avatar-buttons">
<Button size="small" type="primary" @click="$refs.owner.ok()">{{$L('确定')}}</Button> <Button size="small" type="primary" @click="$refs.owner.ok()">{{$L('确定')}}</Button>
</div> </div>
@ -189,6 +191,7 @@
:title="$L('修改负责人')" :title="$L('修改负责人')"
:width="240" :width="240"
class="item-content user" class="item-content user"
popper-class="task-detail-user-popper"
placement="bottom" placement="bottom"
@on-popper-show="openOwner" @on-popper-show="openOwner"
@on-ok="onOwner" @on-ok="onOwner"
@ -198,7 +201,8 @@
v-model="ownerData.owner_userid" v-model="ownerData.owner_userid"
:multiple-max="10" :multiple-max="10"
:project-id="taskDetail.project_id" :project-id="taskDetail.project_id"
:placeholder="$L('选择任务负责人')"/> :placeholder="$L('选择任务负责人')"
:transfer="false"/>
<div class="task-detail-avatar-buttons"> <div class="task-detail-avatar-buttons">
<Button size="small" type="primary" @click="$refs.owner.ok()">{{$L('确定')}}</Button> <Button size="small" type="primary" @click="$refs.owner.ok()">{{$L('确定')}}</Button>
</div> </div>
@ -217,6 +221,7 @@
:title="$L(getAssist.length > 0 ? '修改协助人员' : '添加协助人员')" :title="$L(getAssist.length > 0 ? '修改协助人员' : '添加协助人员')"
:width="280" :width="280"
class="item-content user" class="item-content user"
popper-class="task-detail-user-popper"
placement="bottom" placement="bottom"
@on-popper-show="openAssist" @on-popper-show="openAssist"
@on-ok="onAssist" @on-ok="onAssist"
@ -227,7 +232,8 @@
:multiple-max="10" :multiple-max="10"
:project-id="taskDetail.project_id" :project-id="taskDetail.project_id"
:disabled-choice="assistData.disabled" :disabled-choice="assistData.disabled"
:placeholder="$L('选择任务协助人员')"/> :placeholder="$L('选择任务协助人员')"
:transfer="false"/>
<div class="task-detail-avatar-buttons"> <div class="task-detail-avatar-buttons">
<Button size="small" type="primary" @click="$refs.assist.ok()">{{$L('确定')}}</Button> <Button size="small" type="primary" @click="$refs.assist.ok()">{{$L('确定')}}</Button>
</div> </div>

View File

@ -763,6 +763,12 @@
} }
} }
.task-detail-user-popper {
.ivu-poptip-body-content {
overflow: visible;
}
}
.task-detail-avatar-buttons { .task-detail-avatar-buttons {
margin-top: 12px; margin-top: 12px;
margin-bottom: 4px; margin-bottom: 4px;