mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 22:22:49 +00:00
perf: 添加会议机器人快捷菜单
This commit is contained in:
parent
ab61715973
commit
bd7228a378
@ -146,6 +146,21 @@ class UserBot extends AbstractModel
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
case 'meeting-alert@bot.system':
|
||||||
|
if (!Base::judgeClientVersion('0.39.89')) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'key' => 'meeting-create',
|
||||||
|
'label' => Doo::translate('新会议')
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'key' => 'meeting-join',
|
||||||
|
'label' => Doo::translate('加入会议')
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
case 'bot-manager@bot.system':
|
case 'bot-manager@bot.system':
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|||||||
@ -1755,7 +1755,9 @@ export default {
|
|||||||
* @param item
|
* @param item
|
||||||
*/
|
*/
|
||||||
sendQuick(item) {
|
sendQuick(item) {
|
||||||
if (item.key === "locat-checkin") {
|
switch (item.key) {
|
||||||
|
// 位置签到
|
||||||
|
case "locat-checkin":
|
||||||
this.$store.dispatch('openAppMapPage', {
|
this.$store.dispatch('openAppMapPage', {
|
||||||
key: item.config.key,
|
key: item.config.key,
|
||||||
point: `${item.config.lng},${item.config.lat}`,
|
point: `${item.config.lng},${item.config.lat}`,
|
||||||
@ -1786,9 +1788,28 @@ export default {
|
|||||||
thumb
|
thumb
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return;
|
break;
|
||||||
}
|
|
||||||
|
// 创建会议
|
||||||
|
case "meeting-create":
|
||||||
|
Store.set('addMeeting', {
|
||||||
|
type: 'create',
|
||||||
|
userids: [this.userId],
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
// 加入会议
|
||||||
|
case "meeting-join":
|
||||||
|
Store.set('addMeeting', {
|
||||||
|
type: 'join',
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
// 发送快捷指令
|
||||||
|
default:
|
||||||
this.sendMsg(`<p><span data-quick-key="${item.key}">${item.label}</span></p>`)
|
this.sendMsg(`<p><span data-quick-key="${item.key}">${item.label}</span></p>`)
|
||||||
|
break;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user