From 1700ce5436f340bee7b99900df52bf281df7dbea Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期四, 14 九月 2023 17:43:52 +0800
Subject: [PATCH] 改bug
---
src/components/view/rawInsDetail.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/components/view/rawInsDetail.vue b/src/components/view/rawInsDetail.vue
index 2ab34d0..e9a9490 100644
--- a/src/components/view/rawInsDetail.vue
+++ b/src/components/view/rawInsDetail.vue
@@ -12,7 +12,7 @@
>鎻� 浜�</el-button
>
<el-button
- icon="el-icon-download"
+ icon="el-icon-back"
@click="
() => {
goBack();
@@ -350,6 +350,7 @@
</template>
<script>
+import { triggerRef } from "vue";
import RawIns from "./raw-ins.vue";
export default {
components: { RawIns },
@@ -383,6 +384,7 @@
} else {
conclusion.testState = 1;
}
+ console.log([conclusion]);
return [conclusion];
}
},
@@ -467,6 +469,7 @@
this.detailId = res.data;
this.getDetailInfo();
this.$message.success(res.message);
+ this.goBack();
},
// 淇敼椤圭洰鐨勬娴嬪�兼敼鍙樼粨璁�
@@ -484,9 +487,11 @@
async submitSave() {
const res = await this.$axios.post(
this.$api.url.updateRawInspectsById + `${this.detailId}`
- );
- this.$message.success("鎻愪氦鎴愬姛");
- this.getDetailInfo();
+ ).then(res=>{
+ this.$message.success("鎻愪氦鎴愬姛");
+ this.getDetailInfo();
+ this.goBack()
+聽 聽 聽 });
},
// 鑾峰彇璁惧鏍戝唴瀹�
getOptions() {
@@ -503,6 +508,7 @@
name: "",
required: "",
textValue: "",
+ testState:null,
testValueList: [],
unit: ""
};
--
Gitblit v1.9.3