liuyg
2021-08-19 0c35e05ca9c90883e5073ea35232ea100f866a8f
src/views/trainExam/index.vue
@@ -106,7 +106,13 @@
</template>
<script>
import { getList, add, remove, update,updateAudit } from "@/api/examapi/examination";
import {
  getList,
  add,
  remove,
  update,
  updateAudit,
} from "@/api/examapi/examination";
import { auditColumn } from "./data";
export default {
  data() {
@@ -135,7 +141,7 @@
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
        border: false,
        border: true, //liu
        index: true,
        stripe: true,
        viewBtn: true,
@@ -199,7 +205,7 @@
                trigger: "blur",
              },
            ],
            width:200,
            width: 200,
          },
          // {
          //     label: "试卷分数",
@@ -227,7 +233,7 @@
            type: "datetime",
            format: "yyyy-MM-dd HH:mm",
            valueFormat: "yyyy-MM-dd HH:mm",
            hide:true,
            hide: true,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
@@ -313,7 +319,7 @@
            label: "备注",
            prop: "remark",
            span: 24,
            hide:true,
            hide: true,
            slot: true,
            // 表单新增时是否禁止
            addDisabled: false,
@@ -485,7 +491,7 @@
      this.questionBankPage.pageSize = pageSize;
    },
    //审核
    submit(row,done,loading){
    submit(row, done, loading) {
      updateAudit(row).then(
        () => {
          this.dialogFormVisible = false;
@@ -521,7 +527,7 @@
    },
    // 新增
    questionBankRowSave(row, done, loading) {
      row.startTime = row.startTime+":00";
      row.startTime = row.startTime + ":00";
      // row.endTime = row.examTime[1];
      // row.examTime = JSON.stringify(row.examTime);
      add(row).then(
@@ -543,7 +549,7 @@
      // if (Array.isArray(row.examTime) != true) {
      //   row.examTime = row.examTime.split(",");
      // }
      row.startTime = row.startTime+":00";
      row.startTime = row.startTime + ":00";
      // row.endTime = row.examTime[1];
      // row.examTime = JSON.stringify(row.examTime);
      update(row).then(