zhouwx
2024-06-27 ae43feac8c6b2372f5a061ead68e71027e8877e1
src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue
@@ -4,7 +4,7 @@
    :visible.sync="dialogVisible"
    :modal-append-to-body="false"
    :close-on-click-modal="false"
    width="850px"
    width="50%"
    :before-close="handleClose"
    append-to-body
  >
@@ -64,6 +64,8 @@
</template>
<script >
import { listRecord, listStudent } from '@/api/onlineEducation/student'
export default {
  name: 'addUser',
  components: {
@@ -74,7 +76,12 @@
      dialogStatus: '',
      dataForm: {},
      total: 2,
      queryParams: {},
      queryParams: {
        pageIndex: 1,
        pageSize: 10,
        idcard: '',
        name: ''
      },
      learningTable: [
        {
          startTime: '2024-6-11 10:33:00',
@@ -102,12 +109,20 @@
  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() {