From 2a158bb96daa1254a0b3d0de1961afbda59f8308 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期三, 26 十月 2022 14:41:33 +0800
Subject: [PATCH] 细节

---
 src/views/padSunmaryProcedure/padWord.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue
index e6b1a6f..ebf0392 100644
--- a/src/views/padSunmaryProcedure/padWord.vue
+++ b/src/views/padSunmaryProcedure/padWord.vue
@@ -3,19 +3,18 @@
     <div id="navs">
       <el-button icon="el-icon-arrow-left" @click="goHome">杩斿洖</el-button>
       <div>{{ name1 }}</div>
-      <p>{{id}}</p>
       <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button>
     </div>
     <el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick"
              :stretch="true">
       <el-tab-pane label="璋冩煡璇㈤棶绗斿綍" name="first">
-        <BiLu :id="id"></BiLu>
+        <BiLu v-if="activeName == 'first'"></BiLu>
       </el-tab-pane>
       <el-tab-pane label="璐d护闄愭湡鏀规閫氱煡涔�" name="second">
-        <GaiZheng :id="id"></GaiZheng>
+        <GaiZheng v-if="activeName == 'second'"></GaiZheng>
       </el-tab-pane>
       <el-tab-pane label="澶勭綒鍐冲畾涔�" name="third">
-        <JueDingShu :id="id"></JueDingShu>
+        <JueDingShu v-if="activeName == 'third'"></JueDingShu>
       </el-tab-pane>
     </el-tabs>
   </div>
@@ -36,18 +35,18 @@
   },
   data() {
     return {
-      id: '',
+        id:'',
       form:{
         id:''
       },
       name1: "",
-      activeName: 'second'
+      activeName: 'first'
     }
   },
   created() {
+      this.id = this.$store.state.user.id
     if (this.$route.query) {
       this.$nextTick(() => {
-        this.id = this.$route.query.id
         this.name1 = this.$route.query.name
       })
     }
@@ -59,9 +58,9 @@
       })
     },
     submit() {
-      /*submitcase(this.id).then(res => {
+      submitcase({id:this.id}).then(res => {
         this.goHome()
-      })*/
+      })
     },
     /*goToBL() {
       this.$router.push({
@@ -73,6 +72,7 @@
     },*/
     handleClick(tab, event) {
       console.log(tab, event);
+      this.activeName = tab.name
     }
   }
 }

--
Gitblit v1.9.1