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