fix: 修复新增/编辑时,选中的左侧树未重置为题
This commit is contained in:
parent
6d4df081d9
commit
0afd4fdc12
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user