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

获取菜单

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