bug
This commit is contained in:
@@ -41,11 +41,11 @@
|
|||||||
<u-row justify="between" class="item" @click="handleSelectUser">
|
<u-row justify="between" class="item" @click="handleSelectUser">
|
||||||
<header><em>*</em>参会人</header>
|
<header><em>*</em>参会人</header>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<template v-if="!form.attendees.length">
|
<template v-if="!selectedUserCount">
|
||||||
<span>请选择</span>
|
<span>请选择</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
已选择<em v-text="form.attendees.length"/>人
|
已选择<em v-text="selectedUserCount"/>人
|
||||||
</template>
|
</template>
|
||||||
<div class="right-arrow"></div>
|
<div class="right-arrow"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,12 +113,14 @@ export default {
|
|||||||
startTime: {...initTime},
|
startTime: {...initTime},
|
||||||
endTime: {...initTime},
|
endTime: {...initTime},
|
||||||
address: "",
|
address: "",
|
||||||
|
ticket: '',
|
||||||
content: "",
|
content: "",
|
||||||
attendees: [],
|
attendees: [],
|
||||||
noticeBefore: 4,
|
noticeBefore: 4,
|
||||||
noticeAfter: 0,
|
noticeAfter: 0,
|
||||||
files: [],
|
files: [],
|
||||||
},
|
},
|
||||||
|
selectedUserCount: 0,
|
||||||
userSelect: false,
|
userSelect: false,
|
||||||
clickedUserSelect: false
|
clickedUserSelect: false
|
||||||
}
|
}
|
||||||
@@ -161,14 +163,15 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['selectPrivilegedContact']),
|
...mapActions(['selectPrivilegedContact']),
|
||||||
handleSelectUser() {
|
handleSelectUser() {
|
||||||
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
// if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
||||||
this.clickedUserSelect = true
|
this.clickedUserSelect = true
|
||||||
this.selectPrivilegedContact({
|
this.selectPrivilegedContact({
|
||||||
fromDepartmentId: 0,
|
fromDepartmentId: 0,
|
||||||
selectedOpenUserIds: this.form.attendees?.map(e => e.id)
|
selectedOpenUserIds: this.form.attendees?.map(e => e.id)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.form.attendees = res.userList?.map(e => ({id: e.openUserId})) || []
|
this.form.attendees = res.userList?.map(e => ({id: e.openUserId})) || []
|
||||||
this.form.ticket = res?.selectedTicket || ""
|
this.form.ticket = res.selectedTicket || ""
|
||||||
|
this.selectedUserCount = res.selectedUserCount
|
||||||
this.clickedUserSelect = false
|
this.clickedUserSelect = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.clickedUserSelect = false
|
this.clickedUserSelect = false
|
||||||
@@ -195,6 +198,8 @@ export default {
|
|||||||
this.form.address = res.data.address
|
this.form.address = res.data.address
|
||||||
this.form.content = res.data.content
|
this.form.content = res.data.content
|
||||||
this.form.attendees = res.data.attendees
|
this.form.attendees = res.data.attendees
|
||||||
|
|
||||||
|
this.selectedUserCount = res.data.attendees.length
|
||||||
this.form.noticeBefore = res.data.noticeBefore
|
this.form.noticeBefore = res.data.noticeBefore
|
||||||
this.form.noticeAfter = res.data.noticeAfter
|
this.form.noticeAfter = res.data.noticeAfter
|
||||||
this.form.files = res.data.files
|
this.form.files = res.data.files
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<u-row justify="between" class="item" style="border-bottom: 1px solid #eeeeee" @click="handleSelectUser">
|
<u-row justify="between" class="item" style="border-bottom: 1px solid #eeeeee" @click="handleSelectUser">
|
||||||
<header><em>*</em>发送对象</header>
|
<header><em>*</em>发送对象</header>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<template v-if="!form.persons.length">
|
<template v-if="!selectedUserCount">
|
||||||
<span>请选择</span>
|
<span>请选择</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|||||||
Reference in New Issue
Block a user