This commit is contained in:
zyy 2020-07-14 18:14:53 +08:00
commit b2f9e388aa
5 changed files with 9 additions and 6 deletions

View File

@ -339,9 +339,10 @@ export default {
this.handleLoginSucessRoute();
});
}).catch(error => {
if (error.data && error.data.status === 'EXPIRE') {
if ((error.data && error.data.status === 'EXPIRE') || error.code != 200) {
this.loadingCode = true;
this.loginUrl = '';
this.tipsMsg = error.message || '';
} else {
self.checkLoginStatus();
}

View File

@ -140,7 +140,7 @@ export default {
height: 520px;
&--list {
background: #fff;
height: calc(100% - 39px);
height: calc(100% - 109px);
border-bottom: 1px #ccc solid;
&::-webkit-scrollbar {

View File

@ -10,7 +10,7 @@
>
<div class="room">
<div class="room__container">
<div style="width: 70%;height: 100%;">
<div style="width: 70%;height: calc(100%-20px);">
<div style="margin-left: 10px;margin-right: 10px;">
<el-input v-model="queryMember" placeholder="请输入搜索人员">
<el-button slot="append" icon="el-icon-search" />
@ -22,7 +22,7 @@
:data="treeData"
:props="defaultProps"
default-expand-all
style="margin: 10px;margin-bottom: 0;border: 1px solid #ccc;overflow-y: auto;height: calc(100% - 50px);"
style="margin: 10px;margin-bottom: 0;border: 1px solid #ccc;overflow-y: auto;height: calc(100% - 120px);"
:filter-node-method="filterNode"
@node-click="handleNodeClick"
>

View File

@ -534,7 +534,7 @@ export default {
const user = this.simulationUsers[this.$store.state.user.id];
this.isConversitionCreator = conversation.creatorId == user.memberId;
!conversation.over && conversation.memberList.forEach(member =>{
if (member.memberId == user.memberId) {
if (member.memberId == user.memberId && member.connect) {
this.conversitionMemberList = conversation.memberList;
this.conversitionId = conversation.id;
this.messageList = [];

View File

@ -9,7 +9,6 @@
:style="computedStyle(member)"
:title="memberData[member.memberId].label + (memberData[member.memberId].userId? '(' + (simulationUsers[memberData[member.memberId].userId] || {}).nickName + ')': '')"
>{{ memberData[member.memberId].label + (memberData[member.memberId].userId? '(' + (simulationUsers[memberData[member.memberId].userId] || {}).nickName + ')': '') }}</div>
<!-- :class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'" -->
</div>
</div>
</template>
@ -53,6 +52,9 @@ export default {
const userId = (this.memberData[member.memberId] || {}).userId;
if (userId && userId == this.userId) {
return {color: 'red'};
} else if (userId) {
const user = this.simulationUsers[userId];
return {color: member.connect && user.online ? 'green' : 'gray'};
} else {
return {color: member.connect ? 'green' : 'gray'};
}