This commit is contained in:
yanran200730
2022-01-19 19:02:02 +08:00
parent 9fe4d29858
commit 1eb93adf3c
2 changed files with 13 additions and 11 deletions

View File

@@ -41,11 +41,11 @@
<u-row justify="between" class="item" @click="handleSelectUser">
<header><em>*</em>参会人</header>
<div class="right">
<template v-if="!selectedUserCount">
<template v-if="!form.selectCount">
<span>请选择</span>
</template>
<template v-else>
已选择<em v-text="selectedUserCount"/>
已选择<em v-text="form.selectCount"/>
</template>
<div class="right-arrow"></div>
</div>
@@ -115,6 +115,7 @@ export default {
address: "",
ticket: '',
content: "",
selectCount: 0,
attendees: [],
noticeBefore: 4,
noticeAfter: 0,
@@ -163,7 +164,7 @@ export default {
methods: {
...mapActions(['selectPrivilegedContact']),
handleSelectUser() {
// if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
this.clickedUserSelect = true
this.selectPrivilegedContact({
fromDepartmentId: 0,
@@ -172,7 +173,7 @@ export default {
}).then(res => {
this.form.attendees = res.userList?.map(e => ({id: e.openUserId})) || []
this.form.ticket = res.selectedTicket || ""
this.selectedUserCount = res.selectedUserCount
this.form.selectCount = res.selectedUserCount
this.clickedUserSelect = false
}).catch(() => {
this.clickedUserSelect = false