Browse Source

去除preview changeCurrentTreeid

秦鹏 3 years ago
parent
commit
5415027251
2 changed files with 1 additions and 4 deletions
  1. 0 3
      src/components/Adult/Preview.vue
  2. 1 1
      src/views/adultInput.vue

+ 0 - 3
src/components/Adult/Preview.vue

@@ -212,7 +212,6 @@ export default {
     "currentTreeID",
     "FatherTreeData",
     "changeId",
-    "changeCurrentTreeID",
   ],
   data() {
     return {
@@ -386,7 +385,6 @@ export default {
           return;
         }
         _this.queIndex = 0;
-        this.changeCurrentTreeID(data.id);
         _this.changeId(data.id, data.name, data.fatherName, "Preview");
       } else {
         _this.queIndex -= 1;
@@ -472,7 +470,6 @@ export default {
         if (flg) {
           return;
         }
-        this.changeCurrentTreeID(data.id);
         _this.changeId(data.id, data.name, data.fatherName, "Preview");
         xiangdeng = false;
       } else {

+ 1 - 1
src/views/adultInput.vue

@@ -614,7 +614,6 @@
           :currentTreeID="currentTreeID"
           :FatherTreeData="FatherTreeData"
           :change-id="changeId"
-          :changeCurrentTreeID="changeCurrentTreeID"
         />
       </div>
       <span slot="footer" class="dialog-footer">
@@ -997,6 +996,7 @@ export default {
           this.question_list = res.content
             ? JSON.parse(res.content)
             : JSON.parse(JSON.stringify(this.org_question_list));
+          this.onPreview();
           // this.cur_page_que_index =
           //   this.question_list[this.tabIndex].cur_fn_data.length - 1;
         })