diff --git a/src/views/Report/ReportManager.vue b/src/views/Report/ReportManager.vue index ea1231f..f8f2d67 100644 --- a/src/views/Report/ReportManager.vue +++ b/src/views/Report/ReportManager.vue @@ -341,8 +341,13 @@ - + 全选 @@ -474,10 +479,27 @@ export default { tableData: [], yearList: [], dialogPreview: false, - content: '' + content: '', + /* 权限全选 */ + checked: false, + mulSelecteds: [], // 已选中选项 } }, methods: { + /* 权限全选 */ + selectAll() { + this.reportF.reportUserIdList = []; + if (this.checked) { + this.userList.forEach((item) => { this.reportF.reportUserIdList.push(item.USID )}); + } else { + this.reportF.reportUserIdList = []; + } + // this.$emit('update:updateMultipleSelect',this.reportF.reportUserIdList); + }, + changeSelect(val) { + this.checked = val.length === this.userList.length; + // this.$emit('update:updateMultipleSelect',this.reportF.reportUserIdList); + }, init() { this.labelList(); this.reset(); @@ -978,6 +1000,10 @@ export default {