|
@@ -16,14 +16,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="toConfigure">
|
|
|
- <span v-if="carConfigName"> 车辆配置:<span class="span1">{{carConfigName}}> </span></span>
|
|
|
+ <span v-if="carConfigName"> 车辆配置:<span >{{carConfigName}}> </span></span><!-- class="span1" style="cursor: pointer;" @click="carConfigtck"s -->
|
|
|
车型: <span class="span1" v-if="!description">{{brand_name?brand_name:'--'}}</span>
|
|
|
<span class="span1" @click="carCK" v-if="description" style="cursor: pointer;">{{description}}</span>
|
|
|
<span class="s1"> {{navfName}}:<span class="">{{zzName}}></span></span>
|
|
|
<span class="s2" v-if="navchildrenNameTitle">{{navchildrenNameTitle}}:<span class="">{{navchildrenName?navchildrenName:'--'}}</span></span>
|
|
|
<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">返回</span>
|
|
|
+ <span class="goback" @click="goback" v-if="!firstShow&&prevNextShow">返回</span>
|
|
|
</div>
|
|
|
<div class="main">
|
|
|
<div class="firstBox" v-if="firstShow">
|
|
@@ -172,8 +172,8 @@
|
|
|
<!-- 子组件详情-->
|
|
|
<div class="childrenMain" v-if="childrenShow">
|
|
|
<div class="childrenMainLeft" ref="childrenMainLeft">
|
|
|
- <div class="prevBox" :class="{prevBoxNo:childrenIndex==0}" @click="prev"><上一组</div>
|
|
|
- <div class="nextBox" @click="next" :class="{prevBoxNo:childrenIndex==this.childrenList.length-1}" >下一组></div>
|
|
|
+ <div class="prevBox" v-if="prevNextShow" :class="{prevBoxNo:childrenIndex==0}" @click="prev"><上一组</div>
|
|
|
+ <div class="nextBox" v-if="prevNextShow" @click="next" :class="{prevBoxNo:childrenIndex==this.childrenList.length-1}" >下一组></div>
|
|
|
<div class="imgNumBox" v-if="image_info.length>1">
|
|
|
<div class="imgNumLine" :class="{prevBoxNo:imgIndex==index}" @click="imgCk(index)" v-for="(item,index) in image_info">{{index+1}}</div>
|
|
|
</div>
|
|
@@ -321,6 +321,7 @@ export default {
|
|
|
imgIndex:0,
|
|
|
viewerimg:'',
|
|
|
viewerimgArr:[],
|
|
|
+ prevNextShow:false,
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
@@ -336,11 +337,43 @@ export default {
|
|
|
filters:{
|
|
|
re(val){
|
|
|
var reg_exp = new RegExp("<br/>", "g");
|
|
|
- var res2 = val.replace(reg_exp, "");
|
|
|
+ if(val){
|
|
|
+ var res2 = val.replace(reg_exp, "");
|
|
|
+ }else{
|
|
|
+ var res2 = val
|
|
|
+ }
|
|
|
+
|
|
|
return res2
|
|
|
+ //return val
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ carConfigtck(){
|
|
|
+ console.log(this.restrains)
|
|
|
+ this.restrainShow1=false
|
|
|
+ this.restrainShow2=false
|
|
|
+ this.restrainShow3=false
|
|
|
+ this.childrenCk1=false;
|
|
|
+ this.childrenShow=false;
|
|
|
+ this.childrenShow2=false;
|
|
|
+ this.restrainShow4=false;
|
|
|
+ this.groupShow=false;
|
|
|
+ this.lastShow=false;
|
|
|
+ this.firstShow=true;
|
|
|
+ this.carConfig=true;
|
|
|
+ this.navchildrenName=''
|
|
|
+ this.navchildrenNameTitle='';
|
|
|
+ this.restrainTitleTwo='';
|
|
|
+ this.lastName='';
|
|
|
+ this.zkName1=''
|
|
|
+ this.navfName='';
|
|
|
+ this.zzName='';
|
|
|
+ this.ckIndex1=-1;
|
|
|
+ this.ckIndex2=-1;
|
|
|
+ this.zzIndex=0;
|
|
|
+
|
|
|
+ this.description='';
|
|
|
+ },
|
|
|
seeBigImg(url){
|
|
|
this.viewerimg=url;
|
|
|
this.viewerimgArr=[]
|
|
@@ -411,11 +444,14 @@ export default {
|
|
|
this.firstShow=true;
|
|
|
this.description='';
|
|
|
console.log(this.vin.length)
|
|
|
- if(this.vin==''||this.vin.length<17){
|
|
|
+ if(this.vin==''||this.vin.length!=17){
|
|
|
this.$message({
|
|
|
message:'请输入正确的VIN',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
+ this.groupShow=false;
|
|
|
+ this.carConfig=false;
|
|
|
+ this.brand_name=''
|
|
|
return false;
|
|
|
}
|
|
|
fetchGet('/advancedEpc/getVinGroupPc', {
|
|
@@ -552,6 +588,7 @@ export default {
|
|
|
this.zkName1=res.data.result.caption;
|
|
|
this.navchildrenNameTitle=res.data.result.caption
|
|
|
}else{
|
|
|
+ console.log("直接子组")
|
|
|
this.restrainShow1=false;
|
|
|
this.lastShow=true;
|
|
|
this.zkName1=res.data.result.caption;
|
|
@@ -759,6 +796,7 @@ export default {
|
|
|
|
|
|
if(res.data.number==200||res.data.number==5212){
|
|
|
this.childrenShow=true;
|
|
|
+ this.prevNextShow=true;
|
|
|
//this.childrenList=res.data.result.list;
|
|
|
//this.access_time=res.data.result.access_time;
|
|
|
// console.log(res.data.result.list.image_info)
|
|
@@ -781,16 +819,18 @@ export default {
|
|
|
this.childrenHeight = this.$refs.childrenMainLeft.offsetHeight // 高
|
|
|
// console.log(this.childrenHeight)
|
|
|
}, 500)
|
|
|
- this.groupShow=false;
|
|
|
- this.restrainShow1=false
|
|
|
- this.restrainShow2=false
|
|
|
- this.restrainShow3=false
|
|
|
- this.childrenCk1=false;
|
|
|
- this.carConfigName=''
|
|
|
- this.childrenShow2=false;
|
|
|
- this.restrainShow4=false;
|
|
|
- this.lastShow=false;
|
|
|
- this.carConfig=false;
|
|
|
+ this.prevNextShow=false;
|
|
|
+ // this.groupShow=false;
|
|
|
+ // this.restrainShow1=false
|
|
|
+ // this.restrainShow2=false
|
|
|
+ // this.restrainShow3=false
|
|
|
+ // this.childrenCk1=false;
|
|
|
+ // this.carConfigName=''
|
|
|
+ // this.childrenShow2=false;
|
|
|
+ // this.restrainShow4=false;
|
|
|
+ // this.lastShow=false;
|
|
|
+ // this.carConfig=false;
|
|
|
+ this.firstShow=false;
|
|
|
this.childrenShow=true;
|
|
|
fetchGet('/advancedEpc/getPartsPc', {
|
|
|
vin:this.vin,
|
|
@@ -803,7 +843,7 @@ export default {
|
|
|
//this.childrenList=res.data.result.list;
|
|
|
//this.access_time=res.data.result.access_time;
|
|
|
// console.log(res.data.result.list.image_info)
|
|
|
- this.image_info=res.data.result.list.image_info[0];
|
|
|
+ this.image_info=res.data.result.list.image_info;
|
|
|
|
|
|
this.rows=res.data.result.list.rows
|
|
|
}else{
|
|
@@ -1146,7 +1186,7 @@ color: #333333;padding-left: 10px;padding-right: 20px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.childrenMainLeft{
|
|
|
- height: calc(100vh - 250px );
|
|
|
+ height: calc(100vh - 220px );
|
|
|
width: 55%;
|
|
|
border-radius: 4px;
|
|
|
border: 1px solid #EEEEEE;
|
|
@@ -1158,7 +1198,7 @@ color: #333333;padding-left: 10px;padding-right: 20px;
|
|
|
padding-top: 50px;
|
|
|
}
|
|
|
.childrenMainRight{
|
|
|
- height: calc(100vh - 200px );
|
|
|
+ height: calc(100vh - 170px );
|
|
|
width: calc(45% - 15px );
|
|
|
margin-left: 15px;
|
|
|
border-radius: 4px;
|