编辑
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-form-item label="候选人" prop="candidateUsers">
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseCandidateList"
|
||||
url="/app/appgirdmemberinfo/list" headerTitle="党员列表"
|
||||
:isMultiple="true" dialogTitle="选择" @selectPerson="selectCandidate" class="aipersonselect">
|
||||
<template name="option" v-slot:option="{ item }">
|
||||
@@ -97,7 +97,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="投票人" prop="voteUsers">
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseVoteList"
|
||||
url="/app/appgirdmemberinfo/list" headerTitle="党员列表"
|
||||
:isMultiple="true" dialogTitle="选择" @selectPerson="selectVote" class="aipersonselect">
|
||||
<template name="option" v-slot:option="{ item }">
|
||||
@@ -156,7 +156,6 @@ export default {
|
||||
voteUsers: [],
|
||||
partyOrganizations: []
|
||||
},
|
||||
chooseUserList: [],
|
||||
formRules: {
|
||||
title: [{required: true, message: "请输入标题", trigger: "blur"}],
|
||||
organizationName: [{required: true, message: "请选择党组织", trigger: "blur"}],
|
||||
@@ -171,6 +170,8 @@ export default {
|
||||
info: {},
|
||||
candidateUsersList: '',
|
||||
voteUsersList: '',
|
||||
chooseCandidateList: [],
|
||||
chooseVoteList: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -194,12 +195,13 @@ export default {
|
||||
params: {id:this.id}
|
||||
}).then((res) => {
|
||||
if(res?.data) {
|
||||
console.log(res.data,'getDetail');
|
||||
this.form = res.data
|
||||
this.form.organizationName = res.data.partyOrganizations[0].name
|
||||
this.info = res.data
|
||||
this.candidateUsersList = res.data.candidateUsers.map(v=> v.name)
|
||||
this.voteUsersList = res.data.voteUsers.map(v=> v.name)
|
||||
this.chooseCandidateList = res.data.candidateUsers
|
||||
this.chooseVoteList = res.data.voteUsers
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -211,10 +213,10 @@ export default {
|
||||
},
|
||||
handlePartyOrgSelect(v) {
|
||||
if(v) {
|
||||
this.form.organizationName = v[0].name
|
||||
this.form.organizationName = v[0]?.name
|
||||
this.form.partyOrganizations = [v[0]]
|
||||
} else {
|
||||
this.form.organizationName = this.chooseUserList[0].name
|
||||
this.form.organizationName = this.chooseUserList[0]?.name
|
||||
this.form.partyOrganizations = this.chooseUserList
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user