|
@@ -23,7 +23,7 @@
|
|
|
<span>{{month}}月</span>
|
|
|
</template>
|
|
|
<el-menu-item v-for="item in days" @click="getCard(item.id); activePatient(2); getDgList()" :key="item.id" :index="item.id.toString()">
|
|
|
- {{year}}年{{month}}月{{item.day}}日
|
|
|
+ {{item.day}}日 {{item.HH}}:{{item.MM}}:{{item.SS}}
|
|
|
</el-menu-item>
|
|
|
</el-submenu>
|
|
|
</el-submenu>
|
|
@@ -238,6 +238,7 @@ export default {
|
|
|
}
|
|
|
}).then( (response) => {
|
|
|
this.timeList = response.rows;
|
|
|
+ console.log(this.timeList)
|
|
|
this.groupDates(this.timeList);
|
|
|
})
|
|
|
},
|
|
@@ -246,6 +247,9 @@ export default {
|
|
|
this.year = date.admissionTime.substring(0, 4);
|
|
|
this.month = date.admissionTime.substring(5, 7);
|
|
|
this.day = date.admissionTime.substring(8, 10);
|
|
|
+ this.HH = date.admissionTime.substring(11,13);
|
|
|
+ this.MM = date.admissionTime.substring(14,16);
|
|
|
+ this.SS = date.admissionTime.substring(17,20);
|
|
|
this.id = date.id;
|
|
|
if (!this.groupedDates[this.year]) {
|
|
|
this.groupedDates[this.year] = {};
|
|
@@ -253,7 +257,14 @@ export default {
|
|
|
if (!this.groupedDates[this.year][this.month]) {
|
|
|
this.groupedDates[this.year][this.month] = [];
|
|
|
}
|
|
|
- this.groupedDates[this.year][this.month].push({id: this.id, day: this.day});
|
|
|
+ this.groupedDates[this.year][this.month].push(
|
|
|
+ {
|
|
|
+ id: this.id,
|
|
|
+ day: this.day,
|
|
|
+ HH: this.HH,
|
|
|
+ MM: this.MM,
|
|
|
+ SS: this.SS
|
|
|
+ });
|
|
|
})
|
|
|
this.$forceUpdate();
|
|
|
},
|