From a06c857cf8159498c9c03d083c46698cad58972a Mon Sep 17 00:00:00 2001 From: danshihao Date: Thu, 15 Dec 2022 14:03:11 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8A=A5=E5=91=8A=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=9D=83=E9=99=90=EF=BC=9A=E5=A2=9E=E5=8A=A0=E5=85=A8=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Report/ReportManager.vue | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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 {