guhongwei vor 4 Jahren
Ursprung
Commit
e60962ccac
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/views/hallList/parts/product.vue

+ 3 - 3
src/views/hallList/parts/product.vue

@@ -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']));
         }
       }
     },