Administrator
2021-09-02 cac30d3d83513eae0fbab9de25ec60fcb8c98cee
src/views/trainingRegistration/index.vue
@@ -145,27 +145,36 @@
        index: true,
        stripe: true,
        viewBtn: true,
        selection: true,
        selection: false,
        excelBtn: false,
        menuWidth: 380,
        dialogClickModal: false,
        column: [
          // {
          //   label: "考试人数",
          //   prop: "number",
          //   type: 'number',
          //   span: 6,
          //   precision:2,
          //   mock:{
          //     type:'number',
          //     max:500,
          //     min:50,
          //     precision:50
          //   },
          //   minRows: 0,
          //   maxRows: 3,
          //   row:true,
          // },
          {
            label: "考试人数",
            prop: "number",
            type: 'number',
            span: 6,
            precision:0,
            step:50,
            mock:{
              type:'number',
              max:1000,
              min:0,
              precision:0
            },
            rules: [
              {
                required: true,
                message: "请输入考试人数",
                trigger: "blur",
              },
            ],
            minRows: 0,
            maxRows: 1000,
            value:50,
            row:true,
          },
          {
            label: "考试时间",
            prop: "startTime",
@@ -239,7 +248,7 @@
        labelWidth: "120",
        menuWidth: 200,
        align: "center",
        selection: true,
        selection: false,
        column: column,
        delBtn: false,
        editBtn: false,
@@ -436,6 +445,7 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      params['cancel'] = 111;
      this.loading = true;
      getdata(
        page.currentPage,
@@ -478,7 +488,7 @@
      // var endTime = row.examTime[1];
      // var examTime = JSON.stringify(row.examTime);
      // console.log(this.ids,111);
      addExam(this.ids, null, startTime, null).then(
      addExam(this.ids, null, startTime,row.number, null).then(
        () => {
          this.onLoad(this.page);
          this.$message({