mirror of
https://github.com/kuaifan/dootask.git
synced 2026-08-06 04:48:46 +00:00
perf: 设待办快速选择人员
This commit is contained in:
parent
bf941b7ec4
commit
79b5ca4db0
@ -320,17 +320,22 @@
|
|||||||
<FormItem prop="type" :label="$L('当前会话')">
|
<FormItem prop="type" :label="$L('当前会话')">
|
||||||
<RadioGroup v-model="todoSettingData.type">
|
<RadioGroup v-model="todoSettingData.type">
|
||||||
<Radio label="all">{{$L('所有成员')}}</Radio>
|
<Radio label="all">{{$L('所有成员')}}</Radio>
|
||||||
|
<Radio label="user">{{$L('指定成员')}}</Radio>
|
||||||
<Radio v-if="todoSettingData.my_id" label="my">
|
<Radio v-if="todoSettingData.my_id" label="my">
|
||||||
<div style="display:inline-block">
|
<div class="dialog-wrapper-todo">
|
||||||
<UserAvatar :userid="todoSettingData.my_id" :show-icon="false" :show-name="true"/>
|
<div>
|
||||||
|
<UserAvatar :userid="todoSettingData.my_id" :show-icon="false" :show-name="true"/>
|
||||||
|
<Tag>{{$L('自己')}}</Tag>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Radio>
|
</Radio>
|
||||||
<Radio v-if="todoSettingData.you_id" label="you">
|
<Radio v-if="todoSettingData.you_id" label="you">
|
||||||
<div style="display:inline-block">
|
<div class="dialog-wrapper-todo">
|
||||||
<UserAvatar :userid="todoSettingData.you_id" :show-icon="false" :show-name="true"/>
|
<div>
|
||||||
|
<UserAvatar :userid="todoSettingData.you_id" :show-icon="false" :show-name="true"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Radio>
|
</Radio>
|
||||||
<Radio label="user">{{$L('指定成员')}}</Radio>
|
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem v-if="todoSettingData.type === 'user'" prop="userids">
|
<FormItem v-if="todoSettingData.type === 'user'" prop="userids">
|
||||||
@ -2215,12 +2220,13 @@ export default {
|
|||||||
this.todoSettingLoad--
|
this.todoSettingLoad--
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
const youId = this.dialogData.dialog_user?.userid
|
||||||
this.todoSettingData = {
|
this.todoSettingData = {
|
||||||
type: 'all',
|
type: 'all',
|
||||||
userids: [],
|
userids: [],
|
||||||
msg_id: this.operateItem.id,
|
msg_id: this.operateItem.id,
|
||||||
my_id: this.userId,
|
my_id: this.userId,
|
||||||
you_id: this.dialogData.dialog_user?.userid,
|
you_id: youId != this.userId ? youId : 0,
|
||||||
}
|
}
|
||||||
if (this.operateItem.todo) {
|
if (this.operateItem.todo) {
|
||||||
$A.modalConfirm({
|
$A.modalConfirm({
|
||||||
|
|||||||
@ -1383,6 +1383,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dialog-wrapper-todo {
|
||||||
|
display: inline-block;
|
||||||
|
> div {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.ivu-tag {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 4px;
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dialog-wrapper-operate {
|
.dialog-wrapper-operate {
|
||||||
.ivu-dropdown-item {
|
.ivu-dropdown-item {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user