fix : 修复人员取消功能
This commit is contained in:
@@ -173,11 +173,11 @@
|
||||
<el-button color="#DED0B2" style="margin-right: 10px" @click="handleShowOptionalChargeLeadershipPicker">
|
||||
{{ optionalChargeLeadershipList.length !== 0 ? '更改' : '请选择' }}
|
||||
</el-button>
|
||||
<div v-for="item in optionalChargeLeadershipList" :key="item.id" style="margin-right: 5px">
|
||||
{{ item.name }}
|
||||
<div v-for="(item,index) in optionalChargeLeadershipList" :key="item.id" style="margin-right: 5px">
|
||||
{{ item.name }}{{index != optionalChargeLeadershipList?.length - 1 ? ',' : ''}}
|
||||
</div>
|
||||
<user-picker :multiple="true" ref="optionalChargeLeadershipPickerRef" title="请选择分管领导"
|
||||
v-model:value="optionalChargeLeadershipList" @ok="optionalChargeLeaderPickerOk"/>
|
||||
<user-picker :multiple="true" ref="optionalChargeLeadershipPickerRef" title="请选择分管领导" @cancelOrClear="optionalChargeLeaderPickerOkOrCancel"
|
||||
v-model:value="optionalChargeLeadershipList" @ok="optionalChargeLeaderPickerOkOrCancel"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -365,7 +365,7 @@ const handleShowOptionalChargeLeadershipPicker = () => {
|
||||
optionalChargeLeadershipPickerRef.value.showUserPicker()
|
||||
}
|
||||
|
||||
const optionalChargeLeaderPickerOk = (userList) => {
|
||||
const optionalChargeLeaderPickerOkOrCancel = (userList) => {
|
||||
optionalChargeLeadershipList.value = userList
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user