提交 5261c00e 编写于 作者: huangwensu's avatar huangwensu

接口联调

上级 748cdec5
......@@ -15,13 +15,13 @@
<article
v-for="(item, index) in messageList"
:key="index">
<div class="split-line" v-if="item.sessionFlag">本次会话结束</div>
<!-- <div class="split-line" v-if="item.sessionFlag">本次会话结束</div> -->
<!-- sendOrReceive 为true在右边 -->
<div class="msg-item" :class="{'cr': item.sendOrReceive}">
<div class="msg-item-img">
<img :src="item.avatarImg" alt />
</div>
<div class="msg-item-detail">
<div class="msg-item-detail" :class="{'line': item.showType == 10}">
<span class="mid-time">{{item.name}} {{item.timestampStr}}</span>
<div class="send-warpper">
<img
......@@ -39,21 +39,6 @@
<div v-if="item.showType == 1" class="mid-text-wrapper" style="max-width: 520px;">
<div class="mid-text">{{item.text}}</div>
</div>
<!-- 预约时间模块 -->
<!-- <div v-if="item.showType == 1" class="time-box">
<div class="title">电话/视频问诊时间已确定</div>
<div class="time">已预约 2021-03-20 下午 3:00-3:30</div>
<div class="time-text">因PCR反应模板仅为DNA,因此在进行PCR反应钱,应将新型冠状病毒核酸逆转录为DNA。</div>
</div> -->
<!-- 医生建议模块 -->
<!-- <div v-if="item.showType == 1" class="suggession-box">
<div class="title">医生建议</div>
<div class="suggession-text">无糖饮食,参加体育锻炼,不适随诊</div>
</div> -->
<!-- 音视频与IM的交互 -->
<!-- <div v-if="item.showType == 1" class="live-box">
<div class="mid-text">{{item.text}}</div>
</div> -->
<div v-if="item.showType == 2" class="mid-img" v-viewer>
<div class="img-box">
<img
......@@ -63,7 +48,6 @@
alt
/>
</div>
</div>
<div v-if="item.showType == 3" class="mid-pdf" @click="openPDF(item)">
<div class="midp-left">
......@@ -100,6 +84,25 @@
<span>{{item.text.illnessDetail}}</span>
</div>
</div>
<!-- 预约时间模块 -->
<div v-if="item.showType == 8" class="time-box">
<div class="title">{{item.title}}</div>
<div class="time">{{item.text.timeStr}}</div>
<div class="time-text">{{item.text.tips}}</div>
</div>
<!-- 音视频与IM的交互 -->
<div v-if="item.showType == 9" class="live-box">
<div class="live-notice">{{item.text}}</div>
</div>
<!-- 问诊结束 -->
<div v-if="item.showType == 10" class="diagnosis-end">
<div class="split-line">{{item.text}}</div>
</div>
<!-- 医生建议模块 -->
<div v-if="item.showType == 11" class="suggession-box">
<div class="title">医生建议</div>
<div class="suggession-text">{{item.content}}</div>
</div>
</div>
</div>
</div>
......@@ -518,6 +521,16 @@ export default {
showType = 7;
title = content.title;
text = JSON.parse(content.content);
} else if(content.bizType == 23) { // 预约时间
showType = 8;
title = content.title;
text = JSON.parse(content.content);
} else if(content.bizType == 24){ // 音视频与IM交互
showType = 9;
text = content.content;
} else if(content.bizType == 25){ // 本次问诊结束
showType = 10;
text = content.content;
}else {
showType = 5;
}
......
......@@ -73,14 +73,14 @@
<el-table-column prop="statusStr" label="问诊状态" min-width="80" align="left"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" min-width="150">
<template slot-scope="scope">
<!-- 1 初始状态 2待咨询 3 咨询中 4已结束 -->
<div>
<el-button type="primary" size="small" @click="timeHandle(scope.row)">预约时间</el-button>
<!-- <el-button type="primary" size="small" @click="timeHandle(scope.row)">修改时间</el-button> -->
<el-button type="primary" size="small" @click="endDiagnosis(scope.row)">结束问诊</el-button>
<el-button v-if="scope.row.status != 4" type="primary" size="small" @click="timeHandle(scope.row)">修改时间</el-button>
<el-button v-if="scope.row.status == 3" type="primary" size="small" @click="endDiagnosis(scope.row)">结束</el-button>
</div>
<div style="margin-top: 10px;">
<el-button type="primary" size="small" @click="callAll(scope.row)">呼叫双方</el-button>
<!-- <el-button type="primary" size="small" @click="callAll(scope.row)">加入沟通</el-button> -->
<el-button v-if="scope.row.status == 3 && scope.row.imStatus == 1" type="primary" size="small" @click="callAll(scope.row)">呼叫双方</el-button>
<el-button v-if="scope.row.status == 3 && scope.row.imStatus == 2" type="primary" size="small" @click="callAll(scope.row)">加入问诊</el-button>
<el-button type="primary" size="small" @click="sendMessage(scope.row)">发送消息</el-button>
</div>
</template>
......@@ -283,12 +283,17 @@ export default {
this.loading = false;
if (res.code == "000000") {
this.$message({
message: '预约成功',
message: '修改预约时间成功',
type: "success"
});
this.searchParam.tab = 1;
this.timeVisible = false;
this.search();
}else {
this.$message({
message: res.message,
type: "error"
})
}
});
}
......@@ -309,6 +314,11 @@ export default {
});
this.searchParam.tab = 1;
this.search();
}else {
this.$message({
message: res.message,
type: "error"
})
}
});
})
......@@ -331,6 +341,11 @@ export default {
});
this.searchParam.tab = 1;
this.search();
}else {
this.$message({
message: res.message,
type: "error"
})
}
});
this.activeName = 'first';
......
......@@ -350,8 +350,44 @@
background: #EBF5FC;
border-radius: 20px;
}
& > .live-box {
width: 202px;
height: 44px;
line-height: 44px;
background: #f0f1f2;
border-radius: 8px;
text-align: center;
}
& > .diagnosis-end {
width: 100%;
.split-line {
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
margin: 15px 0;
font-size: 14px;
color: #999999;
&::before {
flex: 1;
content: '';
height: 1px;
margin-right: 18px;
background: #f0f1f2;
}
&::after {
flex: 1;
content: '';
height: 1px;
margin-left: 18px;
background: #f0f1f2;
}
}
}
}
}
.msg-item-detail.line {
width: 100%;
}
&.cr {
flex-direction: row-reverse;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册