From 6f3cbab6a74ea6dbf419eca60d45715a0090263e Mon Sep 17 00:00:00 2001
From: yang <1441163367@qq.com>
Date: 星期五, 28 十月 2022 14:56:05 +0800
Subject: [PATCH] 修改问题

---
 src/views/padSunmaryProcedure/padWord.vue |   59 +++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 39 insertions(+), 20 deletions(-)

diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue
index 2c2d15d..3d32cce 100644
--- a/src/views/padSunmaryProcedure/padWord.vue
+++ b/src/views/padSunmaryProcedure/padWord.vue
@@ -1,19 +1,24 @@
 <template>
-  <div style="width: 100vw;height: 100%;overflow: auto;font-size: 20px">
+  <div style="width: 100%;height: 100%;overflow: auto;">
     <div id="navs">
       <el-button icon="el-icon-arrow-left" @click="goHome">杩斿洖</el-button>
       <div>{{ name1 }}</div>
-      <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button>
+      <div>
+        <el-button v-if="btn ==1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button>
+        <el-button v-if="btn ==0" icon="el-icon-caret-bottom" @click="ShowHide(1)"></el-button>
+        <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button>
+      </div>
     </div>
-    <el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick" :stretch="true">
+    <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>
@@ -27,35 +32,45 @@
 
 export default {
   name: "padWord",
-  components:{
+  components: {
     BiLu,
     GaiZheng,
     JueDingShu,
   },
   data() {
     return {
-      id:'',
-      name1:"",
-      activeName: 'second'
+      btn: 1,
+      id: '',
+      form: {
+        id: ''
+      },
+      name1: "",
+      activeName: 'first'
     }
   },
   created() {
+    this.id = this.$store.state.user.id
     if (this.$route.query) {
-      this.id = this.$route.query.id
-      this.name1 = this.$route.query.name
+      this.$nextTick(() => {
+        this.name1 = this.$route.query.name
+      })
     }
   },
   methods: {
-    goHome(){
+
+    goHome() {
       this.$router.push({
         path: '/pad',
       })
     },
-    submit(){
-      /*submitcase().then(res =>{
+    ShowHide(type) {
+      this.btn = type;
+      window.android.toShowHide()
+    },
+    submit() {
+      submitcase({id: this.id}).then(res => {
         this.goHome()
-      })*/
-      this.goHome()
+      })
     },
     /*goToBL() {
       this.$router.push({
@@ -67,21 +82,25 @@
     },*/
     handleClick(tab, event) {
       console.log(tab, event);
+      this.activeName = tab.name
     }
   }
 }
 </script>
 
-<style lang="scss" scoped>
-.el-tabs__content{
+<style lang="scss">
+.el-tabs__content {
   height: calc(100vh - 110px);
   overflow-y: auto;
 }
-#navs{
+
+#navs {
   display: flex;
+  flex-direction: row;
   justify-content: space-between;
   align-items: center;
 }
+
 #box {
   width: 80%;
   display: flex;

--
Gitblit v1.9.1