fuliqi
2024-10-28 c2a1c68a2a398e6d0f2f5854c65127efbff306b1
Merge remote-tracking branch 'origin/master'
4个文件已修改
97 ■■■■ 已修改文件
src/api/classes.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/user.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/class-management/Class.vue 75 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/meet/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/classes.js
@@ -83,3 +83,11 @@
    method: "PUT"
  })
}
// 获取老师列表
export const getTeacherList = () => {
  return axios({
    url: "/api/admin/user/student/list",
    method: "GET"
  })
}
src/api/user.js
@@ -12,5 +12,5 @@
  selectByUserName: query => post('/api/admin/user/selectByUserName', query),
  studentList: () => get('/api/admin/user/student/list'),
  getClassesCurrentUserList: (param) => get('/api/admin/user/classes/students', param),
  updatePassword: (data) => post('/api/common/user/update/password', data)
  updatePassword: (data) => post('/api/common/user/update/password', data),
}
src/views/class-management/Class.vue
@@ -37,7 +37,7 @@
    >
      <el-table-column
        align="center"
        label="班级"
        label="班级名称"
        prop="className"
        width="180px"
      ></el-table-column>
@@ -60,9 +60,9 @@
<!--      ></el-table-column>-->
      <el-table-column
        align="center"
        width="100px"
        width="300px"
        label="教师"
        prop="createUserName"
        prop="teacherNamesStr"
      ></el-table-column>
<!--      <el-table-column-->
<!--        align="center"-->
@@ -91,10 +91,10 @@
          <el-button v-show="scope.row.status !== '解散'" size="small" @click="handlerEdit(scope.row)"
                     type="primary">修改
          </el-button>
          <el-button v-show="scope.row.status !== '解散'" size="small" type="warning">班级验证</el-button>
          <el-button v-show="scope.row.status !== '解散'" size="small" @click="handlerOpenNotify(scope.row)"
                     type="info">通知
          </el-button>
<!--          <el-button v-show="scope.row.status !== '解散'" size="small" type="warning">班级验证</el-button>-->
<!--          <el-button v-show="scope.row.status !== '解散'" size="small" @click="handlerOpenNotify(scope.row)"-->
<!--                     type="info">通知-->
<!--          </el-button>-->
          <el-button v-show="scope.row.status !== '解散'" @click="studentManager(scope.row.id,scope.row.className)" size="small"
                     type="success">成员管理
          </el-button>
@@ -123,25 +123,25 @@
      <pagination v-show="total>0" :total="total" :page.sync="searchForm.currentPage"
                  :limit.sync="searchForm.pageSize"
                  @pagination="page"/>
    <el-dialog
      title="班级通知"
      :visible.sync="notifyOpen"
      width="600px"
      :before-close="handleNotifyClose"
      :close-on-click-modal="false">
      <el-form :model="notifyForm" :rules="notifyRules" ref="notifyForm" label-width="100px" class="demo-ruleForm">
        <el-form-item label="通知班级:" prop="className">
          <span>{{ notifyForm.className }}</span>
        </el-form-item>
        <el-form-item label="通知内容:" prop="notifyContent">
          <el-input type="textarea" v-model="notifyForm.notifyContent" size="small"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="handleNotifyClose">取 消</el-button>
        <el-button type="primary" @click="submitNotifyForm">确 定</el-button>
      </span>
    </el-dialog>
<!--    <el-dialog-->
<!--      title="班级通知"-->
<!--      :visible.sync="notifyOpen"-->
<!--      width="600px"-->
<!--      :before-close="handleNotifyClose"-->
<!--      :close-on-click-modal="false">-->
<!--      <el-form :model="notifyForm" :rules="notifyRules" ref="notifyForm" label-width="100px" class="demo-ruleForm">-->
<!--        <el-form-item label="通知班级:" prop="className">-->
<!--          <span>{{ notifyForm.className }}</span>-->
<!--        </el-form-item>-->
<!--        <el-form-item label="通知内容:" prop="notifyContent">-->
<!--          <el-input type="textarea" v-model="notifyForm.notifyContent" size="small"></el-input>-->
<!--        </el-form-item>-->
<!--      </el-form>-->
<!--      <span slot="footer" class="dialog-footer">-->
<!--        <el-button @click="handleNotifyClose">取 消</el-button>-->
<!--        <el-button type="primary" @click="submitNotifyForm">确 定</el-button>-->
<!--      </span>-->
<!--    </el-dialog>-->
    <el-dialog
      :title="title"
@@ -152,6 +152,16 @@
      <el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm">
        <el-form-item label="班级名称" prop="className">
          <el-input v-model="form.className" size="small"></el-input>
        </el-form-item>
        <el-form-item label="老师配置" prop="teacherList">
          <el-select v-model="form.teacherList" multiple clearable size="small" placeholder="请选择">
            <el-option
              v-for="item in teacherList"
              :key="item.id"
              :label="item.realName"
              :value="item.id">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="班级时间" required>
          <el-col :span="11">
@@ -191,7 +201,7 @@
</template>
<script>
import { addClasses, editClasses, getClassess, dissolution, recover } from '@/api/classes'
import { addClasses, editClasses, getClassess, dissolution, recover, getTeacherList } from '@/api/classes'
import { addClassesNotify } from '@/api/classesNotify'
import Pagination from '@/components/Pagination'
@@ -199,6 +209,7 @@
  components: { Pagination },
  data () {
    return {
      teacherList: [],
      notifyOpen: false,
      notifyForm: {
        className: '',
@@ -220,6 +231,7 @@
      form: {
        id: null,
        className: '',
        teacherList: [],
        status: '',
        verifyStatus: '',
        startTime: null,
@@ -248,6 +260,11 @@
    }
  },
  methods: {
    getTeacherList () {
      getTeacherList().then(res => {
        this.teacherList = res.data.data
      })
    },
    handlerOpenNotify (row) {
      this.notifyOpen = true
      this.notifyForm.className = row.className
@@ -286,6 +303,7 @@
      this.form = {
        id: null,
        className: '',
        teacherList: [],
        status: '',
        verifyStatus: '',
        startTime: null,
@@ -362,7 +380,8 @@
  },
  created () {
    this.page()
  },
    this.getTeacherList()
  }
}
</script>
src/views/meet/index.vue
@@ -82,9 +82,21 @@
  methods: {
    muteEveryone () {
      this.jitsiApi.executeCommand('muteEveryone', 'audio')
      const h = this.$createElement;
      this.$notify({
        title: '提示',
        message: h('i', { style: 'color: teal'}, '已全体禁音')
      });
    },
    videoEveryone () {
      this.jitsiApi.executeCommand('muteEveryone', 'video')
      const h = this.$createElement;
      this.$notify({
        title: '提示',
        message: h('i', { style: 'color: teal'}, '已关闭全体视频')
      });
    },
    handleCommand (command) {
      this.sendMessage(JSON.stringify(command))