|
@@ -0,0 +1,407 @@
|
|
|
+<template>
|
|
|
+ <div class="hello">
|
|
|
+ <div class="top">
|
|
|
+ <div class="vinBtn">VIN</div>
|
|
|
+ <input type="text" placeholder="请输入17位车架号查询" class="vinsearch">
|
|
|
+ <div class="barndBox">
|
|
|
+ 当前品牌:
|
|
|
+ <div class="barnd">
|
|
|
+ <img src="http://img.db.66km.cn/carbrandlogo/B - 比亚迪.png" alt="" class="barndLogo">
|
|
|
+ <div class="barndTxt">比亚迪比亚迪比亚迪</div>
|
|
|
+ </div>
|
|
|
+ <div class="topkk">选择品牌</div>
|
|
|
+ <div class="topkk">OEM查询</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="toConfigure">
|
|
|
+ 车辆配置:<span class="span1">BYD6490STHEV(尊荣型)</span> > 车型: <span class="span1">东风本田2016思域 </span> 总组:<span class="span1">车身及车身附件</span>
|
|
|
+ <span>>子组:<span class="span1">电磁阀1.5L</span></span>
|
|
|
+ </div>
|
|
|
+ <div class="main">
|
|
|
+ <!-- 总组-->
|
|
|
+ <div class="mainLeft" v-if="groupShow">
|
|
|
+ <div class="mainLeftTop">
|
|
|
+ <div class="sx"></div>
|
|
|
+ <div class="leftTitle">总组</div>
|
|
|
+ </div>
|
|
|
+ <div class="mainLeftLine" v-for="(item,index) in 5">{{index}}发动机</div>
|
|
|
+ </div>
|
|
|
+ <!-- 车辆配置-->
|
|
|
+ <div class="mainLeft" v-if="carConfig">
|
|
|
+ <div class="mainLeftTop">
|
|
|
+ <div class="sx"></div>
|
|
|
+ <div class="leftTitle">选择车辆配置</div>
|
|
|
+ </div>
|
|
|
+ <div class="mainLeftLine" v-for="(item,index) in 5" @click="carConfigClick(index)"
|
|
|
+ :class="{mainLeftLineActive:carConfigIndex==index}">左舵,天窗,皮革座椅</div>
|
|
|
+ </div>
|
|
|
+ <div class="mainRight1" v-if="groupShow">
|
|
|
+ <div class="mainRightTop">
|
|
|
+ <div class="sx2"></div>
|
|
|
+ <div class="mainRightTopTitle">子组</div>
|
|
|
+ <div class="childrensearchBox">
|
|
|
+ <input type="text" class="childrensearchInput" placeholder="搜索子组">
|
|
|
+ <img src="../assets/icon_search@2x.png" alt="" class="childrensearchImg">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mainRightCont">
|
|
|
+ <div class="mainRightLine" v-for="(item,index) in 8">
|
|
|
+ <div class="mainRightLineImgBox">
|
|
|
+ <img class="mainRightLineImg" src="http://img2.nanxinwang.com/ds/resources/app/byd/v1/873fed186c14da3d7ea2a3fb97f5af05.png?x-oss-process=style/constrain_550_adp_jpg" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="mainRightLineMsBox">
|
|
|
+ <div class="mainRightLineName">节气门1.5L</div>
|
|
|
+ <div class="mainRightLineZm">组名:EA-90B-12QW2A</div>
|
|
|
+ <div class="mainRightLineRemarks">备注:这是备注这是备注这是备注这是备注</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 子组件详情-->
|
|
|
+ <div class="childrenMain" v-if="childrenShow">
|
|
|
+ <div class="childrenMainLeft">
|
|
|
+ <img class="childrenImg" src="http://img2.nanxinwang.com/ds/resources/app/byd/v1/873fed186c14da3d7ea2a3fb97f5af05.png?x-oss-process=style/constrain_550_adp_jpg" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="childrenMainRight">
|
|
|
+ <el-table
|
|
|
+ class="el-table"
|
|
|
+ :data="tableData"
|
|
|
+ stripe border
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column
|
|
|
+ prop="a1"
|
|
|
+ label="位置"
|
|
|
+ width="50"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a2"
|
|
|
+ label="零件号"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a3"
|
|
|
+ label="名称">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a4"
|
|
|
+ label="备注">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a5"
|
|
|
+ label="用量">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a6"
|
|
|
+ label="型号">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="a7"
|
|
|
+ label="4S价">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'HelloWorld',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ groupShow:false, //总组的显示
|
|
|
+ carConfig:false, //车辆配置的显示
|
|
|
+ carConfigIndex:-1,
|
|
|
+ childrenShow:true,
|
|
|
+ tableData:[
|
|
|
+ {
|
|
|
+ a1:1,
|
|
|
+ a2:'16400-59B-003',
|
|
|
+ a3:'节气门总成',
|
|
|
+ a4:'这是备注这是备注这是备注这是备...',
|
|
|
+ a5:'005',
|
|
|
+ a6:'GL345-876',
|
|
|
+ a7:'¥2698.00'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ a1:2,
|
|
|
+ a2:'16400-59B-003',
|
|
|
+ a3:'节气门总成',
|
|
|
+ a4:'备注',
|
|
|
+ a5:'005',
|
|
|
+ a6:'GL345-876',
|
|
|
+ a7:'¥2698.00'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ carConfigClick(index){
|
|
|
+ this.carConfigIndex=index
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
+<style scoped>
|
|
|
+ .vinsearch{
|
|
|
+ width: 426px;
|
|
|
+ height: 44px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #DDDDDD;
|
|
|
+ line-height:44px;
|
|
|
+ padding-left: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #666666;
|
|
|
+ outline: none;
|
|
|
+ }
|
|
|
+ .vinBtn{
|
|
|
+ width: 72px;
|
|
|
+ height: 48px;
|
|
|
+ background: #FF4F00;
|
|
|
+ border-radius: 4px 0px 0px 4px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #FFFFFF;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 44px;
|
|
|
+ text-align: center;
|
|
|
+ margin-right: -2px;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .hello{
|
|
|
+ padding: 10px 0 0 10px;
|
|
|
+ }
|
|
|
+ .barndBox{
|
|
|
+ display: flex;
|
|
|
+ line-height:44px;
|
|
|
+ padding-left: 40px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ .top{
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .barnd{
|
|
|
+ width: 120px;
|
|
|
+ height: 44px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #DDDDDD;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .barndLogo{
|
|
|
+ width: 20px;height: 20px;margin-top: 12px;margin-left: 11px;
|
|
|
+ }
|
|
|
+ .barndTxt{
|
|
|
+ width: 70px;
|
|
|
+ padding-left: 8px;
|
|
|
+ word-wrap: break-word; /*强制换行*/
|
|
|
+ overflow: hidden; /*超出隐藏*/
|
|
|
+ text-overflow: ellipsis;/*隐藏后添加省略号*/
|
|
|
+ white-space: nowrap;/*强制不换行*/
|
|
|
+ }
|
|
|
+ .topkk{
|
|
|
+ width: 120px;
|
|
|
+ height: 44px;
|
|
|
+ border: 1px solid #FF4F00;
|
|
|
+ border-radius: 4px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 44px;
|
|
|
+ margin-left: 20px;
|
|
|
+ color: #FF4F00;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ .toConfigure{
|
|
|
+ color: #333333;
|
|
|
+ line-height: 17px;
|
|
|
+ font-size: 12px;
|
|
|
+ padding-top: 30px;
|
|
|
+ }
|
|
|
+ .span1{
|
|
|
+ color: #3F90F7;
|
|
|
+ }
|
|
|
+ .main{
|
|
|
+ display: flex;padding-top: 20px;
|
|
|
+ }
|
|
|
+ .mainLeft{
|
|
|
+ height: calc(100vh - 200px );
|
|
|
+ width: 298px;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ }
|
|
|
+ .mainLeftTop{
|
|
|
+ display: flex;
|
|
|
+ border-bottom: 1px solid #EEEEEE;
|
|
|
+ }
|
|
|
+ .sx{
|
|
|
+ width: 3px;
|
|
|
+ height: 12px;
|
|
|
+ background: #FF4F00;
|
|
|
+ margin-top: 18px;margin-left: 14px;
|
|
|
+ }
|
|
|
+ .leftTitle{
|
|
|
+ line-height: 48px;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #333333;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-left: 8px;
|
|
|
+ }
|
|
|
+ .mainLeftLine{
|
|
|
+ color: #333333; font-size: 14px; border-bottom: 1px solid #EEEEEE;
|
|
|
+ line-height: 20px;padding: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .mainRight1{
|
|
|
+ height: calc(100vh - 200px );
|
|
|
+ width: calc(100% - 320px );
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ margin-left: 20px;
|
|
|
+ overflow-y: scroll;
|
|
|
+
|
|
|
+ }
|
|
|
+ .mainRightTop{
|
|
|
+ display: flex;padding-top: 20px;padding-left: 15px;
|
|
|
+ }
|
|
|
+ .childrensearchBox{
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .childrensearchImg{
|
|
|
+ width: 16px;right: 10px;
|
|
|
+ height: 16px;
|
|
|
+ position: absolute;top: 9px;
|
|
|
+ }
|
|
|
+ .sx2{
|
|
|
+ width: 3px;
|
|
|
+ height: 12px;
|
|
|
+ background: #FF4F00;
|
|
|
+ margin-top: 11px;
|
|
|
+ }
|
|
|
+ .childrensearchInput{
|
|
|
+ width: 312px;
|
|
|
+ height: 34px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ }
|
|
|
+ .mainRightTopTitle{
|
|
|
+ line-height: 34px;font-weight: 500;font-size: 14px;
|
|
|
+color: #333333;padding-left: 10px;padding-right: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @media screen and (min-width: 750px) {
|
|
|
+ .mainRightLine {
|
|
|
+ width: 45%;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ @media screen and (min-width: 1024px) {
|
|
|
+ .mainRightLine {
|
|
|
+ width: 29%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @media screen and (min-width: 1350px) {
|
|
|
+ .mainRightLine {
|
|
|
+ width: 21%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .mainRightLine{
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ margin: 1vw;
|
|
|
+
|
|
|
+ }
|
|
|
+ .mainRightLineImgBox {
|
|
|
+ /*图片容器宽高各220px,容器水平居中,图片水平垂直居中*/
|
|
|
+ width: 100%;
|
|
|
+ height: 180px;
|
|
|
+ margin: 0 auto;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ border-bottom: 1px solid #EEEEEE;
|
|
|
+ }
|
|
|
+ .mainRightLineImg {
|
|
|
+ /*图片宽高各200px*/
|
|
|
+ width: 100%;
|
|
|
+ height: 180px;
|
|
|
+ }
|
|
|
+ .mainRightCont{
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ }
|
|
|
+ .mainRightLineMsBox{
|
|
|
+ padding-left: 15px;
|
|
|
+ padding-top: 15px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ }
|
|
|
+ .mainRightLineName{
|
|
|
+ font-size: 14px;font-weight: 500;color: #333333;
|
|
|
+ width: calc(100% - 30px);
|
|
|
+ word-wrap: break-word; /*强制换行*/
|
|
|
+ overflow: hidden; /*超出隐藏*/
|
|
|
+ text-overflow: ellipsis;/*隐藏后添加省略号*/
|
|
|
+ white-space: nowrap;/*强制不换行*/
|
|
|
+ }
|
|
|
+ .mainRightLineZm{
|
|
|
+ font-size: 12px;font-weight: 400;color: #999999;padding-top: 4px;
|
|
|
+ width: calc(100% - 30px);
|
|
|
+ word-wrap: break-word; /*强制换行*/
|
|
|
+ overflow: hidden; /*超出隐藏*/
|
|
|
+ text-overflow: ellipsis;/*隐藏后添加省略号*/
|
|
|
+ white-space: nowrap;/*强制不换行*/
|
|
|
+ }
|
|
|
+ .mainRightLineRemarks{
|
|
|
+ font-size: 12px;font-weight: 400;color: #999999;padding-top: 4px;
|
|
|
+ width: calc(100% - 30px);
|
|
|
+ word-wrap: break-word; /*强制换行*/
|
|
|
+ overflow: hidden; /*超出隐藏*/
|
|
|
+ text-overflow: ellipsis;/*隐藏后添加省略号*/
|
|
|
+ white-space: nowrap;/*强制不换行*/
|
|
|
+ }
|
|
|
+ .mainLeftLineActive{
|
|
|
+ background: #FDF9E6;
|
|
|
+ }
|
|
|
+ .childrenMain{
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .childrenMainLeft{
|
|
|
+ height: calc(100vh - 200px );
|
|
|
+ width: 55%;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+ .childrenMainRight{
|
|
|
+ height: calc(100vh - 200px );
|
|
|
+ width: calc(45% - 15px );
|
|
|
+ margin-left: 15px;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #EEEEEE;
|
|
|
+ }
|
|
|
+ .childrenImg{
|
|
|
+ width: 80%;
|
|
|
+
|
|
|
+ }
|
|
|
+/deep/ .el-table .has-gutter th.el-table__cell{
|
|
|
+ background-color: #F7F9F8;
|
|
|
+ }
|
|
|
+</style>
|