提交 4871e4dd 编写于 作者: lyf's avatar lyf

修改代码格式

上级 a8f0fe81
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover">
<!-- 打开和关闭DNS预读取 --> <!-- 打开和关闭DNS预读取 -->
<meta http-equiv="x-dns-prefetch-control" content="on"> <meta http-equiv="x-dns-prefetch-control" content="on">
<!-- <meta content="never" name="referrer"/> --> <meta content="never" name="referrer"/>
<!-- 强制查询特定主机名 --> <!-- 强制查询特定主机名 -->
<link rel="dns-prefetch" href="<%= process.env.VUE_APP_SERVICE_URL %>"> <link rel="dns-prefetch" href="<%= process.env.VUE_APP_SERVICE_URL %>">
<link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png"> <link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png">
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="接诊医生" label="接诊医生"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
filterable filterable
placeholder="请选择接诊医生" placeholder="请选择接诊医生"
class="set-width" class="set-width"
style="width: 100%;" style="width: 100%"
@change="doctorChanged($event)" @change="doctorChanged($event)"
> >
<el-option <el-option
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
placeholder="请选择职称" placeholder="请选择职称"
class="set-width" class="set-width"
disabled disabled
style="width: 100%;" style="width: 100%"
/> />
<!-- <el-select v-model="formData.doctorTitle" placeholder="请选择职称" disabled class="set-width"> <!-- <el-select v-model="formData.doctorTitle" placeholder="请选择职称" disabled class="set-width">
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
placeholder="请选择机构" placeholder="请选择机构"
class="set-width" class="set-width"
disabled disabled
style="width: 100%;" style="width: 100%"
/> />
</el-col> </el-col>
<!-- <el-select v-model="formData.doctorHospital" placeholder="请选择机构" disabled class="set-width"> <!-- <el-select v-model="formData.doctorHospital" placeholder="请选择机构" disabled class="set-width">
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
placeholder="请选择机构" placeholder="请选择机构"
class="set-width" class="set-width"
disabled disabled
style="width: 100%;" style="width: 100%"
/> />
<!-- <el-select v-model="formData.doctorDepartment" placeholder="请选择科室" disabled class="set-width"> <!-- <el-select v-model="formData.doctorDepartment" placeholder="请选择科室" disabled class="set-width">
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
...@@ -90,12 +90,15 @@ ...@@ -90,12 +90,15 @@
placeholder="请输入接诊医生手机号" placeholder="请输入接诊医生手机号"
disabled disabled
class="set-width" class="set-width"
style="width: 100%;" style="width: 100%"
/> />
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="formData.receptionName == '站外医生' || formData.receptionName == '云鹊医助'" v-if="
formData.receptionName == '站外医生' ||
formData.receptionName == '云鹊医助'
"
label="外部医生姓名" label="外部医生姓名"
class="required-label" class="required-label"
prop="outsideDoctor" prop="outsideDoctor"
...@@ -105,7 +108,7 @@ ...@@ -105,7 +108,7 @@
v-model="formData.outsideDoctor" v-model="formData.outsideDoctor"
placeholder="请输入外部医生姓名" placeholder="请输入外部医生姓名"
class="set-width" class="set-width"
style="width: 135%;" style="width: 135%"
/> />
</el-col> </el-col>
</el-form-item> </el-form-item>
...@@ -116,12 +119,15 @@ ...@@ -116,12 +119,15 @@
<el-col :span="15"> <el-col :span="15">
<div <div
class="set-width grey-bg" class="set-width grey-bg"
style="width: 100%;" style="width: 100%"
@click="openDiagnosisStartTimeDialog" @click="openDiagnosisStartTimeDialog"
> >
<i class="el-icon-alarm-clock" /> <i class="el-icon-alarm-clock" />
<span v-if="startTimeValue === ''">请选择问诊时间</span> <span v-if="startTimeValue === ''">请选择问诊时间</span>
<span v-else>{{ dayFormatWithoutSecond(startTimeValue) }} -- {{ dayFormatWithoutSecond(endTimeValue) }}</span> <span
v-else
>{{ dayFormatWithoutSecond(startTimeValue) }} --
{{ dayFormatWithoutSecond(endTimeValue) }}</span>
</div> </div>
</el-col> </el-col>
</el-form-item> </el-form-item>
...@@ -134,7 +140,7 @@ ...@@ -134,7 +140,7 @@
<el-radio-group <el-radio-group
v-model="formData.diagnoseChannel" v-model="formData.diagnoseChannel"
size="small" size="small"
style="line-height: 45px;width: 135%;" style="line-height: 45px; width: 135%"
> >
<el-radio :label="1"> <el-radio :label="1">
APP问诊(系统发起问诊) APP问诊(系统发起问诊)
...@@ -150,7 +156,7 @@ ...@@ -150,7 +156,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button <el-button
type="primary" type="primary"
...@@ -239,7 +245,7 @@ ...@@ -239,7 +245,7 @@
</div> </div>
<div <div
class="startTime-footer" class="startTime-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="startTimeConfirm('cancel')"> <el-button @click="startTimeConfirm('cancel')">
取 消 取 消
...@@ -257,7 +263,7 @@ ...@@ -257,7 +263,7 @@
</template> </template>
<script> <script>
import {updateDiagnosis} from '../../utils/diagnosis'; import { updateDiagnosis } from '../../utils/diagnosis';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { getDoctorList } from '@/api/diagnosis'; import { getDoctorList } from '@/api/diagnosis';
...@@ -266,19 +272,19 @@ ...@@ -266,19 +272,19 @@
props: { props: {
diagnosisDoctorVisible: { diagnosisDoctorVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
diagnoseType: { diagnoseType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
doctorId: { doctorId: {
type: Number | String, type: [Number, String],
default: 0 default: 0,
}, },
}, },
data() { data() {
...@@ -287,64 +293,60 @@ ...@@ -287,64 +293,60 @@
title: '设置接诊医生', title: '设置接诊医生',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
isClick: false, isClick: false,
formData:{ formData: {
receptionId:this.doctorId, receptionId: this.doctorId,
receptionName:'', receptionName: '',
doctorTitle:'', doctorTitle: '',
doctorHospital:'', doctorHospital: '',
doctorDepartment:'', doctorDepartment: '',
doctorMobile:'', doctorMobile: '',
outsideDoctor:'', outsideDoctor: '',
innerFlag:1, innerFlag: 1,
receptionBeginTime:'', receptionBeginTime: '',
receptionEndTime:'', receptionEndTime: '',
bizType:'', bizType: '',
diagnoseChannel:1, diagnoseChannel: 1,
}, },
doctorList:[], doctorList: [],
sessionDoctorList:[], sessionDoctorList: [],
inNewTime:'', inNewTime: '',
inNewTimeObj:{}, inNewTimeObj: {},
rangeTime:'', rangeTime: '',
listKey:'', listKey: '',
addRules:{ addRules: {
receptionId: [ receptionId: [
{required: true, message: '请选择接诊医生', trigger: 'change'} { required: true, message: '请选择接诊医生', trigger: 'change' },
], ],
outsideDoctor: [ outsideDoctor: [
{required: true, message: '请输入外部医生姓名', trigger: 'blur'} { required: true, message: '请输入外部医生姓名', trigger: 'blur' },
], ],
diagnoseChannel: [ diagnoseChannel: [
{required: true, message: '请选择问诊方式', trigger: 'change'} { required: true, message: '请选择问诊方式', trigger: 'change' },
], ],
}, },
pickerOptions1: { pickerOptions1: {
disabledDate: time => { disabledDate: (time) => {
return ( return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000; // 减去一天的时间代表可以选择同一天;
time.getTime() < Date.now() - 1 * 24 * 3600 * 1000 },
); // 减去一天的时间代表可以选择同一天;
}
}, },
diagnosisStartTimeDialog: false, diagnosisStartTimeDialog: false,
startTimeValue: '', startTimeValue: '',
endTimeValue:'', endTimeValue: '',
timeRange:'' timeRange: '',
}; };
}, },
watch:{ watch: {
diagnoseType:function () { diagnoseType: function () {
this.getDoctorList(); this.getDoctorList();
}, },
doctorId:function () { doctorId: function () {
if(this.doctorId == 0 || this.doctorId == null) { if (this.doctorId == 0 || this.doctorId == null) {
this.formData.receptionId = ''; this.formData.receptionId = '';
if(this.$refs.setForm) { if (this.$refs.setForm) {
this.$refs.setForm.resetFields(); this.$refs.setForm.resetFields();
} }
} } else {
else {
this.formData.receptionId = this.doctorId; this.formData.receptionId = this.doctorId;
this.doctorChanged(this.doctorId); this.doctorChanged(this.doctorId);
} }
...@@ -357,7 +359,7 @@ ...@@ -357,7 +359,7 @@
methods: { methods: {
confirm() { confirm() {
this.$refs.setForm.validate((valid) => { this.$refs.setForm.validate((valid) => {
if(!this.startTimeValue || !this.endTimeValue) { if (!this.startTimeValue || !this.endTimeValue) {
this.$message({ this.$message({
message: '请选择问诊时间', message: '请选择问诊时间',
type: 'warning', type: 'warning',
...@@ -367,49 +369,53 @@ ...@@ -367,49 +369,53 @@
} }
if (valid) { if (valid) {
let req = null; let req = null;
if(this.formData.receptionName == '站外医生' || this.formData.receptionName == '云鹊医助') { if (
this.formData.innerFlag = 2;// 外部 this.formData.receptionName == '站外医生' ||
this.formData.receptionName == '云鹊医助'
) {
this.formData.innerFlag = 2; // 外部
req = { req = {
id:this.diagnoseLogId, id: this.diagnoseLogId,
bizType:9, bizType: 9,
innerFlag:this.formData.innerFlag, innerFlag: this.formData.innerFlag,
receptionId:this.formData.receptionId, receptionId: this.formData.receptionId,
receptionName:this.formData.receptionName, receptionName: this.formData.receptionName,
outsideDoctor:this.formData.outsideDoctor, outsideDoctor: this.formData.outsideDoctor,
// receptionBeginTime:this.rangeTime[0], // receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1], // receptionEndTime:this.rangeTime[1],
receptionBeginTime: this.dayFormat(this.startTimeValue), receptionBeginTime: this.dayFormat(this.startTimeValue),
receptionEndTime:this.endTimeValue, receptionEndTime: this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel diagnoseChannel: this.formData.diagnoseChannel,
}; };
} } else {
else { this.formData.innerFlag = 1; // 内部
this.formData.innerFlag = 1;// 内部
req = { req = {
id:this.diagnoseLogId, id: this.diagnoseLogId,
bizType:9, bizType: 9,
innerFlag:this.formData.innerFlag, innerFlag: this.formData.innerFlag,
receptionId:this.formData.receptionId, receptionId: this.formData.receptionId,
receptionName:this.formData.receptionName, receptionName: this.formData.receptionName,
// receptionBeginTime:this.rangeTime[0], // receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1], // receptionEndTime:this.rangeTime[1],
receptionBeginTime: this.dayFormat(this.startTimeValue), receptionBeginTime: this.dayFormat(this.startTimeValue),
receptionEndTime:this.endTimeValue, receptionEndTime: this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel diagnoseChannel: this.formData.diagnoseChannel,
}; };
} }
vm.isClick = true; vm.isClick = true;
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
.then(function (res) {
vm.isClick = false; vm.isClick = false;
if(res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
.catch(function (err) {
vm.isClick = false; vm.isClick = false;
vm.$message.error(res.message); vm.$message.error(err.message);
}); });
} }
}); });
...@@ -438,7 +444,7 @@ ...@@ -438,7 +444,7 @@
this.doctorChanged(this.doctorId); this.doctorChanged(this.doctorId);
}, },
doctorChanged(value) { doctorChanged(value) {
const selected = this.doctorList.find(item => item.doctorId === value); const selected = this.doctorList.find((item) => item.doctorId === value);
if (selected) { if (selected) {
this.formData.receptionId = value; this.formData.receptionId = value;
this.formData.receptionName = selected.doctorName; this.formData.receptionName = selected.doctorName;
...@@ -457,11 +463,11 @@ ...@@ -457,11 +463,11 @@
if (sessionList) { if (sessionList) {
this.doctorList = this.sessionDoctorList; this.doctorList = this.sessionDoctorList;
this.doctorChanged(this.formData.receptionId); this.doctorChanged(this.formData.receptionId);
} else {
}else {
getDoctorList({ getDoctorList({
diagnoseType:this.diagnoseType diagnoseType: this.diagnoseType,
}).then(res => { })
.then((res) => {
this.loading = false; this.loading = false;
if (res.code == '000000') { if (res.code == '000000') {
this.doctorList = res.data; this.doctorList = res.data;
...@@ -470,24 +476,25 @@ ...@@ -470,24 +476,25 @@
} else { } else {
this.$message.info('请稍后重试'); this.$message.info('请稍后重试');
} }
}).catch(() => { })
.catch(() => {
this.loading = false; this.loading = false;
this.$message.info('请稍后重试'); this.$message.info('请稍后重试');
}); });
} }
}, },
openDiagnosisStartTimeDialog () { openDiagnosisStartTimeDialog() {
this.diagnosisStartTimeDialog = true; this.diagnosisStartTimeDialog = true;
}, },
startTimeConfirm(isCancle) { startTimeConfirm(isCancle) {
console.log('isCancle-', isCancle); console.log('isCancle-', isCancle);
if(isCancle == 'cancel') { if (isCancle == 'cancel') {
this.startTimeValue = ''; this.startTimeValue = '';
this.endTimeValue = ''; this.endTimeValue = '';
this.timeRange = ''; this.timeRange = '';
} }
if(isCancle == 'submit') { if (isCancle == 'submit') {
if(String(this.startTimeValue).trim() === '' || !this.startTimeValue) { if (String(this.startTimeValue).trim() === '' || !this.startTimeValue) {
this.$message({ this.$message({
message: '请选择问诊开始时间', message: '请选择问诊开始时间',
type: 'warning', type: 'warning',
...@@ -495,7 +502,7 @@ ...@@ -495,7 +502,7 @@
}); });
return false; return false;
} }
if(String(this.timeRange).trim() === '') { if (String(this.timeRange).trim() === '') {
this.$message({ this.$message({
message: '请选择问诊时长', message: '请选择问诊时长',
type: 'warning', type: 'warning',
...@@ -503,33 +510,39 @@ ...@@ -503,33 +510,39 @@
}); });
return false; return false;
} }
this.endTimeValue = dayjs(this.startTimeValue).add(this.timeRange, 'minute').format('YYYY-MM-DD HH:mm:ss'); this.endTimeValue = dayjs(this.startTimeValue)
.add(this.timeRange, 'minute')
.format('YYYY-MM-DD HH:mm:ss');
} }
this.diagnosisStartTimeDialog = false; this.diagnosisStartTimeDialog = false;
}, },
dayFormat (v) { dayFormat(v) {
return dayjs(v).format('YYYY-MM-DD HH:mm:ss'); return dayjs(v).format('YYYY-MM-DD HH:mm:ss');
}, },
dayFormatWithoutSecond (v) { dayFormatWithoutSecond(v) {
if(!v) { if (!v) {
return ''; return '';
} }
return dayjs(v).format('YYYY-MM-DD HH:mm'); return dayjs(v).format('YYYY-MM-DD HH:mm');
}, },
timeRangeChange (v) { timeRangeChange(v) {
if(this.startTimeValue && v) { if (this.startTimeValue && v) {
this.endTimeValue = dayjs(this.startTimeValue).add(v, 'minute').format('YYYY-MM-DD HH:mm:ss'); this.endTimeValue = dayjs(this.startTimeValue)
.add(v, 'minute')
.format('YYYY-MM-DD HH:mm:ss');
} }
}, },
startTimeChange (v) { startTimeChange(v) {
if(!v) { if (!v) {
this.endTimeValue = ''; this.endTimeValue = '';
} }
if(this.timeRange && v) { if (this.timeRange && v) {
this.endTimeValue = dayjs(v).add(this.timeRange, 'minute').format('YYYY-MM-DD HH:mm:ss'); this.endTimeValue = dayjs(v)
} .add(this.timeRange, 'minute')
} .format('YYYY-MM-DD HH:mm:ss');
} }
},
},
}; };
</script> </script>
...@@ -537,40 +550,39 @@ ...@@ -537,40 +550,39 @@
.set-width { .set-width {
width: 300px; width: 300px;
} }
.grey-bg{ .grey-bg {
padding: 0px 15px; padding: 0px 15px;
color: rgb(96, 98, 102); color: rgb(96, 98, 102);
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #DCDFE6; border: 1px solid #dcdfe6;
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
} }
.startTime-wrap{ .startTime-wrap {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
.time-wrap{ .time-wrap {
display: flex; display: flex;
align-items: end; align-items: end;
.time-range{ .time-range {
margin-left: 10px; margin-left: 10px;
.mt20{ .mt20 {
margin-top: 20px; margin-top: 20px;
} }
} }
} }
.date-wrap{ .date-wrap {
display: inline-block; display: inline-block;
} }
} }
.startTime-footer{ .startTime-footer {
margin-top: 100px; margin-top: 100px;
padding-bottom: 50px; padding-bottom: 50px;
} }
.scale-datepicker{ .scale-datepicker {
transform: scale(1.3); transform: scale(1.3);
top: 289px!important; top: 289px !important;
} }
</style> </style>
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
:visible.sync="diagnosisTimeVisible" :visible.sync="diagnosisTimeVisible"
@close="cancel" @close="cancel"
> >
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="助诊意向时间" label="助诊意向时间"
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:picker-options="pickerOptions1" :picker-options="pickerOptions1"
style="width: 135%;" style="width: 135%"
/> />
</el-col> </el-col>
</el-form-item> </el-form-item>
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
<el-input <el-input
v-model="model.assistantRemark" v-model="model.assistantRemark"
type="textarea" type="textarea"
style="width: 135%;" style="width: 135%"
size="small" size="small"
minlength="2" minlength="2"
maxlength="500" maxlength="500"
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -67,21 +66,21 @@ ...@@ -67,21 +66,21 @@
</template> </template>
<script> <script>
import {updateDiagnosis} from '../../utils/diagnosis'; import { updateDiagnosis } from '../../utils/diagnosis';
let vm = null; let vm = null;
export default { export default {
props: { props: {
diagnosisTimeVisible: { diagnosisTimeVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
bizType: { bizType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
}, },
data() { data() {
...@@ -97,10 +96,9 @@ ...@@ -97,10 +96,9 @@
title: '设置时间', title: '设置时间',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
isClick: false, isClick: false,
model: { model: {
assistantRemark: '' assistantRemark: '',
}, },
rangeTime: '', rangeTime: '',
addRules: { addRules: {
...@@ -113,18 +111,16 @@ ...@@ -113,18 +111,16 @@
// validator: checkDate, // validator: checkDate,
trigger: 'change', trigger: 'change',
fields: { fields: {
0: {required: true, type: 'date', message: '开始时间不能为空'}, 0: { required: true, type: 'date', message: '开始时间不能为空' },
1: {required: true, type: 'date', message: '结束时间不能为空'} 1: { required: true, type: 'date', message: '结束时间不能为空' },
} },
} },
] ],
}, },
pickerOptions1: { pickerOptions1: {
disabledDate: time => { disabledDate: (time) => {
return ( return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000; // 减去一天的时间代表可以选择同一天;
time.getTime() < Date.now() - 1 * 24 * 3600 * 1000 },
); // 减去一天的时间代表可以选择同一天;
}
}, },
}; };
}, },
...@@ -135,42 +131,40 @@ ...@@ -135,42 +131,40 @@
confirm() { confirm() {
// this.$refs.setForm.validate((valid) => { // this.$refs.setForm.validate((valid) => {
// if (valid) { // if (valid) {
if(!(this.rangeTime != null && this.rangeTime.length > 0)) { if (!(this.rangeTime != null && this.rangeTime.length > 0)) {
vm.$message.warning('请选择助诊意向时间'); vm.$message.warning('请选择助诊意向时间');
return; return;
} }
vm.isClick = true; vm.isClick = true;
const req = { const req = {
id:this.diagnoseLogId, id: this.diagnoseLogId,
bizType:this.bizType, bizType: this.bizType,
assistantBeginTime:this.rangeTime[0], assistantBeginTime: this.rangeTime[0],
assistantEndTime:this.rangeTime[1], assistantEndTime: this.rangeTime[1],
assistantRemark:this.model.assistantRemark assistantRemark: this.model.assistantRemark,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
.then(function (res) {
vm.isClick = false; vm.isClick = false;
if(res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
.catch(function (err) {
vm.isClick = false; vm.isClick = false;
vm.$message.error(res.message); vm.$message.error(err.message);
}); });
// }
// })
}, },
cancel() { cancel() {
this.rangeTime = ''; this.rangeTime = '';
this.model.assistantRemark = ''; this.model.assistantRemark = '';
this.$emit('update:diagnosisTimeVisible', false); this.$emit('update:diagnosisTimeVisible', false);
} },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -62,16 +62,19 @@ ...@@ -62,16 +62,19 @@
<script> <script>
export default { export default {
props:[ props: {
'diagnosisVisible' diagnosisVisible: {
], type: Boolean,
default: false,
},
},
data() { data() {
return { return {
show: false, show: false,
title: '设置预约时间(问诊时间)', title: '设置预约时间(问诊时间)',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, returnPromise: null,
model:{ model:{
userName:'', userName:'',
title:'' title:''
...@@ -97,13 +100,13 @@ ...@@ -97,13 +100,13 @@
this.title = ''; this.title = '';
this.confirmTxt = '确定'; this.confirmTxt = '确定';
this.cancleTxt = ''; this.cancleTxt = '';
this._promise = null; this.returnPromise = null;
}, },
init(obj = {}) { init(obj = {}) {
Object.assign(this, obj); Object.assign(this, obj);
this.show = true; this.show = true;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this._promise = { this.returnPromise = {
resolve, resolve,
reject reject
}; };
...@@ -111,12 +114,12 @@ ...@@ -111,12 +114,12 @@
}, },
async cancle() { async cancle() {
this.show = false; this.show = false;
await this._promise.reject && this._promise.reject(); await this.returnPromise.reject && this.returnPromise.reject();
this.reset(); this.reset();
}, },
async confirm() { async confirm() {
this.show = false; this.show = false;
await this._promise.resolve && this._promise.resolve(); await this.returnPromise.resolve && this.returnPromise.resolve();
this.reset(); this.reset();
}, },
hide() { hide() {
......
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
title: '设为稍后跟进', title: '设为稍后跟进',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
model:{ model:{
toFollowReason:'' toFollowReason:''
}, },
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
}; };
}, },
watch:{ watch:{
toFollowReason(newdata, olddata) { toFollowReason(newdata) {
this.model.toFollowReason = newdata; this.model.toFollowReason = newdata;
} }
...@@ -115,7 +114,7 @@ ...@@ -115,7 +114,7 @@
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.$message.error(res.message); vm.$message.error(error.message);
}); });
} }
}); });
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
:visible.sync="matchVisible" :visible.sync="matchVisible"
@close="cancel" @close="cancel"
> >
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="运营名称" label="运营名称"
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
placeholder="请选择运营名称" placeholder="请选择运营名称"
filterable filterable
clearable clearable
style="width:110%;height: 32px;line-height: 32px;" style="width: 110%; height: 32px; line-height: 32px"
@change="changeOperator" @change="changeOperator"
> >
<el-option <el-option
...@@ -40,11 +39,10 @@ ...@@ -40,11 +39,10 @@
</el-col> </el-col>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- </el-row>-->
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -63,25 +61,27 @@ ...@@ -63,25 +61,27 @@
let vm = null; let vm = null;
export default { export default {
props: { props: {
matchVisible:{ matchVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
multipleSelection: { multipleSelection: {
type: Array, type: Array,
default: [], default: () => {
return [];
}, },
batchFlag:{ },
batchFlag: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
operateUserID: { operateUserID: {
type: String | Number, type: [String, Number],
default: '' default: '',
}, },
}, },
data() { data() {
...@@ -90,41 +90,37 @@ ...@@ -90,41 +90,37 @@
title: '匹配运营', title: '匹配运营',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, model: {
model:{ operatorName: '',
operatorName:'', operatorId: '',
operatorId:''
}, },
adminList:'', adminList: '',
addRules:{ addRules: {
operatorId: [ operatorId: [
{required: true, message: '请选择运营人员', trigger: 'change'} { required: true, message: '请选择运营人员', trigger: 'change' },
] ],
} },
}; };
}, },
watch:{ watch: {
operateUserID:function () { operateUserID: function () {
if (!this.batchFlag) {
if(!this.batchFlag) { if (this.operateUserID == 0 || this.operateUserID == null) {
if(this.operateUserID == 0 || this.operateUserID == null) {
this.model.operatorId = ''; this.model.operatorId = '';
if(this.$refs.setForm) { if (this.$refs.setForm) {
this.$refs.setForm.resetFields(); this.$refs.setForm.resetFields();
} }
} } else {
else {
this.model.operatorId = this.operateUserID; this.model.operatorId = this.operateUserID;
this.changeOperator(this.operateUserID); this.changeOperator(this.operateUserID);
} }
}
} }
}, },
},
created() { created() {
vm = this; vm = this;
this.getAdminList(); this.getAdminList();
if(this.batchFlag) { if (this.batchFlag) {
this.title = '批量设置运营'; this.title = '批量设置运营';
} }
}, },
...@@ -138,16 +134,18 @@ ...@@ -138,16 +134,18 @@
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: 1, bizType: 1,
operatorId: this.model.operatorId, operatorId: this.model.operatorId,
operatorName: this.model.operatorName operatorName: this.model.operatorName,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
.then(function (res) {
if (res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
.catch(function (error) {
vm.$message.error(error); vm.$message.error(error);
}); });
} }
...@@ -162,16 +160,18 @@ ...@@ -162,16 +160,18 @@
const req = { const req = {
ids: ids, ids: ids,
operatorId: this.model.operatorId, operatorId: this.model.operatorId,
operatorName: this.model.operatorName operatorName: this.model.operatorName,
}; };
batchSetOperator(req).then(function (res) { batchSetOperator(req)
.then(function (res) {
if (res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
.catch(function (error) {
vm.$message.error(error); vm.$message.error(error);
}); });
} }
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
}, },
getAdminList() { getAdminList() {
this.loading = true; this.loading = true;
operatorQuery().then(res => { operatorQuery().then((res) => {
this.loading = false; this.loading = false;
if (res.code == '000000') { if (res.code == '000000') {
this.adminList = res.data; this.adminList = res.data;
...@@ -194,17 +194,14 @@ ...@@ -194,17 +194,14 @@
}, },
changeOperator(data) { changeOperator(data) {
for (let i = 0; i < this.adminList.length; i++) { for (let i = 0; i < this.adminList.length; i++) {
if(data == this.adminList[i].id) { if (data == this.adminList[i].id) {
this.model.operatorName = this.adminList[i].name; this.model.operatorName = this.adminList[i].name;
break; break;
} }
} }
} },
},
}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="分诊科室" label="分诊科室"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
placeholder="请选择分诊科室" placeholder="请选择分诊科室"
clearable clearable
filterable filterable
style="width:56%;height: 32px;line-height: 32px;" style="width: 56%; height: 32px; line-height: 32px"
@change="change" @change="change"
> >
<el-option <el-option
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<el-input <el-input
v-model="model.triageRemark" v-model="model.triageRemark"
type="textarea" type="textarea"
style="width: 90%;" style="width: 90%"
size="small" size="small"
minlength="2" minlength="2"
maxlength="500" maxlength="500"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -69,25 +69,25 @@ ...@@ -69,25 +69,25 @@
</template> </template>
<script> <script>
import {updateDiagnosis, getDepList} from '../../utils/diagnosis'; import { updateDiagnosis, getDepList } from '../../utils/diagnosis';
let vm = null; let vm = null;
export default { export default {
props: { props: {
doctorVisible: { doctorVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
bizType: { bizType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
triageDepartmentId: { triageDepartmentId: {
type: Number | String, type: [Number, String],
default: 0 default: 0,
}, },
}, },
data() { data() {
...@@ -96,33 +96,31 @@ ...@@ -96,33 +96,31 @@
title: '设置分诊科室', title: '设置分诊科室',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
depList: [], depList: [],
model: { model: {
triageRemark: '', triageRemark: '',
triageDepartmentId: '', triageDepartmentId: '',
triageDepartment:'' triageDepartment: '',
}, },
addRules: { addRules: {
triageDepartmentId: [ triageDepartmentId: [
{required: true, message: '请选择分诊科室', trigger: 'change'} { required: true, message: '请选择分诊科室', trigger: 'change' },
], ],
} },
}; };
}, },
watch:{ watch: {
triageDepartmentId:function () { triageDepartmentId: function () {
if(this.triageDepartmentId == 0 || this.triageDepartmentId == null) { if (this.triageDepartmentId == 0 || this.triageDepartmentId == null) {
this.model.triageDepartmentId = ''; this.model.triageDepartmentId = '';
if(this.$refs.setForm) { if (this.$refs.setForm) {
this.$refs.setForm.resetFields(); this.$refs.setForm.resetFields();
} }
} } else {
else {
this.model.triageDepartmentId = this.triageDepartmentId; this.model.triageDepartmentId = this.triageDepartmentId;
this.change(this.triageDepartmentId); this.change(this.triageDepartmentId);
} }
} },
}, },
created() { created() {
vm = this; vm = this;
...@@ -130,14 +128,16 @@ ...@@ -130,14 +128,16 @@
}, },
methods: { methods: {
getDepList() { getDepList() {
getDepList().then(function (res) { getDepList()
.then(function (res) {
if (res.code == '000000') { if (res.code == '000000') {
vm.depList = res.data; vm.depList = res.data;
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
vm.$message.error(res.message); .catch(function (error) {
vm.$message.error(error.message);
}); });
}, },
confirm() { confirm() {
...@@ -146,19 +146,21 @@ ...@@ -146,19 +146,21 @@
const req = { const req = {
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: this.bizType, bizType: this.bizType,
triageDepartmentId:this.model.triageDepartmentId, triageDepartmentId: this.model.triageDepartmentId,
triageDepartment:this.model.triageDepartment, triageDepartment: this.model.triageDepartment,
triageRemark: this.model.triageRemark triageRemark: this.model.triageRemark,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
.then(function (res) {
if (res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
vm.$message.error(res.message); .catch(function (error) {
vm.$message.error(error.message);
}); });
} }
}); });
...@@ -173,16 +175,14 @@ ...@@ -173,16 +175,14 @@
}, },
change(data) { change(data) {
for (let i = 0; i < this.depList.length; i++) { for (let i = 0; i < this.depList.length; i++) {
if(data == this.depList[i].id) { if (data == this.depList[i].id) {
this.model.triageDepartment = this.depList[i].name; this.model.triageDepartment = this.depList[i].name;
break; break;
} }
} }
} },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -14,10 +14,12 @@ ...@@ -14,10 +14,12 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;"> <div style="margin-bottom: 20px; margin-top: -20px; text-align: center">
<span style="color: #ff0000;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span> <span
style="color: #ff0000"
>温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span>
</div> </div>
<el-form-item <el-form-item
...@@ -29,7 +31,7 @@ ...@@ -29,7 +31,7 @@
<el-input <el-input
v-model="model.refundReason" v-model="model.refundReason"
type="textarea" type="textarea"
style="width: 130%;" style="width: 130%"
size="small" size="small"
placeholder="请输入原因" placeholder="请输入原因"
/> />
...@@ -40,7 +42,7 @@ ...@@ -40,7 +42,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -58,14 +60,14 @@ ...@@ -58,14 +60,14 @@
let vm = null; let vm = null;
export default { export default {
props: { props: {
refundVisible:{ refundVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
} },
}, },
data() { data() {
return { return {
...@@ -73,16 +75,15 @@ ...@@ -73,16 +75,15 @@
title: '取消/退款', title: '取消/退款',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
isClick: false, isClick: false,
model:{ model: {
refundReason:'' refundReason: '',
}, },
addRules:{ addRules: {
refundReason: [ refundReason: [
{required: true, message: '请输入退款原因', trigger: 'blur'} { required: true, message: '请输入退款原因', trigger: 'blur' },
] ],
} },
}; };
}, },
created() { created() {
...@@ -95,10 +96,11 @@ ...@@ -95,10 +96,11 @@
const req = { const req = {
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: 2, bizType: 2,
refundReason: this.model.refundReason refundReason: this.model.refundReason,
}; };
vm.isClick = true; vm.isClick = true;
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
.then(function (res) {
vm.isClick = false; vm.isClick = false;
if (res.code == '000000') { if (res.code == '000000') {
vm.cancel(); vm.cancel();
...@@ -106,9 +108,10 @@ ...@@ -106,9 +108,10 @@
} else { } else {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { })
.catch(function (error) {
vm.isClick = false; vm.isClick = false;
vm.$message.error(res.message); vm.$message.error(error.message);
}); });
} }
}); });
...@@ -117,10 +120,8 @@ ...@@ -117,10 +120,8 @@
this.model.refundReason = ''; this.model.refundReason = '';
this.$emit('update:refundVisible', false); this.$emit('update:refundVisible', false);
}, },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
温馨提示:点击确定后,预约单状态将回退为"已匹配"状态 温馨提示:点击确定后,预约单状态将回退为"已匹配"状态
</div> </div>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -35,15 +34,7 @@ ...@@ -35,15 +34,7 @@
prop="statusRemark" prop="statusRemark"
> >
<el-col :span="15"> <el-col :span="15">
<!-- <el-input
type="textarea"
v-model="model.statusRemark"
style="width: 135%"
size="small"
minlength="2"
maxlength="500"
placeholder="请输入备注信息"
></el-input> -->
<el-select <el-select
v-model="model.statusRemark" v-model="model.statusRemark"
...@@ -102,10 +93,6 @@ ...@@ -102,10 +93,6 @@
type: Number, type: Number,
default: 0, default: 0,
}, },
bizType: {
type: Number,
default: 0,
},
}, },
data() { data() {
return { return {
...@@ -113,7 +100,6 @@ ...@@ -113,7 +100,6 @@
title: '重新匹配医生', title: '重新匹配医生',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
model: { model: {
statusRemark: '', statusRemark: '',
}, },
...@@ -153,7 +139,7 @@ ...@@ -153,7 +139,7 @@
} }
}) })
.catch(function (error) { .catch(function (error) {
vm.$message.error(res.message); vm.$message.error(error.message);
}); });
} }
}); });
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
}, },
imgList: { imgList: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
} }
}, },
data() { data() {
...@@ -53,7 +55,7 @@ ...@@ -53,7 +55,7 @@
}; };
}, },
watch:{ watch:{
imgList(newv, oldv) { imgList(newv) {
this.imgArr = newv; this.imgArr = newv;
} }
}, },
...@@ -62,6 +64,7 @@ ...@@ -62,6 +64,7 @@
}, },
methods: { methods: {
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(file)
this.imgArr = fileList; this.imgArr = fileList;
}, },
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
...@@ -81,13 +84,6 @@ ...@@ -81,13 +84,6 @@
sucess(response, file, fileList) { sucess(response, file, fileList) {
this.imgArr = fileList; this.imgArr = fileList;
}, },
handleExceed(files, fileList) {
this.$message.warning(
`当前限制选择 15 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
files.length + fileList.length
} 个文件`
);
},
setNewArr() { setNewArr() {
const newArr = []; const newArr = [];
if (this.imgArr && this.imgArr.length) { if (this.imgArr && this.imgArr.length) {
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
<script> <script>
import { getBaseUrl } from '@/utils/index'; import { getBaseUrl } from '@/utils/index';
import refundDetailVue from '../../views/IM/diagnosis-admin/refund-detail.vue';
export default { export default {
props: { props: {
isDisable: { isDisable: {
...@@ -56,7 +55,9 @@ ...@@ -56,7 +55,9 @@
}, },
musicList: { musicList: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
} }
}, },
data() { data() {
...@@ -73,7 +74,7 @@ ...@@ -73,7 +74,7 @@
}; };
}, },
watch:{ watch:{
musicList(newv, oldv) { musicList(newv) {
this.musicArr = newv || []; this.musicArr = newv || [];
} }
}, },
...@@ -101,15 +102,15 @@ ...@@ -101,15 +102,15 @@
}, 1000); }, 1000);
}, },
sucess(response, file, fileList) { sucess(fileList) {
this.musicArr = fileList; this.musicArr = fileList;
this.loading = false; this.loading = false;
}, },
errfn(response, file, fileList) { errfn() {
this.loading = false; this.loading = false;
}, },
// 上传mp3 // 上传mp3
beforeMusicUpload(file) { beforeMusicUpload() {
}, },
setNewArr() { setNewArr() {
......
...@@ -231,7 +231,9 @@ ...@@ -231,7 +231,9 @@
}, },
tData: { tData: {
type: Array, type: Array,
default: [], default: ()=>{
return []
},
}, },
pageNo: { pageNo: {
type: Number, type: Number,
...@@ -255,7 +257,9 @@ ...@@ -255,7 +257,9 @@
}, },
multipleSelection: { multipleSelection: {
type: Array, type: Array,
default: [], default: ()=>{
return []
},
}, },
}, },
......
...@@ -414,7 +414,9 @@ ...@@ -414,7 +414,9 @@
props: { props: {
tData: { tData: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
}, },
pageNo: { pageNo: {
type: Number, type: Number,
......
...@@ -103,7 +103,7 @@ class RtcClient { ...@@ -103,7 +103,7 @@ class RtcClient {
if (this.role == 'anchor') { if (this.role == 'anchor') {
this.publish(); this.publish();
} }
}).catch(error => { }).catch(() => {
this.vueInstance.$message({ this.vueInstance.$message({
message: '麦克风打开失败!', message: '麦克风打开失败!',
type: 'error' type: 'error'
...@@ -291,7 +291,7 @@ class RtcClient { ...@@ -291,7 +291,7 @@ class RtcClient {
}); });
// 房间被解散了 // 房间被解散了
this.client_.on('client-banned', err => { this.client_.on('client-banned', () => {
console.log('房间被解散了'); console.log('房间被解散了');
}); });
...@@ -404,7 +404,7 @@ class RtcClient { ...@@ -404,7 +404,7 @@ class RtcClient {
console.log('=========流更新========stream-updated==================='); console.log('=========流更新========stream-updated===================');
console.log(evt); console.log(evt);
const remoteStream = evt.stream; const remoteStream = evt.stream;
const uid = this.getUidByStreamId(remoteStream.getId()); // const uid = this.getUidByStreamId(remoteStream.getId());
// remoteStream.hasVideo() // 是否有视频轨道 // remoteStream.hasVideo() // 是否有视频轨道
// remoteStream.hasAudio() //是否有音轨道 // remoteStream.hasAudio() //是否有音轨道
// remoteStream.getType() // 主要用于判断一个远端流是主音视频流还是辅路视频流,辅路视频流通常是一个屏幕分享流。 // remoteStream.getType() // 主要用于判断一个远端流是主音视频流还是辅路视频流,辅路视频流通常是一个屏幕分享流。
......
// api路径 // api路径
import {isNotEmptyUtils} from './utils'; import {isNotEmptyUtils} from './utils';
export default async(url = '', data = {}, type = 'POST', method = 'fetch', server = 'CONTENT') => { export default async(url = '', data = {}, type = 'POST', method = 'fetch') => {
type = type.toUpperCase(); type = type.toUpperCase();
// url = (server==='WECHAT'?wechatUrl:baseUrl) + url; // url = (server==='WECHAT'?wechatUrl:baseUrl) + url;
...@@ -57,7 +57,7 @@ export default async(url = '', data = {}, type = 'POST', method = 'fetch', serve ...@@ -57,7 +57,7 @@ export default async(url = '', data = {}, type = 'POST', method = 'fetch', serve
if (window.XMLHttpRequest) { if (window.XMLHttpRequest) {
requestObj = new XMLHttpRequest(); requestObj = new XMLHttpRequest();
} else { } else {
requestObj = new ActiveXObject; requestObj = new ActiveXObject();
} }
let sendData = ''; let sendData = '';
......
...@@ -1353,7 +1353,7 @@ ...@@ -1353,7 +1353,7 @@
} }
}, },
save() { save() {
this.$refs.form.validate((valid) => { this.$refs.form.validate(() => {
this.formData.birthday = new Date(this.formData.birthdayStr); this.formData.birthday = new Date(this.formData.birthdayStr);
// this.formData.birthday = this.formData.birthdayStr; // this.formData.birthday = this.formData.birthdayStr;
const params = JSON.parse(JSON.stringify(this.formData)); const params = JSON.parse(JSON.stringify(this.formData));
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
this.$message.success('保存成功'); this.$message.success('保存成功');
} }
}) })
.catch((err) => { .catch(() => {
console.log('网络出现点儿问题,稍后重试'); console.log('网络出现点儿问题,稍后重试');
}); });
}, },
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
this.checklist = res.data; this.checklist = res.data;
} }
}) })
.catch((err) => { .catch(() => {
console.log('网络出现点儿问题,稍后重试'); console.log('网络出现点儿问题,稍后重试');
}); });
}, },
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
</template> </template>
<script> <script>
import refundDetail from '@/components/common/info-pad'; import refundDetail from '@/components/common/info-pad';
const vm = null;
export default { export default {
components: { components: {
refundDetail refundDetail
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册