|
|
@@ -167,15 +167,24 @@ export default {
|
|
|
notes: ''
|
|
|
},
|
|
|
lipidCholesterol: '',
|
|
|
- diseaseTags: DISEASE_PRESETS.slice(),
|
|
|
- diseaseNames: [],
|
|
|
- customDiseases: [],
|
|
|
+ diseaseGroups: DISEASE_GROUPS,
|
|
|
+ expandedGroups: DISEASE_GROUPS.slice(0, 3).map(function(g) { return g.key }),
|
|
|
+ selectedDiseases: [],
|
|
|
diseaseInput: '',
|
|
|
medRows: [],
|
|
|
+ currentMonth: '',
|
|
|
+ monthEnd: '',
|
|
|
saving: false
|
|
|
}
|
|
|
},
|
|
|
onLoad: function() {
|
|
|
+ var now = new Date()
|
|
|
+ var y = now.getFullYear()
|
|
|
+ var m = now.getMonth() + 1
|
|
|
+ var mStr = m < 10 ? '0' + m : '' + m
|
|
|
+ this.currentMonth = y + '-' + mStr
|
|
|
+ var lastDay = new Date(y, m, 0).getDate()
|
|
|
+ this.monthEnd = y + '-' + mStr + '-' + (lastDay < 10 ? '0' + lastDay : '' + lastDay)
|
|
|
this.load()
|
|
|
},
|
|
|
methods: {
|