From e388dcb1c0a9efa3f1522c5adb48b26e86295fd1 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期三, 13 四月 2022 15:22:45 +0800
Subject: [PATCH] Merge branch 'shf' of https://sinanoaq.cn:8888/r/ztqt into shf

---
 src/views/safetyproduction/reviewXG.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/src/views/safetyproduction/reviewXG.vue b/src/views/safetyproduction/reviewXG.vue
index 572ea86..4598c5f 100644
--- a/src/views/safetyproduction/reviewXG.vue
+++ b/src/views/safetyproduction/reviewXG.vue
@@ -192,6 +192,8 @@
         name: "",
         remark: "",
       },
+      name:"",
+      typeid:'',
         rules: {
         name: [
           { required: true, message: "说明不能为空", trigger: "change" },
@@ -199,7 +201,9 @@
     };
   },
   created() {
-    this.id = this.$route.query.id;
+    this.id = this.$route.query.idX;
+    this.typeid=this.$route.query.id;
+    this.name = this.$route.query.name
     this.safeT(this.id);
   },
   methods: {
@@ -226,7 +230,8 @@
         this.index = this.form.deductionList.findIndex(
           (item) => item.name == val.name
         );
-        this.formInline = val;
+        // this.formInline = val;
+          this.formInline=JSON.parse(JSON.stringify(val));
       }
     },
     listAdd() {
@@ -259,7 +264,11 @@
               title: "成功",
             });
             this.$router.push({
-              path:"/new"
+              path:"/new",
+              query:{
+                name:this.name,
+                id:this.typeid
+              }
             })
           } else {
             this.$message({
@@ -271,7 +280,11 @@
     },
     back(){
        this.$router.push({
-              path:"/new"
+              path:"/new",
+               query:{
+                name:this.name,
+                id:this.typeid
+              }
             })
     },
     bacQx(){
@@ -307,6 +320,8 @@
   width: 100%;
   background-color: white;
   border-radius: 5px;
+   height: 850px;
+  overflow-y:overlay;
 }
 .box-right-content {
   padding: 15px 0;
@@ -315,4 +330,4 @@
   background-color: #034ea2;
   border: 1px solid #034ea2;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.2