fix: 修复新增/编辑时,选中的左侧树未重置为题

This commit is contained in:
Xu Zhimeng 2023-06-07 16:16:28 +08:00
parent 6d4df081d9
commit 0afd4fdc12

View File

@ -113,11 +113,10 @@
</div>
<!-- 增加/编辑排班弹窗 -->
<custom-modal :title="isAdd ? 'Add' : 'Edit'" :width="845" v-model="visible" :okHandler="submit">
<custom-modal :title="isAdd ? 'Add' : 'Edit'" :width="845" v-model="visible" :okHandler="submit" destroy-on-close>
<a-spin :spinning="isGettingDetail">
<div class="account-assign">
<a-transfer
:selected-keys.sync="selectedStationKeys"
:target-keys="targetKeys"
:render="item => item.title"
:operations="['Assign', 'Remove']"
@ -223,7 +222,6 @@ export default {
isGettingDetail: false, //
originalTreeData: [], //
selectedStationKeys: [], // 穿
targetKeys: [],
isGettingStationList: false,
@ -388,7 +386,6 @@ export default {
this.isAdd = true
this.visible = true
this.selectedStationKeys = []
this.targetKeys = []
this.accountTreeData = []
this.rightAccountChildSelectedKeys = []