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

Merge branch 'feature/jq_2' of...

Merge branch 'feature/jq_2' of 192.168.110.53:com.pica.cloud.education.frontend/pica-admin-consultation into feature/jq_1
...@@ -230,8 +230,8 @@ ...@@ -230,8 +230,8 @@
timeChoosetList: [], timeChoosetList: [],
startTime: '', startTime: '',
endTime: '', endTime: '',
todayNum: '', todayNum: 0,
maxTodayNum: '', maxTodayNum: 0,
}; };
}, },
watch: { watch: {
...@@ -326,7 +326,8 @@ ...@@ -326,7 +326,8 @@
}) })
.catch(function (err) { .catch(function (err) {
vm.isClick = false; vm.isClick = false;
vm.$message.error(err.message); console.log(err);
// vm.$message.error(err.message);
}); });
}, },
refreshData() { refreshData() {
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
departmentId: this.departmentId, departmentId: this.departmentId,
}; };
previewWork({ ...params }).then((res) => { previewWork({ ...params }).then((res) => {
if (res.code === '000000') { if (res.code === '000000' && res.data) {
this.calendarOptions.resources = (res.data.doctorList || []).map( this.calendarOptions.resources = (res.data.doctorList || []).map(
(item) => { (item) => {
return { return {
...@@ -298,6 +298,9 @@ ...@@ -298,6 +298,9 @@
console.log(this.calendarOptions.resources); console.log(this.calendarOptions.resources);
console.log(this.calendarOptions.events); console.log(this.calendarOptions.events);
} else {
this.calendarOptions.events = [];
this.calendarOptions.resources = [];
} }
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册