|
@@ -33,16 +33,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...roomuser({ roomuserquery: 'query' }),
|
|
|
-
|
|
|
...room({ roomquery: 'query', roomfetch: 'fetch', roomupdate: 'update', roomcreate: 'create' }),
|
|
|
async search() {
|
|
|
- const res = await this.roomuserquery();
|
|
|
+ const res = await this.roomuserquery({ role: '3' });
|
|
|
+ this.$set(this, `newlist`, res.data);
|
|
|
if (this.id) {
|
|
|
const val = await this.roomfetch(this.id);
|
|
|
this.$set(this, `form`, val.data);
|
|
|
}
|
|
|
-
|
|
|
- this.$set(this, `newlist`, res.data);
|
|
|
},
|
|
|
async onSubmit({ data }) {
|
|
|
if (this.id) {
|