|
@@ -47,10 +47,10 @@ export default {
|
|
{ label: '电话', prop: 'phone', filter: 'input' },
|
|
{ label: '电话', prop: 'phone', filter: 'input' },
|
|
{ label: '用戶类型', prop: 'role', format: i => (i == '3' ? '主播' : i == '4' ? '房间用户' : '临时用户') },
|
|
{ label: '用戶类型', prop: 'role', format: i => (i == '3' ? '主播' : i == '4' ? '房间用户' : '临时用户') },
|
|
// { label: '状态', prop: 'status', format: i => (i == '0' ? '待审核' : i == '1' ? '审核成功' : i == '2' ? '审核拒绝' : '待认证') },
|
|
// { label: '状态', prop: 'status', format: i => (i == '0' ? '待审核' : i == '1' ? '审核成功' : i == '2' ? '审核拒绝' : '待认证') },
|
|
- { label: '机构名称', prop: 'deptname', filter: 'input' },
|
|
|
|
- { label: '职务', prop: 'level', filter: 'input' },
|
|
|
|
- { label: '个人简介', prop: 'title', filter: 'input' },
|
|
|
|
- { label: '备注', prop: 'remark', filter: 'input' },
|
|
|
|
|
|
+ { label: '机构名称', prop: 'deptname' },
|
|
|
|
+ { label: '职务', prop: 'level' },
|
|
|
|
+ { label: '个人简介', prop: 'title' },
|
|
|
|
+ { label: '备注', prop: 'remark' },
|
|
],
|
|
],
|
|
list: [],
|
|
list: [],
|
|
total: 0,
|
|
total: 0,
|
|
@@ -62,8 +62,11 @@ export default {
|
|
...roomuser(['query', 'delete', 'update']),
|
|
...roomuser(['query', 'delete', 'update']),
|
|
|
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
- let res = await this.query();
|
|
|
|
- console.log(res.data);
|
|
|
|
|
|
+ const res = await this.query({ skip, limit, ...info });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
toEdit({ data }) {},
|
|
toEdit({ data }) {},
|
|
async toDelete({ data }) {},
|
|
async toDelete({ data }) {},
|