guhongwei 4 years ago
parent
commit
1ee0918f5f
1 changed files with 5 additions and 6 deletions
  1. 5 6
      src/views/room/statList.vue

+ 5 - 6
src/views/room/statList.vue

@@ -16,7 +16,7 @@
 import topInfo from '@/layout/public/top.vue';
 import dataTable from '@/components/data-table.vue';
 import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: room } = createNamespacedHelpers('room');
+const { mapActions: lookuser } = createNamespacedHelpers('lookuser');
 export default {
   name: 'statList',
   props: {},
@@ -34,13 +34,12 @@ export default {
     this.searchInfo();
   },
   methods: {
-    ...lookuser(['room']),
+    ...lookuser(['query']),
     async searchInfo() {
-      const res = await this.query({ roomname: this.name });
+      const res = await this.query({ roomid: this.id });
       if (this.$checkRes(res)) {
-        console.log(res);
-        // this.$set(this, `list`, res.data);
-        // this.$set(this, `total`, res.total);
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
       }
     },
   },