mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 06:32:51 +00:00
no message
This commit is contained in:
parent
56ea048ab3
commit
5be209ab59
@ -4,6 +4,9 @@
|
|||||||
<div class="dialog-user">
|
<div class="dialog-user">
|
||||||
<div class="member-head">
|
<div class="member-head">
|
||||||
<div class="member-title">{{$L('项目成员')}}<span @click="memberShowAll=!memberShowAll">({{projectData.project_user.length}})</span></div>
|
<div class="member-title">{{$L('项目成员')}}<span @click="memberShowAll=!memberShowAll">({{projectData.project_user.length}})</span></div>
|
||||||
|
<div class="member-open" @click="onMsgOpen" :title="$L('在消息中打开')">
|
||||||
|
<Icon type="ios-chatbubbles-outline"/>
|
||||||
|
</div>
|
||||||
<div class="member-close" @click="onClose">
|
<div class="member-close" @click="onClose">
|
||||||
<Icon type="ios-close"/>
|
<Icon type="ios-close"/>
|
||||||
</div>
|
</div>
|
||||||
@ -34,6 +37,15 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loadIng: false,
|
loadIng: false,
|
||||||
memberShowAll: false,
|
memberShowAll: false,
|
||||||
|
beforeDestroyClose: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeDestroy() {
|
||||||
|
if (this.beforeDestroyClose) {
|
||||||
|
requestAnimationFrame(_ => {
|
||||||
|
this.$store.dispatch('toggleProjectParameter', 'chat');
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -46,7 +58,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
onMsgOpen() {
|
||||||
|
this.$store.dispatch("openDialog", this.projectData.dialog_id);
|
||||||
|
this.goForward({name: 'manage-messenger', params: {dialogAction: 'dialog'}});
|
||||||
|
this.beforeDestroyClose = true;
|
||||||
|
},
|
||||||
|
|
||||||
onClose() {
|
onClose() {
|
||||||
|
this.$emit('on-close');
|
||||||
this.$store.dispatch('toggleProjectParameter', 'chat');
|
this.$store.dispatch('toggleProjectParameter', 'chat');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-project">
|
<div class="page-project">
|
||||||
<template v-if="projectId > 0">
|
<template v-if="projectId > 0">
|
||||||
<ProjectPanel/>
|
<ProjectPanel ref="panel"/>
|
||||||
<ProjectDialog/>
|
<ProjectDialog @on-close="onDialogClose"/>
|
||||||
</template>
|
</template>
|
||||||
<ProjectList v-if="windowPortrait" v-show="projectId === 0"/>
|
<ProjectList v-if="windowPortrait" v-show="projectId === 0"/>
|
||||||
</div>
|
</div>
|
||||||
@ -73,6 +73,10 @@ export default {
|
|||||||
});
|
});
|
||||||
this.$store.dispatch("forgetTaskCompleteTemp", true);
|
this.$store.dispatch("forgetTaskCompleteTemp", true);
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
onDialogClose() {
|
||||||
|
this.$refs.panel?.handleColumnDebounce();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,24 +10,31 @@
|
|||||||
.member-head {
|
.member-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 22px;
|
padding: 0 14px 0 22px;
|
||||||
.member-title {
|
.member-title {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
padding-right: 12px;
|
||||||
> span {
|
> span {
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
color: $primary-color;
|
color: $primary-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.member-open {
|
||||||
|
cursor: pointer;
|
||||||
|
margin-right: 8px;
|
||||||
|
|
||||||
|
.ivu-icon-ios-chatbubbles-outline {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.member-close {
|
.member-close {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.ivu-icon-ios-close {
|
.ivu-icon-ios-close {
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
top: 3px;
|
|
||||||
right: 2px;
|
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user