病例库-代码优化

main
ysn 2 days ago
parent 2ce6f87ef0
commit 5d2f7faf1d
  1. 7
      src/views/cases/index.vue

@ -203,7 +203,6 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="caseList" :data="caseList"
border
height="calc(100vh - 415px)" height="calc(100vh - 415px)"
@row-dblclick="handleView" @row-dblclick="handleView"
> >
@ -1078,7 +1077,9 @@ export default {
handleTimeSectionUpdate(row) { handleTimeSectionUpdate(row) {
this.reset(); this.reset();
postReportInfo({ report_id: row.id }).then((response) => { postReportInfo({ report_id: row.id }).then((response) => {
if (response.code === 200 && response.data && response.data.exam_rooms.length > 0) {
this.fetchTimeSlots(response.data.exam_rooms[0].id); this.fetchTimeSlots(response.data.exam_rooms[0].id);
}
this.form = response.data || {}; this.form = response.data || {};
this.open = true; this.open = true;
this.title = "修改预约时间"; this.title = "修改预约时间";
@ -1118,8 +1119,10 @@ export default {
if (response.code === 200) { if (response.code === 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
if (response.data && response.data.id) { if (response.data && response.data.report_id) {
postReportInfo({ report_id: response.data.report_id }).then((response) => {
this.handleView(response.data); this.handleView(response.data);
});
} else { } else {
this.getList(); this.getList();
} }

Loading…
Cancel
Save