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

Merge branch 'feat/zl' into 'develop'

Feat/zl

See merge request !116
......@@ -1308,6 +1308,7 @@
"resolved": "http://192.168.110.93:4873/boom/-/boom-2.10.1.tgz",
"integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
"dev": true,
"optional": true,
"requires": {
"hoek": "2.x.x"
}
......@@ -2099,6 +2100,11 @@
}
}
},
"dayjs": {
"version": "1.10.6",
"resolved": "http://192.168.110.93:4873/dayjs/-/dayjs-1.10.6.tgz",
"integrity": "sha1-KIsqqC8thBimydTfWJjAc3rQKmM="
},
"de-indent": {
"version": "1.0.2",
"resolved": "http://192.168.110.93:4873/de-indent/-/de-indent-1.0.2.tgz",
......@@ -2831,7 +2837,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
......@@ -2852,12 +2859,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -2872,17 +2881,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -2999,7 +3011,8 @@
"inherits": {
"version": "2.0.4",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -3011,6 +3024,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -3025,6 +3039,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
......@@ -3032,12 +3047,14 @@
"minimist": {
"version": "1.2.5",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.9.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -3056,6 +3073,7 @@
"version": "0.5.3",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "^1.2.5"
}
......@@ -3117,7 +3135,8 @@
"npm-normalize-package-bin": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"npm-packlist": {
"version": "1.4.8",
......@@ -3145,7 +3164,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -3157,6 +3177,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -3234,7 +3255,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -3270,6 +3292,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -3289,6 +3312,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -3332,12 +3356,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},
......@@ -3718,7 +3744,8 @@
"version": "2.16.3",
"resolved": "http://192.168.110.93:4873/hoek/-/hoek-2.16.3.tgz",
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
"dev": true
"dev": true,
"optional": true
},
"home-or-tmp": {
"version": "2.0.0",
......
......@@ -8,7 +8,7 @@
</p>
<span>{{ diagnoseType }}</span>
</div>
<div class="time-message ml10">
<div class="time-message ml10" v-if="currentChat.diagnoseType != 3">
<p class="msg-img"> <img :src="im_time" alt /></p>
<p>设定时长: {{ time }}分钟 &nbsp;&nbsp;</p>
<p v-if="startTime && endTime">总时长: {{ useTime }}&nbsp;&nbsp;</p>
......@@ -144,10 +144,8 @@ export default {
return '语音问诊'
case 2:
return '视频问诊'
break;
case 3:
return '图文问诊'
break;
default:
return''
}
......@@ -295,6 +293,10 @@ export default {
},
// 创建trtcClient
clientLogin() {
if(Number(this.currentChat.diagnoseType) === 3){
console.log('问诊类型', this.currentChat.diagnoseType);
return false;
}
let obj = {
roomId: this.roomId,
role: this.roleAnchor,
......@@ -303,7 +305,6 @@ export default {
userSig: this.userSig,
vueInstance: this,
};
console.log('---obj', obj);
this.rtc = new RtcClient(obj);
window.rtc = this.rtc;
this.$nextTick(() => {
......@@ -486,6 +487,7 @@ export default {
},
// client离开房间
leave() {
this.muteLocalAudio();
this.rtc.leave();
this.clearSession();
window.location.href = "about:blank";
......@@ -568,6 +570,7 @@ export default {
clearInterval(this.answerTimeFn);
clearInterval(this.useTimeFn);
clearInterval(this.loseTimeFn);
this.isMuted = true;
},
// 清除直播时间相关的seession
clearSession() {
......@@ -779,5 +782,4 @@ export default {
margin: 15px auto 6%;
}
}
</style>
......@@ -59,16 +59,12 @@
</el-form-item>
<el-form-item label="接诊意向时间">
<el-col :span="15">
<el-date-picker
v-model="rangeTime"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions1"
style="width: 100%;">
</el-date-picker>
<div @click="openDiagnosisStartTimeDialog" class="set-width grey-bg" style="width: 100%;">
<i class="el-icon-alarm-clock"></i>
<span v-if="startTimeValue === ''">接诊开始时间</span>
<span v-else>{{dayFormat(startTimeValue)}}--{{endTimeValue}}</span>
</div>
</el-col>
</el-form-item>
......@@ -79,11 +75,44 @@
<el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span>
</el-dialog>
<el-dialog
title="问诊开始时间"
:visible.sync="diagnosisStartTimeDialog" @close="cancelDiagnosisStartTimeDialog"
@open="openDiagnosisStartTimeDialog"
>
<div class="startTime-wrap">
<div class="date-wrap">
<el-date-picker
popper-class="scale-datepicker"
size="large"
v-model="startTimeValue"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</div>
<div class="time-wrap">
<span>问诊时长:</span>
<div class="time-range">
<el-radio-group v-model="timeRange">
<el-radio border size="large" :label="10">10分钟</el-radio>
<el-radio border size="medium" :label="15">15分钟</el-radio>
<el-radio border size="medium" :label="20">20分钟</el-radio>
<el-radio border size="medium" :label="30">30分钟</el-radio>
</el-radio-group>
</div>
</div>
</div>
<div class="startTime-footer" style="text-align: center;">
<el-button @click="cancelDiagnosisStartTimeDialog">取 消</el-button>
<el-button type="primary" @click="startTimeConfirm" :disabled="isClick">确定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {updateDiagnosis} from "../../utils/diagnosis";
import dayjs from 'dayjs'
let vm = null;
export default {
props: {
......@@ -133,17 +162,6 @@ export default {
outsideDoctor: [
{required: true, message: "请输入外部医生姓名", trigger: 'blur'}
],
// rangeTime: [
// {
// type: 'array',
// required: true,
// trigger: 'change',
// fields: {
// 0: {required: true, type: 'date', message: "开始时间不能为空"},
// 1: {required: true, type: 'date', message: '结束时间不能为空'}
// }
// }
// ]
},
pickerOptions1: {
disabledDate: time => {
......@@ -152,6 +170,10 @@ export default {
); //减去一天的时间代表可以选择同一天;
}
},
diagnosisStartTimeDialog: false,
startTimeValue: '',
endTimeValue:'',
timeRange:''
}
},
created() {
......@@ -173,16 +195,12 @@ export default {
this.formData.receptionId = this.doctorId;
this.doctorChanged(this.doctorId);
}
}
},
},
methods: {
confirm() {
this.$refs.setForm.validate((valid) => {
if (valid) {
// if(!(this.rangeTime != null && this.rangeTime.length > 0)){
// vm.$message.warning("请选择接诊意向时间");
// return;
// }
let req = null;
if(this.formData.receptionName == "站外医生" || this.formData.receptionName == "云鹊医助"){
this.formData.innerFlag = 2;// 外部
......@@ -205,8 +223,10 @@ export default {
innerFlag:this.formData.innerFlag,
receptionId:this.formData.receptionId,
receptionName:this.formData.receptionName,
receptionBeginTime:this.rangeTime[0],
receptionEndTime:this.rangeTime[1],
// receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1],
receptionBeginTime: this.dayFormat(this.startTimeValue),
receptionEndTime:this.endTimeValue,
}
}
vm.isClick = true
......@@ -228,6 +248,9 @@ export default {
cancel(){
this.doctorId = "";
this.formData.outsideDoctor = '';
this.startTimeValue = '';
this.endTimeValue = '';
this.timeRange = '';
this.$emit('update:diagnosisDoctorVisible', false);
},
opendialog() {
......@@ -268,13 +291,66 @@ export default {
this.$message.info('请稍后重试')
});
},
openDiagnosisStartTimeDialog (){
this.diagnosisStartTimeDialog = true;
},
cancelDiagnosisStartTimeDialog () {
this.diagnosisStartTimeDialog = false;
},
startTimeConfirm() {
if(String(this.startTimeValue).trim() === '' || String(this.timeRange).trim() === ''){
this.$message({
message: "请选择接诊开始时间",
type: "warning",
duration: 1000,
});
return false;
}
this.endTimeValue = dayjs(this.startTimeValue).add(this.timeRange, 'minute').format('YYYY-MM-DD HH:mm:ss');
this.diagnosisStartTimeDialog = false;
},
dayFormat (v){
return dayjs(v).format('YYYY-MM-DD HH:mm:ss');
}
}
}
</script>
<style lang="scss" scoped>
<style lang="scss">
.set-width {
width: 300px;
}
.grey-bg{
padding: 0px 15px;
//background-color: #F5F7FA;
color: rgb(96, 98, 102);
cursor: not-allowed;
height: 28px;
line-height: 28px;
border-radius: 4px;
border: 1px solid #DCDFE6;
font-size: 12px;
}
.startTime-wrap{
display: flex;
justify-content: space-around;
.time-wrap{
display: flex;
align-items: baseline;
.time-range{
margin-left: 10px;
}
}
}
.startTime-footer{
margin-top: 100px;
padding-bottom: 50px;
}
.scale-datepicker{
transform: scale(1.3);
top: 289px!important;
}
</style>
......@@ -3,11 +3,11 @@
*/
export const envConfig = {
development: {
baseUrl: 'https://dev-sc.yunqueyi.com',
// baseUrl: 'https://dev-sc.yunqueyi.com',
// // baseUrl: 'http://10.177.15.180:10202/',
// // baseUrl: 'http://192.168.140.14:10201/',
// baseUrl: 'https://test1-sc.yunqueyi.com',
baseUrl: 'https://test1-sc.yunqueyi.com',
// baseUrl: 'https://uat-sc.yunqueyi.com',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册