liuyg
2021-10-22 9809f91f0ef51a2dbaf50a874768368e1f71284c
src/views/qualificationExamination/scoreInquiry.vue
@@ -2,11 +2,11 @@
 * @Author: Morpheus
 * @Date: 2021-07-07 17:30:05
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-22 17:02:18
 * @Last Modified time: 2021-10-22 17:27:19
 * menu-name 监管信息
 */
<template>
  <basic-container>
  <basic-container class="witerFontColorInput">
    <avue-crud
      :option="option"
      :table-loading="loading"
@@ -77,14 +77,14 @@
          {
            label: "姓名",
            prop: "securityName",
            searchSpan: 4,
            searchSpan: 3,
            search: true,
          },
          {
            label: "考试名称",
            prop: "examName",
            search: true,
            searchSpan: 6,
            searchSpan: 5,
            // slot: true,
            // display: false,
          },
@@ -159,9 +159,32 @@
            // display: false,
          },
          {
            label: "考试时间",
            prop: "releaseTimeRange",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            searchValue: [this.getStartTime(), this.getEndTime()],
            searchRange: true,
            searchSpan: 6,
            searchLabelWidth: 80,
            hide: true,
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            search: true,
            rules: [
              {
                required: true,
                message: "请输入时间",
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否合格",
            prop: "qualified",
            searchSpan: 4,
            searchSpan: 3,
            search: true,
            type: "select",
            dicData: [
@@ -218,6 +241,27 @@
    },
  },
  methods: {
    getStartTime() {
      if (
        this.$route.query.startTime != undefined &&
        this.$route.query.startTime != null &&
        this.$route.query.startTime != ""
      ) {
        return this.$route.query.startTime;
      }
      return "";
    },
    getEndTime() {
      if (
        this.$route.query.endTime != undefined &&
        this.$route.query.endTime != null &&
        this.$route.query.endTime != ""
      ) {
        return this.$route.query.endTime;
      }
      return "";
    },
    rowSave(row, done, loading) {
      adddata(row).then(
        () => {
@@ -281,6 +325,8 @@
      this.onLoad(this.page);
    },
    searchChange(params, done) {
      params["startTime"] = params.releaseTimeRange[0];
      params["endTime"] = params.releaseTimeRange[1];
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);