mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
feat:聊天打开okr - 10%
This commit is contained in:
parent
75242f8844
commit
b8eab81ad2
@ -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)
|
||||||
|
|||||||
@ -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("正在加载,请稍后再试...")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user