feat:聊天打开okr - 10%

This commit is contained in:
weifashi 2023-07-24 18:13:31 +08:00
parent 75242f8844
commit b8eab81ad2
2 changed files with 18 additions and 3 deletions

View File

@ -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)

View File

@ -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("正在加载,请稍后再试...")