From d7be550e1d8f63b67d953abed24ac2f435fcf77f Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期六, 24 八月 2024 15:16:59 +0800
Subject: [PATCH] feat:报备
---
src/views/system/report/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/system/report/index.vue b/src/views/system/report/index.vue
index 23cd7f8..3e386a8 100644
--- a/src/views/system/report/index.vue
+++ b/src/views/system/report/index.vue
@@ -412,6 +412,7 @@
},
// 琛ㄥ崟閲嶇疆
reset() {
+ this.daterangeCreateTime = [];
this.form = {
id: null,
unitId: null,
@@ -423,9 +424,9 @@
reportContent: null,
reportMaterials: null,
deleted: null,
- errorType: null
+ errorType: null,
};
- this.resetForm("form");
+ // this.resetForm("form");
},
/** 鎼滅储鎸夐挳鎿嶄綔 */
handleQuery() {
@@ -450,14 +451,14 @@
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
this.reset();
- this.addOrImport = 'add'
+ this.addOrImport = 'add';
this.open = true;
this.title = "娣诲姞鎶ュ";
},
/** 瀵煎叆鎸夐挳鎿嶄綔 */
handleImport() {
this.reset();
- this.addOrImport = 'import'
+ this.addOrImport = 'import';
this.open = true;
this.title = "瀵煎叆鎶ュ";
},
@@ -473,6 +474,7 @@
this.daterangeCreateTime = [response.data.beginCreateTime, response.data.endCreateTime]
this.form = response.data;
this.form.errorType = this.form.errorType.split(',');
+ this.addOrImport = 'add';
this.open = true;
this.title = "淇敼鎶ュ";
});
@@ -500,6 +502,7 @@
},
/** 鎻愪氦鎸夐挳 */
submitForm() {
+ this.form.pointId = this.form.pointId ? this.form.pointId : this.form.serialNumber;
this.$refs["form"].validate(valid => {
if (valid) {
this.form.beginCreateTime = this.daterangeCreateTime[0]
--
Gitblit v1.8.0