fix: 修复新增/编辑时,选中的左侧树未重置为题
This commit is contained in:
parent
6d4df081d9
commit
0afd4fdc12
|
@ -113,11 +113,10 @@
|
||||||
</div>
|
</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">
|
<a-spin :spinning="isGettingDetail">
|
||||||
<div class="account-assign">
|
<div class="account-assign">
|
||||||
<a-transfer
|
<a-transfer
|
||||||
:selected-keys.sync="selectedStationKeys"
|
|
||||||
:target-keys="targetKeys"
|
:target-keys="targetKeys"
|
||||||
:render="item => item.title"
|
:render="item => item.title"
|
||||||
:operations="['Assign', 'Remove']"
|
:operations="['Assign', 'Remove']"
|
||||||
|
@ -223,7 +222,6 @@ export default {
|
||||||
isGettingDetail: false, // 编辑时正在获取详情
|
isGettingDetail: false, // 编辑时正在获取详情
|
||||||
|
|
||||||
originalTreeData: [], // 站点的树状结构
|
originalTreeData: [], // 站点的树状结构
|
||||||
selectedStationKeys: [], // 穿梭框左侧选中的站点列表
|
|
||||||
targetKeys: [],
|
targetKeys: [],
|
||||||
|
|
||||||
isGettingStationList: false,
|
isGettingStationList: false,
|
||||||
|
@ -388,7 +386,6 @@ export default {
|
||||||
this.isAdd = true
|
this.isAdd = true
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|
||||||
this.selectedStationKeys = []
|
|
||||||
this.targetKeys = []
|
this.targetKeys = []
|
||||||
this.accountTreeData = []
|
this.accountTreeData = []
|
||||||
this.rightAccountChildSelectedKeys = []
|
this.rightAccountChildSelectedKeys = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user