提交 446844fe 编写于 作者: huangwensu's avatar huangwensu

获取菜单

上级 41b20b9c
......@@ -97,7 +97,7 @@ export default {
if (res.code == "000000") {
let systemType = 0, authList = res.data.systemInfoList;
let s = authList.find( item => {
return item.systemNameAbbreviation == 'PCIM';
return item.systemNameAbbreviation == 'diagnose';
});
if(s) {
systemType = s.id;
......
......@@ -7,7 +7,8 @@
>
<section class="c-header">
<div class="c-header-l">
<span class="time-tip">问诊医生XX医生的问诊群聊</span>
<img :src="doctorImg" alt />
<span class="name">{{doctorName}}医生的问诊群聊</span>
</div>
</section>
<p class="refreshText"></p>
......@@ -15,7 +16,6 @@
<article
v-for="(item, index) in messageList"
:key="index">
<!-- <div class="split-line" v-if="item.sessionFlag">本次会话结束</div> -->
<!-- sendOrReceive 为true在右边 -->
<div class="msg-item" :class="{'cr': item.sendOrReceive}">
<div class="msg-item-img">
......@@ -236,7 +236,9 @@ export default {
imgProportion: 0,
hasNoHistoryData: false,
tid: '',
teamMemberList: []
teamMemberList: [],
doctorName: '',
doctorImg: ''
};
},
......@@ -326,8 +328,10 @@ export default {
getMembersList() {
this.GET("/im/team/member/list", {tid: this.tid}).then(res => {
if (res.code === "000000") {
this.teamMemberList = res.data;
this.getMSGHistory(); // 查询群聊历史消息
this.teamMemberList = res.data // 1 问诊医生 2接诊医生 3居民 4其他
this.doctorName = this.teamMemberList[0].name
this.doctorImg = this.teamMemberList[0].avatarImageUrl
this.getMSGHistory() // 查询群聊历史消息
}
});
},
......
......@@ -66,16 +66,16 @@ export default {
getNav() {
this.POST("/basic-data/menu/list", { systemType: this.systemType }).then(res => {
if (res.code == "000000") {
//let { vueMenuDtos } = res.data;
let vueMenuDtos = [];
let { vueMenuDtos } = res.data;
// let vueMenuDtos = [];
// TODO 开发调试时写死, 发布时去掉
vueMenuDtos = [{
icon: 'el-icon-setting',
index: "diagnosis-list",
subs: [],
title: "订单管理"
}];
// // TODO 开发调试时写死, 发布时去掉
// vueMenuDtos = [{
// icon: 'el-icon-setting',
// index: "diagnosis-list",
// subs: [],
// title: "订单管理"
// }];
this.items = vueMenuDtos;
sessionStorage.setItem(
"ADMIN_IM_CENTER_NAVS",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册