提交 2d239877 编写于 作者: qian.jie's avatar qian.jie

显示设置

上级 41b68d99
......@@ -346,8 +346,8 @@
timeChoosetList: [],
startTime: '',
endTime: '',
todayNum: '',
maxTodayNum: '',
todayNum: 0,
maxTodayNum: 0,
};
},
watch: {
......@@ -439,8 +439,8 @@
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
this.todayNum = '';
this.maxTodayNum = '';
this.todayNum = 0;
this.maxTodayNum = 0;
this.rateValue = '';
this.chooseTime = '';
this.startTime = '';
......@@ -451,7 +451,8 @@
})
.catch(function (err) {
vm.isClick = false;
vm.$message.error(err.message);
console.log(err);
// vm.$message.error(err.message);
});
},
refreshData() {
......@@ -465,8 +466,8 @@
// this.startTimeValue = this.rangeTimeData;
// this.endTimeValue = '';
// this.timeRange = Number(20);
this.todayNum = '';
this.maxTodayNum = '';
this.todayNum = 0;
this.maxTodayNum = 0;
this.rateValue = '';
this.chooseTime = '';
this.timeChoosetList = [];
......@@ -509,8 +510,8 @@
};
acceptsCeiling(params).then((res) => {
if (res.code == '000000') {
this.todayNum = res.data.dayAcceptsCount || '';
this.maxTodayNum = res.data.dayAcceptsCeiling || '';
this.todayNum = res.data.dayAcceptsCount || 0;
this.maxTodayNum = res.data.dayAcceptsCeiling || 0;
this.rateValue = res.data.level;
}
});
......
......@@ -249,7 +249,7 @@
departmentId: this.departmentId,
};
previewWork({ ...params }).then((res) => {
if (res.code === '000000') {
if (res.code === '000000' && res.data) {
this.calendarOptions.resources = (res.data.doctorList || []).map(
(item) => {
return {
......@@ -298,6 +298,9 @@
console.log(this.calendarOptions.resources);
console.log(this.calendarOptions.events);
} else {
this.calendarOptions.events = [];
this.calendarOptions.resources = [];
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册