| | |
| | | // 获取老师列表 |
| | | export const getTeacherList = () => { |
| | | return axios({ |
| | | url: "/api/admin/user/student/list", |
| | | url: "/api/admin/user/teacher/list", |
| | | method: "GET" |
| | | }) |
| | | } |
| | |
| | | title="确定要删除该成员吗?" |
| | | @confirm="remove(scope.row.id)" |
| | | > |
| | | <el-button slot="reference" type="danger" size="small">删除</el-button> |
| | | <el-button slot="reference" type="danger" size="small" v-show="false">删除</el-button> |
| | | </el-popconfirm> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | editClassesUser(this.studentForm).then(res => { |
| | | this.addOpen = false |
| | | this.$message.success(res.data.message) |
| | | this.submitForm() |
| | | this.page() |
| | | this.resetStudentForm() |
| | | }) |
| | | window.location.reload() |
| | | } else { |
| | | addClassesUser(this.studentForm).then(res => { |
| | | this.addOpen = false |
| | |
| | | this.page() |
| | | this.resetStudentForm() |
| | | }) |
| | | window.location.reload() |
| | | } |
| | | } |
| | | }) |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-dialog :visible.sync="questionPage.showDialog" width="70%"> |
| | | <el-dialog :visible.sync="questionPage.showDialog" width="70%" :close-on-click-modal="false"> |
| | | <el-form :model="questionPage.queryParam" ref="queryForm" :inline="true"> |
| | | <el-form-item label="ID:"> |
| | | <el-input v-model="questionPage.queryParam.id" clearable></el-input> |
| | | <el-input v-model="questionPage.queryParam.id" clearable @input="queryForm"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="学科:"> |
| | | <el-select v-model="questionPage.queryParam.subjectIdInt" placeholder="学科"> |
| | | <el-select v-model="questionPage.queryParam.subjectIdInt" placeholder="学科" @change="queryForm"> |
| | | <el-option v-for="item in subjects" :key="item.id" :label="item.name" :value="item.id"/> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | }, |
| | | queryForm () { |
| | | this.questionPage.queryParam.pageIndex = 1 |
| | | this.questionPage.queryParam.subjectId = [this.questionPage.queryParam.subjectIdInt] |
| | | this.search() |
| | | if (!this.questionPage.queryParam.subjectIdInt){ |
| | | this.search() |
| | | }else{ |
| | | this.questionPage.queryParam.subjectId = [this.questionPage.queryParam.subjectIdInt] |
| | | this.search() |
| | | } |
| | | }, |
| | | confirmQuestionSelect () { |
| | | let _this = this |
| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParam" ref="queryForm" :inline="true"> |
| | | <el-form-item label="真实姓名:"> |
| | | <el-input v-model="queryParam.realName"></el-input> |
| | | <el-input v-model="queryParam.realName" @input="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |
| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParam" ref="queryForm" :inline="true"> |
| | | <el-form-item label="真实姓名:"> |
| | | <el-input v-model="queryParam.realName"></el-input> |
| | | <el-input v-model="queryParam.realName" @input="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |