From 83780f9bcd30de0976cbffca031bda41882760c2 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 10 Apr 2025 17:05:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BB=8E=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=E7=AE=A1=E7=90=86=E6=89=93=E5=BC=80=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/components/TeamManagement.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/TeamManagement.vue b/resources/assets/js/pages/manage/components/TeamManagement.vue index 5855bf8b2..a0c95806e 100644 --- a/resources/assets/js/pages/manage/components/TeamManagement.vue +++ b/resources/assets/js/pages/manage/components/TeamManagement.vue @@ -643,18 +643,24 @@ export default { }, [h('div', this.$L('修改MAC地址'))]) ]) } + dropdownItems.push(h('EDropdownItem', { + props: { + command: 'openDialog', + divided: this.checkinMode + }, + }, [h('div', this.$L('打开会话窗口'))])); if (identity.includes('admin')) { dropdownItems.push(h('EDropdownItem', { props: { command: 'clearadmin', - divided: this.checkinMode + divided: true }, }, [h('div', this.$L('取消管理员'))])); } else { dropdownItems.push(h('EDropdownItem', { props: { command: 'setadmin', - divided: this.checkinMode + divided: true }, }, [h('div', this.$L('设为管理员'))])); } @@ -675,6 +681,7 @@ export default { h('EDropdownItem', { props: { command: 'email', + divided: true }, }, [h('div', this.$L('修改邮箱'))]), h('EDropdownItem', { @@ -692,6 +699,7 @@ export default { dropdownItems.push(h('EDropdownItem', { props: { command: 'cleardisable', + divided: true }, style: { color: 'red' @@ -701,6 +709,7 @@ export default { dropdownItems.push(h('EDropdownItem', { props: { command: 'setdisable', + divided: true }, style: { color: 'red' @@ -1026,6 +1035,12 @@ export default { this.checkinFaceEditShow = true; break; + case 'openDialog': + this.$store.dispatch("openDialogUserid", row.userid).catch(({msg}) => { + $A.modalError(msg) + }); + break; + case 'setadmin': $A.modalConfirm({ content: `你确定将【ID:${row.userid}, ${row.nickname}】设为管理员吗?`,