mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
feat:聊天打开okr - 10%
This commit is contained in:
parent
75242f8844
commit
b8eab81ad2
@ -10,6 +10,7 @@
|
||||
inline
|
||||
destroy
|
||||
disableSandbox
|
||||
keep-alive
|
||||
:data='appData'
|
||||
@created='handleCreate'
|
||||
@beforemount='handleBeforeMount'
|
||||
@ -71,7 +72,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
handleCreate(e) {
|
||||
// console.log("子应用创建了",e)
|
||||
console.log("子应用创建了",e)
|
||||
},
|
||||
handleBeforeMount(e) {
|
||||
// console.log("子应用即将被渲染",e)
|
||||
@ -96,7 +97,7 @@ export default {
|
||||
},
|
||||
handleUnmount(e) {
|
||||
this.loading = true;
|
||||
// console.log("子应用卸载了",e)
|
||||
console.log("子应用卸载了",e)
|
||||
},
|
||||
handleError(e) {
|
||||
// console.log("子应用加载出错了",e.detail.error)
|
||||
|
||||
@ -651,7 +651,6 @@ export default {
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
console.log(21123123123123123123)
|
||||
this.$store.dispatch('forgetInDialog', this._uid)
|
||||
this.$store.dispatch('closeDialog', this.dialogId)
|
||||
},
|
||||
@ -1798,6 +1797,17 @@ export default {
|
||||
this.$store.dispatch("openTask", this.dialogData.group_info.id);
|
||||
},
|
||||
|
||||
openOkr() {
|
||||
if (!this.dialogData.link_id) {
|
||||
return;
|
||||
}
|
||||
if (this.taskId > 0) {
|
||||
// 如果当前打开着任务窗口则关闭对话窗口
|
||||
this.$store.dispatch("openDialog", 0);
|
||||
}
|
||||
this.$store.dispatch("openTask", this.dialogData.link_id);
|
||||
},
|
||||
|
||||
onPrevPage() {
|
||||
if (this.prevId === 0) {
|
||||
return
|
||||
@ -2150,6 +2160,10 @@ export default {
|
||||
this.openTask()
|
||||
break;
|
||||
|
||||
case 'okr':
|
||||
this.openOkr()
|
||||
break;
|
||||
|
||||
default:
|
||||
if (this.loadMsg) {
|
||||
$A.messageWarning("正在加载,请稍后再试...")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user