guhongwei 4 年 前
コミット
55db57ded1
3 ファイル変更3 行追加6 行削除
  1. 0 1
      src/views/anchor/detail.vue
  2. 2 4
      src/views/room/detail.vue
  3. 1 1
      src/views/room/index.vue

+ 0 - 1
src/views/anchor/detail.vue

@@ -70,7 +70,6 @@ export default {
         this.$set(this, `form`, res.data);
       }
     },
-
     // 创建&修改
     async drawerSave({ data, isNew }) {
       let res;

+ 2 - 4
src/views/room/detail.vue

@@ -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) {

+ 1 - 1
src/views/room/index.vue

@@ -77,7 +77,7 @@ export default {
     },
 
     async searchinfo() {
-      let res = await this.roomuserquery({ skip: 0, limit: 100000 });
+      let res = await this.roomuserquery({ skip: 0, limit: 100000, role: 3 });
       this.$set(this, `clientList`, res.data);
     },