mo 2 년 전
부모
커밋
4c80676b0d
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      src/views/liveClassManager/modals/setBlack.vue

+ 9 - 1
src/views/liveClassManager/modals/setBlack.vue

@@ -17,6 +17,12 @@
               placeholder="学员姓名/编号/手机号"
             ></el-input>
           </el-form-item>
+          <el-form-item prop="visitorQuery">
+            <el-select placeholder="观看用户" v-model="searchForm.visitorQuery" clearable>
+              <el-option label="学员" :value="0"></el-option>
+              <el-option label="游客" :value="1"></el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item>
             <el-button @click="search" type="primary">搜索</el-button>
             <el-button @click="onReSet" type="danger">重置</el-button>
@@ -100,6 +106,7 @@ export default {
           page: this.rules.page,
           rows: this.rules.limit,
           roomUid: this.activeRow.roomUid,
+          excludeBlacklist: 1,
         });
         this.tableList = res.data.rows;
         this.rules.total = res.data.total;
@@ -109,7 +116,7 @@ export default {
         this.isNewPage = true;
         this.$nextTick(() => {
           this.tableList.forEach((course) => {
-            if (studentIdList.indexOf(course.studentId) != -1) {
+            if (idList.indexOf(course.studentId) != -1) {
               this.$refs.multipleSelection.toggleRowSelection(course, true);
             }
           });
@@ -125,6 +132,7 @@ export default {
     },
     onReSet() {
       this.searchForm.search = "";
+      this.searchForm.visitorQuery = "";
       this.clearCom();
       this.search();
     },