liuyg
2021-10-22 9809f91f0ef51a2dbaf50a874768368e1f71284c
src/views/onSiteInspection/securityStaff.vue
@@ -2,11 +2,11 @@
 * @Author: Morpheus
 * @Date: 2021-07-07 17:30:05
 * @Last Modified by: liu
 * @Last Modified time: 2021-10-22 16:36:47
 * @Last Modified time: 2021-10-22 17:27:32
 * menu-name 保安员检查
 */
<template>
  <basic-container>
  <basic-container class="witerFontColorInput">
    <avue-crud
      :option="option"
      :table-loading="loading"
@@ -169,7 +169,7 @@
            prop: "examinerDeptName",
            searchLabelWidth: 90,
            searchSpan: 4,
            search: true,
            // search: true,
            // overHidden: true,
            // type: "date",
            // format: "yyyy-MM-dd",
@@ -184,7 +184,29 @@
            // // display: false,
            // width: 180,
          },
          {
            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: "reviewtime",
@@ -219,7 +241,7 @@
            prop: "result",
            searchLabelWidth: 90,
            searchSpan: 4,
            search: true,
            // search: true,
            // labelWidth: 120,
            // display: false,
          },
@@ -282,6 +304,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(
        () => {
@@ -345,6 +388,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);