Commit 8997da28 authored by 高滢's avatar 高滢

治疗弹出框 数据重置

parent 307cabc8
......@@ -219,7 +219,7 @@
<el-button style="width: 98px;height: 32px;" icon="el-icon-back" class="resetBtn" @click="goBack">返 回</el-button>
</div>
<!-- 分配诊室对话框 -->
<el-dialog title="分配诊室" :visible.sync="open" width="800px" append-to-body :close-on-press-escape="false" :close-on-click-modal="false">
<el-dialog title="分配诊室" :visible.sync="open" width="800px" append-to-body :close-on-press-escape="false" :close-on-click-modal="false" @close="closeDialogRoom">
<div style="display: flex;padding-bottom: 20px;">
<div class="tip1" />
<div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">预约记录</div>
......@@ -460,7 +460,7 @@ export default {
// 更新治疗表
const list = []
list.push(this.checkDetail)
if (this.videoReport !== '') {
if (this.videoReport !== '' && this.videoReport !== null) {
updateTreatList(list).then(res => {
if (res.code === 200) {
this.$message.success('上传成功')
......@@ -552,11 +552,36 @@ export default {
}
})
},
closeDialogRoom() {
this.rest()
},
// 取消按钮
cancel() {
this.open = false
this.rest()
},
// 弹出框重置
rest() {
this.treatStartTime = ''
this.reservationForm.consultRoomName = ''
this.appointmentRoomList = []
// 预约诊室
this.appointmentRoom = {
consultRoomId: '',
treatDate: '',
sTime: '',
eTime: ''
}
// 分配诊室搜索预约记录
this.allocationForm = {
pageNum: 1,
pageSize: 10,
treatScheduleList: ['2', '3'],
consultRoomIdList: '',
treatStartTimeS: '',
treatStartTimeE: ''
}
},
// 分配诊室
handleSubscribe() {
this.open = true
......
......@@ -189,7 +189,7 @@
/>
<!-- 分配诊室对话框 -->
<el-dialog title="分配诊室" :visible.sync="open" width="800px" append-to-body :close-on-press-escape="false" :close-on-click-modal="false">
<el-dialog title="分配诊室" :visible.sync="open" width="800px" append-to-body :close-on-press-escape="false" :close-on-click-modal="false" @close="closeDialogRoom">
<div style="display: flex;padding-bottom: 20px;">
<div class="tip1" />
<div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">预约记录</div>
......@@ -509,8 +509,12 @@ export default {
this.queryParams.isAsc = val.collation
this.sortedColumn = val.sortedColumn
},
closeDialogRoom() {
this.rest()
},
// 弹出框重置
rest() {
this.treatStartTime = ''
this.reservationForm.consultRoomName = ''
this.appointmentRoomList = []
// 预约诊室
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment