twt 2 år sedan
förälder
incheckning
f0f5c73b1b
2 ändrade filer med 30 tillägg och 4 borttagningar
  1. 16 2
      src/page/carCk.vue
  2. 14 2
      src/page/index.vue

+ 16 - 2
src/page/carCk.vue

@@ -206,6 +206,7 @@ export default {
        bshow:false,
        carzm:'A',
        carTname:[],
+       indexcaption:'',
     }
   },
   watch: {
@@ -216,6 +217,12 @@ export default {
 
   },
   methods: {
+    cxShowFn(){
+       this.cxShow=true;
+       this.carzzShow=false;
+       this.brandsBoxShow=true;
+       console.log(this.pzList)
+    },
     mouseenter(zm){
      // console.log(zm)
       this.carzm=zm
@@ -224,20 +231,22 @@ export default {
       this.carzm=zm
     },
     childrenClick(item,index){
-
+      
       var data={
         token:item.token,param:item.param,threeTime:this.access_time,
-        group:item.group,childrengroup:item.caption,epc_id:this.epc_id
+        group:this.indexcaption,childrengroup:item.caption,epc_id:this.epc_id
 
       }
       this.$emit('update:show', false)
       this.$emit('cxpart',data)
+      this.$emit('cxBackOne',false)
     },
     bclose(){
       this.bshow=false;
     },
     morez(item,index,time){
       if(index==0){
+        this.indexcaption=item.caption
         this.$emit('ckzzname',item.caption)
       }
       this.captionlist[index]=item.token;
@@ -389,6 +398,7 @@ export default {
       this.$emit('brandCk',e)
       this.bshow=false
     },
+
     goNextX(item,time,index){  //点击车辆配置
 
        console.log(time + '时间---index'+index +'宽度===')
@@ -454,9 +464,13 @@ export default {
         }
         //this.$emit('done',data)
         this.getModelGroup(data)
+        this.cxBack()
       }
 
 
+    },
+    cxBack(){
+      this.$emit('cxBackOne',true)
     },
     goNext(item) {  //点击车型
     	this.token = item.token;

+ 14 - 2
src/page/index.vue

@@ -26,7 +26,8 @@
        <span class="s3" v-if="restrainTitleTwo">{{restrainTitleTwo}}:<span class="">{{zkName2?zkName2:'--'}}></span></span>
        <span class="cs" v-if="lastName">子组:{{lastName | re}}</span>
        <span class="goback" @click="goback" v-if="!firstShow&&prevNextShow">返回</span>
-        <span class="goback" @click="gobackCxdx" v-if="backCxdxShow">返回</span>
+       <span class="goback" @click="gobackCxdx" v-if="backCxdxShow">返回</span>
+       <span class="goback" @click="gobackCxdxone" v-if="backCxdxShowone">返回</span>
      </div>
      <div class="main">
        <div class="firstBox" v-if="firstShow" ref="firstBox">
@@ -257,7 +258,10 @@
      <oem  ref="childoem" :show.sync="oemFlag" @done="getOemDetail" :param='param' :token='token' :vin='vin' :id.sync="epc_id"></oem>
      <part ref="childrenPart" :show.sync="partFlag" :epc_id='epc_id' :partnum="partnum" :threeData='threeData'></part>
      <carInfo  ref="childrencar" :show.sync="carFlag" :carInfoData="carInfoData"></carInfo>
-     <carCk :show.sync="carCkShow" ref="childrencarCk" @ckzzname="ckzznameFn" @done="carckhl" @brandCk="brandCkFn" @cxpart="cxpartFn"></carCk>
+     <carCk :show.sync="carCkShow" ref="childrencarCk"
+      @ckzzname="ckzznameFn" @done="carckhl" @brandCk="brandCkFn" @cxpart="cxpartFn"
+      @cxBackOne="cxBackOneFn"
+      ></carCk>
   </div>
 </template>
 
@@ -343,6 +347,7 @@ export default {
        moreTime:'',
        isCxdx:false,
        backCxdxShow:false,
+       backCxdxShowone:false,
     }
   },
   computed:{
@@ -370,6 +375,13 @@ export default {
     }
   },
   methods:{
+    gobackCxdxone(){
+      this.backCxdxShowone=false;
+      this.$refs.childrencarCk.cxShowFn()
+    },
+    cxBackOneFn(e){
+      this.backCxdxShowone=e;
+    },
     ckzznameFn(e){
       this.zzName=e
     },