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 inline
destroy destroy
disableSandbox disableSandbox
keep-alive
:data='appData' :data='appData'
@created='handleCreate' @created='handleCreate'
@beforemount='handleBeforeMount' @beforemount='handleBeforeMount'
@ -71,7 +72,7 @@ export default {
methods: { methods: {
handleCreate(e) { handleCreate(e) {
// console.log("",e) console.log("子应用创建了",e)
}, },
handleBeforeMount(e) { handleBeforeMount(e) {
// console.log("",e) // console.log("",e)
@ -96,7 +97,7 @@ export default {
}, },
handleUnmount(e) { handleUnmount(e) {
this.loading = true; this.loading = true;
// console.log("",e) console.log("子应用卸载了",e)
}, },
handleError(e) { handleError(e) {
// console.log("",e.detail.error) // console.log("",e.detail.error)

View File

@ -651,7 +651,6 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
console.log(21123123123123123123)
this.$store.dispatch('forgetInDialog', this._uid) this.$store.dispatch('forgetInDialog', this._uid)
this.$store.dispatch('closeDialog', this.dialogId) this.$store.dispatch('closeDialog', this.dialogId)
}, },
@ -1798,6 +1797,17 @@ export default {
this.$store.dispatch("openTask", this.dialogData.group_info.id); 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() { onPrevPage() {
if (this.prevId === 0) { if (this.prevId === 0) {
return return
@ -2150,6 +2160,10 @@ export default {
this.openTask() this.openTask()
break; break;
case 'okr':
this.openOkr()
break;
default: default:
if (this.loadMsg) { if (this.loadMsg) {
$A.messageWarning("正在加载,请稍后再试...") $A.messageWarning("正在加载,请稍后再试...")