Commit c4a75e8c by huyue

修复bug

1 parent 644475fc
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="content"> <div class="content">
<div class="title">基本信息</div> <div class="title">基本信息</div>
<template v-if="type == 1"> <template v-if="type == 1">
<el-transfer class="transfer" v-model="value" filterable :titles="['待选列表', '已选列表']" <el-transfer :key="key" class="transfer" v-model="value" filterable :titles="['待选列表', '已选列表']"
:left-default-checked="leftDefaultChecked" :right-default-checked="rightDefaultChecked" :format="{ :left-default-checked="leftDefaultChecked" :right-default-checked="rightDefaultChecked" :format="{
noChecked: '${total}项', noChecked: '${total}项',
hasChecked: '${checked}/${total}项' hasChecked: '${checked}/${total}项'
...@@ -85,6 +85,11 @@ export default { ...@@ -85,6 +85,11 @@ export default {
this.getSummaryStaff() this.getSummaryStaff()
} else if (this.type == 1) { } else if (this.type == 1) {
this.value = [] this.value = []
this.leftChecked = []
this.rightChecked= []
this.leftDefaultChecked = []
this.rightDefaultChecked= []
this.key = new Date().getTime()
this.getStaff() this.getStaff()
} }
} }
...@@ -131,7 +136,8 @@ export default { ...@@ -131,7 +136,8 @@ export default {
prop: 'monthSubmitCount', prop: 'monthSubmitCount',
sortable: true sortable: true
} }
] ],
key: new Date().getTime()
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!