mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 22:22:49 +00:00
feat: 添加从团队管理打开会话窗口
This commit is contained in:
parent
bfb9795913
commit
83780f9bcd
@ -643,18 +643,24 @@ export default {
|
|||||||
}, [h('div', this.$L('修改MAC地址'))])
|
}, [h('div', this.$L('修改MAC地址'))])
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
dropdownItems.push(h('EDropdownItem', {
|
||||||
|
props: {
|
||||||
|
command: 'openDialog',
|
||||||
|
divided: this.checkinMode
|
||||||
|
},
|
||||||
|
}, [h('div', this.$L('打开会话窗口'))]));
|
||||||
if (identity.includes('admin')) {
|
if (identity.includes('admin')) {
|
||||||
dropdownItems.push(h('EDropdownItem', {
|
dropdownItems.push(h('EDropdownItem', {
|
||||||
props: {
|
props: {
|
||||||
command: 'clearadmin',
|
command: 'clearadmin',
|
||||||
divided: this.checkinMode
|
divided: true
|
||||||
},
|
},
|
||||||
}, [h('div', this.$L('取消管理员'))]));
|
}, [h('div', this.$L('取消管理员'))]));
|
||||||
} else {
|
} else {
|
||||||
dropdownItems.push(h('EDropdownItem', {
|
dropdownItems.push(h('EDropdownItem', {
|
||||||
props: {
|
props: {
|
||||||
command: 'setadmin',
|
command: 'setadmin',
|
||||||
divided: this.checkinMode
|
divided: true
|
||||||
},
|
},
|
||||||
}, [h('div', this.$L('设为管理员'))]));
|
}, [h('div', this.$L('设为管理员'))]));
|
||||||
}
|
}
|
||||||
@ -675,6 +681,7 @@ export default {
|
|||||||
h('EDropdownItem', {
|
h('EDropdownItem', {
|
||||||
props: {
|
props: {
|
||||||
command: 'email',
|
command: 'email',
|
||||||
|
divided: true
|
||||||
},
|
},
|
||||||
}, [h('div', this.$L('修改邮箱'))]),
|
}, [h('div', this.$L('修改邮箱'))]),
|
||||||
h('EDropdownItem', {
|
h('EDropdownItem', {
|
||||||
@ -692,6 +699,7 @@ export default {
|
|||||||
dropdownItems.push(h('EDropdownItem', {
|
dropdownItems.push(h('EDropdownItem', {
|
||||||
props: {
|
props: {
|
||||||
command: 'cleardisable',
|
command: 'cleardisable',
|
||||||
|
divided: true
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
color: 'red'
|
color: 'red'
|
||||||
@ -701,6 +709,7 @@ export default {
|
|||||||
dropdownItems.push(h('EDropdownItem', {
|
dropdownItems.push(h('EDropdownItem', {
|
||||||
props: {
|
props: {
|
||||||
command: 'setdisable',
|
command: 'setdisable',
|
||||||
|
divided: true
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
color: 'red'
|
color: 'red'
|
||||||
@ -1026,6 +1035,12 @@ export default {
|
|||||||
this.checkinFaceEditShow = true;
|
this.checkinFaceEditShow = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'openDialog':
|
||||||
|
this.$store.dispatch("openDialogUserid", row.userid).catch(({msg}) => {
|
||||||
|
$A.modalError(msg)
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
case 'setadmin':
|
case 'setadmin':
|
||||||
$A.modalConfirm({
|
$A.modalConfirm({
|
||||||
content: `你确定将【ID:${row.userid}, ${row.nickname}】设为管理员吗?`,
|
content: `你确定将【ID:${row.userid}, ${row.nickname}】设为管理员吗?`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user