| | |
| | | :visible.sync="dialogVisible" |
| | | :modal-append-to-body="false" |
| | | :close-on-click-modal="false" |
| | | width="850px" |
| | | width="50%" |
| | | :before-close="handleClose" |
| | | append-to-body |
| | | > |
| | |
| | | </template> |
| | | |
| | | <script > |
| | | import { listRecord, listStudent } from '@/api/onlineEducation/student' |
| | | |
| | | export default { |
| | | name: 'addUser', |
| | | components: { |
| | |
| | | dialogStatus: '', |
| | | dataForm: {}, |
| | | total: 2, |
| | | queryParams: {}, |
| | | queryParams: { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | idcard: '', |
| | | name: '' |
| | | }, |
| | | learningTable: [ |
| | | { |
| | | startTime: '2024-6-11 10:33:00', |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | |
| | | getList(){ |
| | | this.loading = true; |
| | | listRecord( this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.learningTable = res.rows |
| | | this.total = res.total |
| | | this.loading = false; |
| | | } |
| | | }) |
| | | }, |
| | | openDialog (type, data) { |
| | | openDialog (data) { |
| | | this.dialogVisible = true; |
| | | this.dialogStatus = type; |
| | | this.queryParams.idcard = data.idcard |
| | | this.getList(); |
| | | }, |
| | | |
| | | handleClose() { |