|
|
@ -132,7 +132,7 @@ export default { |
|
|
|
} |
|
|
|
this.$http.get('/patient/view/getTimeAxisDataVisit', { params }).then(res => { |
|
|
|
this.timeAxisDataVisit = res.data.data |
|
|
|
this.curFormType = this.timeAxisDataVisit[0].itemList[0].groupName |
|
|
|
this.curFormType = this.timeAxisDataVisit.length && this.timeAxisDataVisit[0].itemList[0].groupName |
|
|
|
if (add) { |
|
|
|
const index = this.timeAxisDataVisit.findIndex(item => item.date === this.$moment(value.createTime).format('YYYY-MM-DD')) |
|
|
|
this.$refs.timeline.itemCurrentIndex = index || 0 |
|
|
|