Kaynağa Gözat

修改表单数据来源丢失

11wqe1 5 gün önce
ebeveyn
işleme
feec3d8fc4

+ 10 - 4
src/components/pages/liyuan/components/backPage.vue

@@ -1,7 +1,9 @@
 <template>
-    <div class="pgb" @click="backO">
-        <img src="../../../../assets/icon/liyuan/backPage.svg" alt="">
-        <div>{{ tit }}</div>
+    <div class="pgb">
+        <div @click="backO" class="pgbL">
+            <img src="../../../../assets/icon/liyuan/backPage.svg" alt="">
+            <div>{{ tit }}</div>
+        </div>
     </div>
 </template>
 
@@ -38,9 +40,13 @@
     font-size: 20px;
     display: flex;align-items: center;
     gap: 10px;
-    cursor: pointer;
     padding:40px 90px 0;
     /* height: 23.8px; */
     margin-bottom: 15px;
 }
+.pgbL{
+    display: flex;align-items: center;
+    gap: 10px;
+    cursor: pointer;
+}
 </style>

+ 1 - 2
src/components/pages/liyuan/page/examine/index.vue

@@ -270,10 +270,9 @@ export default {
   //   this.getPageBase2(2)
   // },
   mounted() {
-    this.getPageBase();
+    // this.getPageBase();
     this.getPageBase2(1)
     this.getPageBase2(2)
-    console.log('2222');
 
     // console.log(JSON.stringify(this.TeaTabJson));
   },

+ 10 - 18
src/components/pages/testPerson/examine/index.vue

@@ -262,16 +262,18 @@ export default {
     }
   },
   computed: {},
-  activated() {
-    // 当组件被激活时调用
-    this.getPageBase();
-    this.getPageBase2(1)
-    this.getPageBase2(2)
-  },
+  // activated() {
+  //   // 当组件被激活时调用
+  //   this.getPageBase();
+  //   this.getPageBase2(1)
+  //   this.getPageBase2(2)
+  // },
   mounted() {
-    this.getPageBase();
+    // this.getPageBase();
     this.getPageBase2(1)
     this.getPageBase2(2)
+    console.log('666');
+    
     // console.log(JSON.stringify(this.TeaTabJson));
   },
   methods: {
@@ -399,8 +401,6 @@ export default {
         .post(this.$store.state.api + "addTestExamineWorks2", params)
         .then(res => {
           console.log("addTestExamineWorks2", res);
-          // this.getData();
-          // this.handleData();
         })
         .catch(error => {
           console.log(error);
@@ -421,7 +421,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "getTestExamineByUserId2", params)
         .then(res => {
-          console.log("getTestExamineByUserId", res);
+          // console.log("getTestExamineByUserId", res);
 
           if (res.data[0].length > 0) {
 
@@ -454,12 +454,6 @@ export default {
             this.handleData();
             this.tabLoad = false;
           }
-          // this.$forceUpdate();
-          //  else {
-          //   this.allData.type = 1;
-          //   this.getPageBase();
-          //   this.tabLoad = false;
-          // }
         })
         .catch(error => {
           console.log(error);
@@ -486,8 +480,6 @@ export default {
           this.PageBaseData = JSON.parse(res.data[0][0].json);
           // 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
           this.getData();
-
-          // this.handleData();
         })
         .catch(error => {
           console.log(error);