提交 ecad6297 编写于 作者: fusheng.liu's avatar fusheng.liu

Merge branch 'develop' of...

Merge branch 'develop' of 192.168.110.53:com.pica.cloud.education.frontend/pica-admin-consultation into feature/fs
...@@ -389,12 +389,17 @@ ...@@ -389,12 +389,17 @@
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
} }
/deep/.el-textarea{ ::v-deep.el-textarea{
width: 75%;
.el-textarea__inner{ .el-textarea__inner{
border: none; border: none;
} }
} }
::v-deep.c-bottom-input{
//border: 4px solid #0d9078 !important;
::v-deep textarea{
border: none!important ;
}
}
} }
&.no-content { &.no-content {
display: flex; display: flex;
...@@ -444,3 +449,6 @@ ...@@ -444,3 +449,6 @@
} }
} }
} }
.shrink64{
height: 64px;
}
<template> <template>
<div class="chat-wrap" v-show="showChat"> <div class="chat-wrap" :class="toggleChatSize ? 'shrink64' : ''" v-show="showChat">
<section class="component-content" id="screenSet"> <section class="component-content" id="screenSet">
<article <article
class="center" class="center"
...@@ -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">
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<span class="edit-img" @click="closeChat"> <span class="edit-img" @click="closeChat">
<img src="../../assets/image/IM/im_close2.png" alt /> <img src="../../assets/image/IM/im_close2.png" alt />
</span> </span>
<span class="edit-img"> <span class="edit-img" @click="toggleChatModal">
<img src="../../assets/image/IM/im_small.png" alt /> <img src="../../assets/image/IM/im_small.png" alt />
</span> </span>
</div> </div>
...@@ -267,10 +267,10 @@ export default { ...@@ -267,10 +267,10 @@ export default {
tid: '', tid: '',
teamMemberList: [], teamMemberList: [],
doctorName: '', doctorName: '',
doctorImg: '' doctorImg: '',
toggleChatSize: false
}; };
}, },
computed: { computed: {
...mapState({ ...mapState({
currentChat: 'currentChat', currentChat: 'currentChat',
...@@ -313,9 +313,8 @@ export default { ...@@ -313,9 +313,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 +323,7 @@ export default { ...@@ -324,8 +323,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(() => {
...@@ -929,6 +927,7 @@ export default { ...@@ -929,6 +927,7 @@ export default {
}) })
.catch((err) => {}); .catch((err) => {});
}, },
out() { out() {
const {diagnoseLogId} = this.currentChat; const {diagnoseLogId} = this.currentChat;
let url = `/diagnose/admin/diagnose/endCall/${diagnoseLogId}`; let url = `/diagnose/admin/diagnose/endCall/${diagnoseLogId}`;
...@@ -958,6 +957,10 @@ export default { ...@@ -958,6 +957,10 @@ export default {
}); });
}, },
toggleChatModal () {
this.toggleChatSize = !this.toggleChatSize;
}
}, },
beforeDestroy() { beforeDestroy() {
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
<div class="top-left"> <div class="top-left">
<div class="time-message "> <div class="time-message ">
<p class="msg-img"> <p class="msg-img">
<img :src="im_text" alt /> <img :src=" diagnoseType == 1 ? im_text : im_video" 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,29 @@ export default { ...@@ -113,14 +116,29 @@ export default {
}; };
}, },
created() { created() {
this.tid = this.$route.query.tid || "3853944746"; const {imTeamId, diagnoseLogId} = this.currentChat;
this.diagnoseLogId = this.$route.query.diagnoseLogId || "35"; this.tid = imTeamId|| "3854284100";
this.diagnoseLogId = 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 +201,7 @@ export default { ...@@ -183,6 +201,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 +392,7 @@ export default { ...@@ -373,7 +392,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;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</div> </div>
</div> </div>
<div class="inquiryroom"> <div class="inquiryroom">
<div class="goroom"><span v-if="nomor" @click="openChat">进入诊室</span><span v-else>正在呼叫医助,进入诊室</span> </div> <div class="goroom" @click="openChat"><span v-if="nomor">进入诊室</span><span v-else>正在呼叫医助,进入诊室</span> </div>
<div class="suggest" @click="openAdvice">诊断建议 <div class="writesuggest" v-if="inquiry.write">未写</div></div> <div class="suggest" @click="openAdvice">诊断建议 <div class="writesuggest" v-if="inquiry.write">未写</div></div>
</div> </div>
</el-card> </el-card>
...@@ -331,10 +331,12 @@ export default { ...@@ -331,10 +331,12 @@ export default {
} }
} }
.inquiryroom{ .inquiryroom{
user-select: none;
height: 45px; height: 45px;
display: flex; //display: flex;
font-size: 14px; font-size: 14px;
.goroom{ .goroom{
display: inline-block;
cursor:pointer; cursor:pointer;
width: 238px; width: 238px;
height: 37px; height: 37px;
...@@ -349,6 +351,7 @@ export default { ...@@ -349,6 +351,7 @@ export default {
} }
} }
.suggest{ .suggest{
display: inline-block;
cursor:pointer; cursor:pointer;
width: 238px; width: 238px;
color: #449284; color: #449284;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<el-radio-button label="5">已取消({{currentCalList}})</el-radio-button> <el-radio-button label="5">已取消({{currentCalList}})</el-radio-button>
</el-radio-group> </el-radio-group>
<div class="forbox"> <div class="forbox">
<div class="for" v-for="(item, index) in list" :key="'for'+index"> <div class="for" v-for="(item, index) in currentDiagList" :key="'for'+index">
<inquiryList-component :item="item"></inquiryList-component> <inquiryList-component :item="item"></inquiryList-component>
</div> </div>
</div> </div>
...@@ -44,13 +44,14 @@ ...@@ -44,13 +44,14 @@
:total="totalRows"> :total="totalRows">
</el-pagination> </el-pagination>
</el-row> </el-row>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { mapState } from "vuex"; import { mapState } from "vuex";
import InquiryListComponent from '../../../components/common/inquirylist.vue'; import InquiryListComponent from '../../../components/common/inquirylist.vue';
import store from "../../../store";
export default { export default {
components: { components: {
InquiryListComponent InquiryListComponent
...@@ -83,7 +84,7 @@ export default { ...@@ -83,7 +84,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": "",
...@@ -92,7 +93,7 @@ export default { ...@@ -92,7 +93,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,
...@@ -136,6 +137,13 @@ export default { ...@@ -136,6 +137,13 @@ export default {
this.soketQuest.returnStatus = val this.soketQuest.returnStatus = val
this.soketQuest.pageNo = 1 this.soketQuest.pageNo = 1
this.search() this.search()
// 测试代码
const l = this.currentDiagList;
console.log('--l----', l)
l.push(...this.list);
console.log('--l', l)
this.$store.commit('updateCurrentDiagList', l);
}, },
changeDatetime(val) { changeDatetime(val) {
this.soketQuest.dateTime = val.toLocaleDateString().split('/').join('-') this.soketQuest.dateTime = val.toLocaleDateString().split('/').join('-')
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册