Commit 81161896 by cwq0219

样式

1 parent ff718e14
...@@ -26,6 +26,7 @@ $prefix: d2; ...@@ -26,6 +26,7 @@ $prefix: d2;
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
} }
%flex-center-col { %flex-center-col {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -47,6 +48,7 @@ $prefix: d2; ...@@ -47,6 +48,7 @@ $prefix: d2;
.el-table--medium td { .el-table--medium td {
padding: 4px 0 !important; padding: 4px 0 !important;
} }
.el-table .cell { .el-table .cell {
padding: 0 0; padding: 0 0;
} }
...@@ -59,13 +61,13 @@ $prefix: d2; ...@@ -59,13 +61,13 @@ $prefix: d2;
.extend-up-btns { .extend-up-btns {
position: absolute; position: absolute;
bottom: 32%; bottom: 22%;
right: 20px; right: 20px;
} }
.extend-down-btns { .extend-down-btns {
position: absolute; position: absolute;
bottom: 9%; bottom: 5%;
right: 20px; right: 20px;
} }
...@@ -74,8 +76,14 @@ $prefix: d2; ...@@ -74,8 +76,14 @@ $prefix: d2;
font-weight: bold; font-weight: bold;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
color:#0947C6; color: #0947C6;
border-bottom: 1px solid #E7EAEC; border-bottom: 1px solid #E7EAEC;
padding-left: 20px; padding-left: 20px;
margin: 0 0; margin: 0 0;
}
\ No newline at end of file \ No newline at end of file
}
.table-header-left-txt {
font-size: 12px;
color: #6C6F71;
margin-left: 20px;
}
...@@ -32,6 +32,6 @@ export default { ...@@ -32,6 +32,6 @@ export default {
font-size: 14px; font-size: 14px;
} }
.table-header .grid { .table-header .grid {
margin-right: 5px; margin-right: 20px;
} }
</style> </style>
...@@ -51,40 +51,40 @@ ...@@ -51,40 +51,40 @@
>重置</el-button> >重置</el-button>
</div> </div>
</div> </div>
<d2-table-header> <div class="d2-container-content">
<span slot="left">客户列表记录xx条,其中已升级客户记录xx条。</span> <d2-table-header>
<auth-button <span slot="left">客户列表记录xx条,其中已升级客户记录xx条。</span>
category="Button" <auth-button category="Button"></auth-button>
></auth-button> </d2-table-header>
</d2-table-header> <el-table :data="tableData">
<el-table :data="tableData"> <el-table-column
<el-table-column label="序号"
label="序号" width="60px"
width="60px" type='index'
type='index' ></el-table-column>
></el-table-column> <el-table-column label="客户信息">
<el-table-column label="客户信息"> <el-table-column label="客户姓名"></el-table-column>
<el-table-column label="客户姓名"></el-table-column> <el-table-column label="性别"></el-table-column>
<el-table-column label="性别"></el-table-column> <el-table-column label="品牌车型"></el-table-column>
<el-table-column label="品牌车型"></el-table-column> <el-table-column label="车架号"></el-table-column>
<el-table-column label="车架号"></el-table-column> <el-table-column label="客户状态"></el-table-column>
<el-table-column label="客户状态"></el-table-column> </el-table-column>
</el-table-column> <el-table-column label="商户信息">
<el-table-column label="商户信息"> <el-table-column label="基础商品"></el-table-column>
<el-table-column label="基础商品"></el-table-column> <el-table-column label="升级商品"></el-table-column>
<el-table-column label="升级商品"></el-table-column> <el-table-column label="升级状态"></el-table-column>
<el-table-column label="升级状态"></el-table-column> <el-table-column label="服务时间"></el-table-column>
<el-table-column label="服务时间"></el-table-column> </el-table-column>
</el-table-column> <el-table-column label="关联信息">
<el-table-column label="关联信息"> <el-table-column label="流量来源"></el-table-column>
<el-table-column label="流量来源"></el-table-column> <el-table-column label="推荐人"></el-table-column>
<el-table-column label="推荐人"></el-table-column> <el-table-column label="服务门店"></el-table-column>
<el-table-column label="服务门店"></el-table-column> <el-table-column label="转化专员"></el-table-column>
<el-table-column label="转化专员"></el-table-column> </el-table-column>
</el-table-column> <el-table-column label="创建时间"></el-table-column>
<el-table-column label="创建时间"></el-table-column> <el-table-column label="创建方式"></el-table-column>
<el-table-column label="创建方式"></el-table-column> </el-table>
</el-table> </div>
</d2-container> </d2-container>
</template> </template>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
label-width="110px" label-width="110px"
v-loading="$store.state.d2admin.loading.value" v-loading="$store.state.d2admin.loading.value"
> >
<p class="title">关联信息来源</p> <p class="title">关联门店信息</p>
<el-form-item <el-form-item
id="storeId" id="storeId"
label="流量来源:" label="流量来源:"
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
>否</el-radio> >否</el-radio>
</el-form-item> </el-form-item>
<p class="title">装饰内容</p> <p class="title">商品预装信息</p>
<el-form-item <el-form-item
id="goods" id="goods"
label="基础商品:" label="基础商品:"
......
...@@ -33,42 +33,43 @@ ...@@ -33,42 +33,43 @@
>重置</el-button> >重置</el-button>
</div> </div>
</div> </div>
<d2-table-header> <div class="d2-container-content">
<span slot="left"> <d2-table-header>
<auth-button <span slot="left">
category="Button" <auth-button
style="{display: inline-block}" category="Button"
showBtnName="['预录客户']" style="{display: inline-block}"
></auth-button> showBtnName="['预录客户']"
<span>已预录客户列表xx条记录。</span> ></auth-button>
</span> <span class="table-header-left-txt">已预录客户列表xx条记录。</span>
<span> </span>
<span class="btn-tips"><i class="el-icon-warning"></i>所有号码已启用隐私号码保护功能!</span> <span>
<span class="btn-tips"><img src="../../assets/icon-warn.png">所有号码已启用隐私号码保护功能!</span>
<auth-button
category="Button"
showBtnName="['一键导入']"
></auth-button>
</span>
</d2-table-header>
<d2-table
ref="recordTable"
:searchForm="searchForm"
:tableParams="tableParams"
:getListApi="getListApi"
:beforeSearchFn="beforeSearchFn"
>
<auth-button <auth-button
category="Button" slot="auth-button"
showBtnName="['一键导入']" slot-scope="scope"
:data="scope.scope"
></auth-button> ></auth-button>
</span> </d2-table>
</d2-table-header> </div>
<d2-table
ref="recordTable"
:searchForm="searchForm"
:tableParams="tableParams"
:getListApi="getListApi"
:beforeSearchFn="beforeSearchFn"
>
<auth-button
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
></auth-button>
</d2-table>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { getList } from '@api/recordList' import { getList } from '@api/recordList'
import util from '@/libs/util.js'
import { getServiceStore, getStaff, getCarInfo, getCarType, getGoods, addOrder } from '@api/editCustomer' import { getServiceStore, getStaff, getCarInfo, getCarType, getGoods, addOrder } from '@api/editCustomer'
export default { export default {
name: 'recordList', name: 'recordList',
...@@ -235,17 +236,21 @@ export default { ...@@ -235,17 +236,21 @@ export default {
display: inline-block; display: inline-block;
width: 220px; width: 220px;
} }
.record-list .btn-tips .el-icon-warning { .record-list .btn-tips img {
color: #eb7653; width: 18px;
height: 15px;
margin-right: 9px;
vertical-align: bottom;
} }
.record-list .btn-tips { .record-list .btn-tips {
display: inline-block; display: inline-block;
height: 28px; font-size: 12px;
line-height: 28px; height: 14px;
background-color: #fad9cf; line-height: 14px;
background-color: #fff2e5;
color: #999999; color: #999999;
margin-right: 5px; margin-right: 24px;
padding-left: 5px; padding: 6.5px 10px;
} }
.record-list p { .record-list p {
margin: 0 0; margin: 0 0;
......
...@@ -24,41 +24,42 @@ ...@@ -24,41 +24,42 @@
>重置</el-button> >重置</el-button>
</div> </div>
</div> </div>
<d2-table-header> <div class="d2-container-content">
<span slot="left"> <d2-table-header>
<span slot="left">
<auth-button
category="Button"
style="{display: inline-block}"
showBtnName="['新增商品']"
></auth-button>
</span>
<auth-button <auth-button
category="Button" category="Button"
style="{display: inline-block}" style="{display: inline-block}"
showBtnName="['新增商品']" showBtnName="['导出']"
></auth-button> ></auth-button>
</span> </d2-table-header>
<auth-button <d2-table
category="Button" ref="commodityTable"
style="{display: inline-block}" :hasNum="false"
showBtnName="['导出']" :searchForm="searchForm"
></auth-button> :tableParams="tableParams"
</d2-table-header> :getListApi="getListApi"
<d2-table :beforeSearchFn="beforeSearchFn"
ref="commodityTable" >
:hasNum="false" <img
:searchForm="searchForm" slot="img"
:tableParams="tableParams" slot-scope="scope"
:getListApi="getListApi" class="pro-img"
:beforeSearchFn="beforeSearchFn" :src="scope.scope.goodsInfo.thumbUrl"
> />
<img <auth-button
slot="img" v-if="Object.keys(scope.scope).includes('upgradeGoodsList')"
slot-scope="scope" slot="auth-button"
class="pro-img" slot-scope="scope"
:src="scope.scope.goodsInfo.thumbUrl" :data="scope.scope"
/> ></auth-button>
<auth-button <!-- <auth-button
v-if="Object.keys(scope.scope).includes('upgradeGoodsList')"
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
></auth-button>
<!-- <auth-button
v-if="Object.keys(scope.scope).includes('upgradeGoodsList')" v-if="Object.keys(scope.scope).includes('upgradeGoodsList')"
slot="auth-button" slot="auth-button"
slot-scope="scope" slot-scope="scope"
...@@ -72,7 +73,8 @@ ...@@ -72,7 +73,8 @@
type="text" type="text"
@click="handleUpOrDown" @click="handleUpOrDown"
>{{scope.scope.state ? '上架' : '下架'}}</el-button> --> >{{scope.scope.state ? '上架' : '下架'}}</el-button> -->
</d2-table> </d2-table>
</div>
<d2-dialog <d2-dialog
title="门店列表" title="门店列表"
:className="storeDetail" :className="storeDetail"
......
...@@ -24,39 +24,41 @@ ...@@ -24,39 +24,41 @@
>重置</el-button> >重置</el-button>
</div> </div>
</div> </div>
<d2-table-header> <div class="d2-container-content">
<span slot="left"> <d2-table-header>
<span slot="left">
<auth-button
category="Button"
style="{display: inline-block}"
showBtnName="['新增素材']"
></auth-button>
</span>
<auth-button <auth-button
category="Button" category="Button"
style="{display: inline-block}" style="{display: inline-block}"
showBtnName="['新增素材']" showBtnName="['导出']"
></auth-button> ></auth-button>
</span> </d2-table-header>
<auth-button <d2-table
category="Button" ref="productTable"
style="{display: inline-block}" :searchForm="searchForm"
showBtnName="['导出']" :tableParams="tableParams"
></auth-button> :getListApi="getListApi"
</d2-table-header> :beforeSearchFn="beforeSearchFn"
<d2-table >
ref="productTable" <img
:searchForm="searchForm" slot="img"
:tableParams="tableParams" slot-scope="scope"
:getListApi="getListApi" class="pro-img"
:beforeSearchFn="beforeSearchFn" :src="scope.scope.thumbUrl"
> />
<img <auth-button
slot="img" slot="auth-button"
slot-scope="scope" slot-scope="scope"
class="pro-img" :data="scope.scope"
:src="scope.scope.thumbUrl" ></auth-button>
/> </d2-table>
<auth-button </div>
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
></auth-button>
</d2-table>
</d2-container> </d2-container>
</template> </template>
......
<!-- 个人信息 --> <!-- 个人信息 -->
<template> <template>
<d2-container class="personalInfo"> <d2-container class="personalInfo">
<p class="title">个人信息</p> <div class="d2-container-content">
<el-form> <p class="title">个人信息</p>
<template v-for="(item, index) in (formData.userType === 1 ? userformList : formList)"> <el-form>
<el-form-item <template v-for="(item, index) in (formData.userType === 1 ? userformList : formList)">
:key="index" <el-form-item
:label="item.label" :key="index"
label-width="120px" :label="item.label"
v-show="!item.hasOwnProperty('isDisabled') || formData[item.isDisabled]" label-width="120px"
> v-show="!item.hasOwnProperty('isDisabled') || formData[item.isDisabled]"
<template v-if="item.type === 'photo'"> >
<img <template v-if="item.type === 'photo'">
class="info-img" <img
v-for="(subItem, subIndex) in formData[item.name]" class="info-img"
:key="subIndex" v-for="(subItem, subIndex) in formData[item.name]"
:src="subItem.mediaUrl" :key="subIndex"
/> :src="subItem.mediaUrl"
</template> />
<template v-else-if="Array.isArray(formData[item.name])"> </template>
<el-tag <template v-else-if="Array.isArray(formData[item.name])">
class="tag" <el-tag
type="warning" class="tag"
v-for="(subItem, subIndex) in formData[item.name]" type="warning"
:key="subIndex" v-for="(subItem, subIndex) in formData[item.name]"
>{{item.attrName ? subItem.brandName : subItem}}</el-tag> :key="subIndex"
</template> >{{item.attrName ? subItem.brandName : subItem}}</el-tag>
<span v-else-if="item.formatter">{{item.formatter(formData)}}</span> </template>
<span v-else-if="item.parentName">{{formData[item.parentName][item.name]}}</span> <span v-else-if="item.formatter">{{item.formatter(formData)}}</span>
<span v-else>{{formData[item.name]}}</span> <span v-else-if="item.parentName">{{formData[item.parentName][item.name]}}</span>
<span v-else>{{formData[item.name]}}</span>
</el-form-item>
</template>
<el-form-item v-if="formData.userType !== 1">
<a
class="info-link"
href="http://dj.glsx.com.cn/web-dj-site/#/system/personallnfo"
target="_blank"
>修改个人信息请到嘀加平台修改,点击快速修改</a>
</el-form-item> </el-form-item>
</template> </el-form>
<el-form-item </div>
v-if="formData.userType !== 1"
>
<a
class="info-link"
href="http://dj.glsx.com.cn/web-dj-site/#/system/personallnfo"
target="_blank"
>修改个人信息请到嘀加平台修改,点击快速修改</a>
</el-form-item>
</el-form>
</d2-container> </d2-container>
</template> </template>
......
...@@ -24,22 +24,24 @@ ...@@ -24,22 +24,24 @@
>重置</el-button> >重置</el-button>
</div> </div>
</div> </div>
<d2-table-header> <div class="d2-container-content">
<auth-button category="Button"></auth-button> <d2-table-header>
</d2-table-header> <auth-button category="Button"></auth-button>
<d2-table </d2-table-header>
ref="serviceStoreTable" <d2-table
:searchForm="searchForm" ref="serviceStoreTable"
:tableParams="tableParams" :searchForm="searchForm"
:getListApi="getListApi" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn" :getListApi="getListApi"
> :beforeSearchFn="beforeSearchFn"
<auth-button >
slot="auth-button" <auth-button
slot-scope="scope" slot="auth-button"
:data="scope.scope" slot-scope="scope"
></auth-button> :data="scope.scope"
</d2-table> ></auth-button>
</d2-table>
</div>
<relate-store-dialog <relate-store-dialog
v-if="relateStoreVisible" v-if="relateStoreVisible"
ref="relateStore" ref="relateStore"
...@@ -263,7 +265,7 @@ export default { ...@@ -263,7 +265,7 @@ export default {
padding: 6px 8px !important; padding: 6px 8px !important;
} }
.service-store .el-checkbox__input.is-disabled .el-checkbox__inner { .service-store .el-checkbox__input.is-disabled .el-checkbox__inner {
background-color: #CECECE; background-color: #cecece;
border-color: #CECECE; border-color: #cecece;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!