|
@@ -7,7 +7,7 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- <data-table :fields="fields" @delete="toDelete" :data="list" :opera="opera" @edit="toEdit" :total="total" @query="search"></data-table>
|
|
|
+ <data-table :fields="fields" :data="list" :opera="opera" :total="total" @query="searchInfo"></data-table>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -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: lookuser } = createNamespacedHelpers('lookuser');
|
|
|
+const { mapActions: room } = createNamespacedHelpers('room');
|
|
|
export default {
|
|
|
name: 'statList',
|
|
|
props: {},
|
|
@@ -34,17 +34,21 @@ export default {
|
|
|
this.searchInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...lookuser(['query']),
|
|
|
+ ...lookuser(['room']),
|
|
|
async searchInfo() {
|
|
|
const res = await this.query({ roomname: this.name });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ console.log(res);
|
|
|
+ // this.$set(this, `list`, res.data);
|
|
|
+ // this.$set(this, `total`, res.total);
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
name() {
|
|
|
return this.$route.query.name;
|
|
|
},
|