提交 fc56cdc9 编写于 作者: 张磊's avatar 张磊

Merge branch 'feat/zl' into 'develop'

Feat/zl

See merge request !49
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<section class="c-header"> <section class="c-header">
<div class="header-line"> <div class="header-line">
<div class="c-header-l"> <div class="c-header-l">
<span class="num">3519</span> <span class="num">{{currentChat.diagnoseLogId}}</span>
<span class="dep">&nbsp;内科</span> <span class="dep">&nbsp;{{currentChat.department}}</span>
</div> </div>
<div class="c-header-edit"> <div class="c-header-edit">
<span class="edit-img" @click="overFn"> <span class="edit-img" @click="overFn">
...@@ -270,7 +270,6 @@ export default { ...@@ -270,7 +270,6 @@ export default {
doctorImg: '' doctorImg: ''
}; };
}, },
computed: { computed: {
...mapState({ ...mapState({
currentChat: 'currentChat', currentChat: 'currentChat',
...@@ -313,9 +312,8 @@ export default { ...@@ -313,9 +312,8 @@ export default {
mounted() { mounted() {
cacheMap = {}; cacheMap = {};
this.$nextTick(() => { this.$nextTick(() => {
_this.containerHeight = document.body.clientHeight - 80; // _this.containerHeight = document.body.clientHeight - 80;
// _this.getElmByID("screenSet").style.height = _this.containerHeight - 76 + "px"; // _this.getElmByID("msgContentId").style.height = "400px";
_this.getElmByID("msgContentId").style.height = "400px";
}); });
}, },
...@@ -324,8 +322,7 @@ export default { ...@@ -324,8 +322,7 @@ export default {
_this = this; _this = this;
this.picakfAccId = getPicaKFAccid(); this.picakfAccId = getPicaKFAccid();
const {imTeamId} = this.currentChat; const {imTeamId} = this.currentChat;
this.tid = imTeamId || '3853944746'; this.tid = imTeamId || '3854284100';
console.log('--this.currentChat', this.currentChat);
this.getFiveContentList(); this.getFiveContentList();
autoCompletionIntervalId && clearInterval(autoCompletionIntervalId); autoCompletionIntervalId && clearInterval(autoCompletionIntervalId);
autoCompletionIntervalId = setInterval(() => { autoCompletionIntervalId = setInterval(() => {
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<p class="msg-img"> <p class="msg-img">
<img :src="im_text" alt /> <img :src="im_text" alt />
</p> </p>
<span>{{ title }}</span> <span>{{ diagnoseType }}</span>
</div> </div>
<div class="time-message ml10"> <div class="time-message ml10">
<p class="msg-img"> <img :src="im_time" alt /></p> <p class="msg-img"> <img :src="im_time" alt /></p>
<p>设定时长: {{ time }}分钟</p> <p>设定时长: {{ time }}分钟 &nbsp;&nbsp;</p>
<p v-if="startTime && endTime">总时长: {{ useTime }}</p> <p v-if="startTime && endTime">总时长: {{ useTime }}&nbsp;&nbsp;</p>
<p v-if="startTime && endTime">剩余时长: {{ loseTime }}</p> <p v-if="startTime && endTime">剩余时长: {{ loseTime }}</p>
</div> </div>
</div> </div>
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
</div> </div>
</div> </div>
<div class="viedo"> <div class="viedo">
<el-button class="call-btn"> 已接入</el-button> <el-button class="call-btn" :disabled="item.status === 2" @click="drivingCall(item)" >
{{ showText(item.status, item.role, item) }}
</el-button>
</div> </div>
</div> </div>
<div class="vedio-man"> <div class="vedio-man">
...@@ -62,6 +64,7 @@ import RtcClient from "../../utils/RtcClient.js"; ...@@ -62,6 +64,7 @@ import RtcClient from "../../utils/RtcClient.js";
import { openLoading, closeLoading } from "@/utils/utils"; import { openLoading, closeLoading } from "@/utils/utils";
import alert from "@/components/common/alert.vue"; import alert from "@/components/common/alert.vue";
import timeLeft from "@/components/timeLeft"; import timeLeft from "@/components/timeLeft";
import {mapState} from "vuex";
export default { export default {
components: { components: {
alert, alert,
...@@ -102,7 +105,7 @@ export default { ...@@ -102,7 +105,7 @@ export default {
answerTimeFn: null, answerTimeFn: null,
useTimeFn: null, useTimeFn: null,
loseTimeFn: null, loseTimeFn: null,
type: 2, // 1: 语音 2: 视频 type: 1, // 1: 语音 2: 视频
startTime: 0, startTime: 0,
endTime: 0, endTime: 0,
time: 30, //总时长 time: 30, //总时长
...@@ -113,14 +116,28 @@ export default { ...@@ -113,14 +116,28 @@ export default {
}; };
}, },
created() { created() {
this.tid = this.$route.query.tid || "3853944746"; this.tid = this.$route.query.tid || "3854284100";
this.diagnoseLogId = this.$route.query.diagnoseLogId || "35"; this.diagnoseLogId = this.$route.query.diagnoseLogId || "38";
// openLoading(this); // openLoading(this);
this.init(); this.init();
}, },
computed: { computed: {
title() { ...mapState({
return this.type == 1 ? "音频问诊" : "视频问诊"; currentChat: 'currentChat',
}),
diagnoseType() {
switch(this.currentChat.diagnoseType) {
case 1:
return '语音问诊'
case 2:
return '视频问诊'
break;
case 3:
return '图文问诊'
break;
default:
return''
}
}, },
}, },
methods: { methods: {
...@@ -183,6 +200,7 @@ export default { ...@@ -183,6 +200,7 @@ export default {
.then((res) => { .then((res) => {
if (res.code == "000000") { if (res.code == "000000") {
let { liveInfo, memberList } = res.data; let { liveInfo, memberList } = res.data;
console.log('----memberList', memberList);
if (liveInfo) { if (liveInfo) {
this.startTime = liveInfo.startTimestamp; this.startTime = liveInfo.startTimestamp;
this.endTime = liveInfo.endTimestamp; this.endTime = liveInfo.endTimestamp;
...@@ -373,7 +391,7 @@ export default { ...@@ -373,7 +391,7 @@ export default {
text = "已离线"; text = "已离线";
break; break;
default: default:
text = `已接入: ${role == 1 ? this.askTime : this.answerTime}`; text = `已接入`;
break; break;
} }
return text; return text;
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgba(0,0,0,0.6); //background: rgba(0,0,0,0.6);
.diog-main { .diog-main {
width:480px; width:480px;
padding: 34px 32px 24px 34px; padding: 34px 32px 24px 34px;
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
:total="totalRows"> :total="totalRows">
</el-pagination> </el-pagination>
</el-row> </el-row>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
"appointEndTime": "2021-07-29T05:28:57.396Z", "appointEndTime": "2021-07-29T05:28:57.396Z",
"department": "内科", "department": "内科",
"departmentId": 3876, "departmentId": 3876,
"diagnoseLogId": 11, "diagnoseLogId": 38,
"diagnoseType": 1, "diagnoseType": 1,
"doctorCallKfStatus": 1, "doctorCallKfStatus": 1,
"doctorCallTime": "", "doctorCallTime": "",
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
"doctorName": "孙思邈", "doctorName": "孙思邈",
"doctorTrtcEntryStatus": 1, "doctorTrtcEntryStatus": 1,
"imStatus": 0, "imStatus": 0,
"imTeamId": "3853944746", "imTeamId": "3854284100",
"returnStatus": 1, "returnStatus": 1,
"roomId": "string", "roomId": "string",
"sort": 0, "sort": 0,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册