|
|
@@ -420,6 +420,7 @@ import { checkPermi } from "@/utils/permission.js";
|
|
|
import dayjs from "dayjs";
|
|
|
import { deptTreeSelect } from "@/api/system/public";
|
|
|
import request from "@/utils/request";
|
|
|
+import {newline} from "js-beautify/js/src/javascript/acorn";
|
|
|
export default {
|
|
|
name: "Saftask",
|
|
|
dicts: ["resumption_plan_cycle", "resumption_status", "safety_check_status"],
|
|
|
@@ -453,7 +454,7 @@ export default {
|
|
|
planStartTime: null,
|
|
|
title: null,
|
|
|
checkOrgIds: null,
|
|
|
- range: [],
|
|
|
+ range: [new Date(),new Date()],
|
|
|
},
|
|
|
selectedOrgName: null,
|
|
|
pageData: [],
|
|
|
@@ -594,14 +595,14 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
resetQuery() {
|
|
|
- this.queryParams.checkOrgIds = null;
|
|
|
- this.queryParams.range = [];
|
|
|
this.resetForm("queryParams");
|
|
|
+ this.queryParams.checkOrgIds = null;
|
|
|
this.queryParams.orgId = this.orgId;
|
|
|
this.selectedOrgName = this.orgName;
|
|
|
this.queryParams.checkSub = true;
|
|
|
- this.$refs["orgTree"].setCheckSub(this.queryParams.checkSub)
|
|
|
- this.getList();
|
|
|
+ this.$refs["orgTree"].setCheckSub(this.queryParams.checkSub);
|
|
|
+ this.queryParams.range = [new Date(),new Date()];
|
|
|
+
|
|
|
},
|
|
|
handleAdd() {
|
|
|
let path = "/safetycheck/tempregister/add";
|