|
@@ -61,13 +61,13 @@ export default {
|
|
|
if (res.errcode === 0) {
|
|
|
if (status == '0') {
|
|
|
this.$set(this, `preTotal`, res.total);
|
|
|
- this.$set(this, `listPre`, res.data);
|
|
|
+ this.$set(this, `listPre`, _.orderBy(res.data, ['start_time'], ['asc']));
|
|
|
} else if (status == '1') {
|
|
|
this.$set(this, `nowTotal`, res.total);
|
|
|
- this.$set(this, `listNow`, res.data);
|
|
|
+ this.$set(this, `listNow`, _.orderBy(res.data, ['start_time'], ['asc']));
|
|
|
} else if (status == '2') {
|
|
|
this.$set(this, `pastTotal`, res.total);
|
|
|
- this.$set(this, `listPast`, res.data);
|
|
|
+ this.$set(this, `listPast`, _.orderBy(res.data, ['start_time'], ['asc']));
|
|
|
}
|
|
|
}
|
|
|
},
|