Commit b424cd54 by 张杰

增加清空右侧按钮

1 parent 4312e440
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<div class="middle_box"> <div class="middle_box">
<el-button type="primary" class="btn" icon="el-icon-arrow-right" size="small" :loading="ajaxloding" @click="moveToRight"></el-button> <el-button type="primary" class="btn" icon="el-icon-arrow-right" size="small" :loading="ajaxloding" @click="moveToRight"></el-button>
<el-button type="primary" class="btn" icon="el-icon-arrow-left" size="small" :loading="ajaxloding" :disabled="!rightCheckList || rightCheckList.length<=0" @click="moveToLeft"></el-button> <el-button type="primary" class="btn" icon="el-icon-arrow-left" size="small" :loading="ajaxloding" :disabled="!rightCheckList || rightCheckList.length<=0" @click="moveToLeft"></el-button>
<el-button type="primary" class="btn" icon="el-icon-d-arrow-left" size="small" :loading="ajaxloding" @click="clearSelect"></el-button>
</div> </div>
<!-- 中间按钮区域 end --> <!-- 中间按钮区域 end -->
...@@ -504,6 +505,13 @@ export default { ...@@ -504,6 +505,13 @@ export default {
this.showCheckList.unshift(e); this.showCheckList.unshift(e);
} }
}, },
// 清空右侧选择
clearSelect(){
this.checkList = [];
this.showCheckList = [];
}
}, },
}; };
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!