diff --git a/src/views/breakdown/log/index.vue b/src/views/breakdown/log/index.vue index 7ef4355..b72619f 100644 --- a/src/views/breakdown/log/index.vue +++ b/src/views/breakdown/log/index.vue @@ -28,19 +28,20 @@ - + 导出 - + - + + @@ -175,6 +176,12 @@ export default { props:{}, data() { return { + //选中数组 + ids:[], + //非单个禁用 + single:true, + //非多个禁用 + multiple:true, activeName:'all', loading:true, messageList:[], @@ -256,7 +263,13 @@ export default { this.download('breakdown/log/export',{ ...this.queryParams },`log_${new Date().getTime()}.xlsx`) - } + }, + // 多选框选中数据 + handleSelectionChange(selection) { + this.ids = selection.map(item => item.id) + this.single = selection.length!==1 + this.multiple = !selection.length + }, }, created() { this.getList();