From 01b6b200bedf57900a88bbd982cf25889e13dc49 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期三, 10 八月 2022 14:17:09 +0800
Subject: [PATCH] 对接

---
 src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue b/src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue
index 524521f..9cad19d 100644
--- a/src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue
+++ b/src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue
@@ -133,7 +133,7 @@
 import AccidentName from '/@/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue';
 import RegionsDialog from '/@/components/regionsDialog/index.vue';
 import uploaderImg from '/@/components/uploaderImg/index.vue';
-import { emergencySuppliesApi } from '/@/api/emergencyResources';
+import { emergencySuppliesApi } from '/@/api/contingencyManagement/emergencyResources';
 import { accidentManagementSystemApi } from '/@/api/workInjuryDeclaration';
 import { goalManagementApi } from '/@/api/goalManagement';
 
@@ -351,6 +351,10 @@
 				await formEl.validate((valid, fields) => {
 					if (valid) {
 						isShowDialog.value = false;
+						ruleForm.value.fileList=[]
+						delete ruleForm.value.accidentName
+						delete ruleForm.value.occurrenceTime
+						delete ruleForm.value.id
 						accidentManagementSystemApi()
 							.workAdd(ruleForm.value)
 							.then((res) => {
@@ -380,6 +384,9 @@
 				await formEl.validate((valid, fields) => {
 					if (valid) {
 						isShowDialog.value = false;
+						ruleForm.value.fileList=[]
+						delete ruleForm.value.accidentName
+						delete ruleForm.value.occurrenceTime
 						accidentManagementSystemApi()
 							.workView(ruleForm.value)
 							.then((res) => {

--
Gitblit v1.9.2