教代会意见:
撰写建议-> 建议人根据讨论组代表团来筛选
This commit is contained in:
@@ -37,11 +37,13 @@ const BASIC_FORM = {
|
||||
ref="suggestUserSelectRef"
|
||||
v-model="formData.suggestUserId"
|
||||
style="width: 100%"
|
||||
api="/platform/teacherCongress/discussionGroup/recorderOptions"
|
||||
api="/platform/opinion/write/suggestUserOptions"
|
||||
:api_params="{ sessionId: formData.sessionId, discussionGroupId: formData.delegationId }"
|
||||
api_input_key_name="keyword"
|
||||
:option_list="suggestUserOptions"
|
||||
option_value="id"
|
||||
:option_label_func="(item)=> item.username + ' - ' + item.loginname"
|
||||
:disabled="!formData.delegationId"
|
||||
@change="suggestUserChange"
|
||||
></user-select>
|
||||
</el-form-item>
|
||||
@@ -422,11 +424,20 @@ const BASIC_FORM = {
|
||||
this.formData.createUserLoginName = ""
|
||||
},
|
||||
clearSuggestDelegation() {
|
||||
this.formData.suggestUserId = ""
|
||||
this.formData.suggestUserName = ""
|
||||
this.formData.suggestUserLoginName = ""
|
||||
this.formData.suggestUserDelegationId = ""
|
||||
this.formData.suggestUserDelegationName = ""
|
||||
this.formData.delegationName = ""
|
||||
this.formData.mobile = ""
|
||||
this.formData.unitName = ""
|
||||
this.suggestUserOptions = []
|
||||
},
|
||||
discussionGroupChange(groupId) {
|
||||
discussionGroupChange(groupId, preserveSuggestUser) {
|
||||
if (!preserveSuggestUser) {
|
||||
this.clearSuggestDelegation()
|
||||
}
|
||||
if (!groupId) {
|
||||
this.fillCurrentRecorder()
|
||||
this.formData.discussionGroupName = ""
|
||||
@@ -529,7 +540,7 @@ const BASIC_FORM = {
|
||||
}
|
||||
}
|
||||
if (this.formData.delegationId) {
|
||||
await this.discussionGroupChange(this.formData.delegationId)
|
||||
await this.discussionGroupChange(this.formData.delegationId, true)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user