Commit 94e7a239 by liwk

commit

1 parent fb02942e
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelect" @selection-change="handleSelect"
size="medium" size="medium"
:show-summary="tableParams.showSummary"
> >
<el-table-column <el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
......
...@@ -29,6 +29,9 @@ export default { ...@@ -29,6 +29,9 @@ export default {
</script> </script>
<style scope> <style scope>
.table-tooltip {
padding-right: 0 !important;
}
.table-tooltip .el-button { .table-tooltip .el-button {
border: none !important; border: none !important;
} }
...@@ -39,4 +42,7 @@ export default { ...@@ -39,4 +42,7 @@ export default {
.table-tooltip .el-button:hover { .table-tooltip .el-button:hover {
background-color: transparent; background-color: transparent;
} }
.table-tooltip .el-button:focus {
color: initial;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
<d2-table <d2-table
:searchForm="searchObj" :searchForm="searchObj"
:tableParams="tableParams" :tableParams="tableParams"
:tableData="tableData"
:hasNum="false" :hasNum="false"
> >
<span <span
...@@ -123,17 +124,6 @@ ...@@ -123,17 +124,6 @@
<template slot='custom'> <template slot='custom'>
<div class="table-custom"> <div class="table-custom">
<el-button type="primary">导出</el-button> <el-button type="primary">导出</el-button>
<div class="table-price-box">
<div class="table-price-label">合计:</div>
<template v-for="(i,index) in priceItem">
<div
:key="index"
class="table-price"
>
{{i}}元
</div>
</template>
</div>
</div> </div>
</template> </template>
</d2-table> </d2-table>
...@@ -146,7 +136,6 @@ export default { ...@@ -146,7 +136,6 @@ export default {
name: '', name: '',
data () { data () {
return { return {
priceItem: [22.22, 11.25, 9527],
searchObj: { searchObj: {
status: 1 status: 1
}, },
...@@ -164,8 +153,59 @@ export default { ...@@ -164,8 +153,59 @@ export default {
label: '售后中', label: '售后中',
value: 4 value: 4
}], }],
tableData: [
{
cardNo: '123',
activationCode: '恒河猴22',
memberName: 'SS2W',
sn: '56456456',
updatedDate: 'JKHSJKSH',
cardNoSSS: 'SHJJKHK',
AAA: '掉接口',
BBB: 'SDS1D1擦拭',
CCC: '胜多负少的',
DDD: '试胆大会'
},
{
cardNo: '123',
activationCode: '恒河猴22',
memberName: 'SS2W',
sn: '56456456',
updatedDate: 'JKHSJKSH',
cardNoSSS: 'SHJJKHK',
AAA: '掉接口',
BBB: 'SDS1D1擦拭',
CCC: '胜多负少的',
DDD: '试胆大会'
},
{
cardNo: '123',
activationCode: '恒河猴22',
memberName: 'SS2W',
sn: '56456456',
updatedDate: 'JKHSJKSH',
cardNoSSS: 'SHJJKHK',
AAA: '掉接口',
BBB: 'SDS1D1擦拭',
CCC: '胜多负少的',
DDD: '试胆大会'
},
{
cardNo: '123',
activationCode: '恒河猴22',
memberName: 'SS2W',
sn: '56456456',
updatedDate: 'JKHSJKSH',
cardNoSSS: 'SHJJKHK',
AAA: '掉接口',
BBB: 'SDS1D1擦拭',
CCC: '胜多负少的',
DDD: '试胆大会'
},
],
tableParams: { tableParams: {
listName: 'list', // listName: 'list',
showSummary: true,
tableColumns: [ tableColumns: [
{ {
label: '订单编号', label: '订单编号',
...@@ -186,48 +226,36 @@ export default { ...@@ -186,48 +226,36 @@ export default {
label: '商品名称', label: '商品名称',
prop: 'memberName', prop: 'memberName',
minWidth: '200', minWidth: '200',
formatter: (cellValue) => {
return cellValue.memberCardDefine.memberName
}
}, },
{ {
label: '订单成本金额', label: '订单成本金额',
prop: 'updatedDate', prop: 'updatedDate',
minWidth: '200', minWidth: '200',
formatter: (cellValue) => {
return this.date_format(cellValue.updatedDate)
}
}, },
{ {
label: '订单支付金额', label: '订单支付金额',
prop: 'cardNo', prop: 'cardNoSSS',
minWidth: '200' minWidth: '200'
}, },
{ {
label: '销售差额', label: '销售差额',
prop: 'activationCode', prop: 'AAA',
minWidth: '200', minWidth: '200',
}, },
{ {
label: '下单渠道', label: '下单渠道',
prop: 'sn', prop: 'CCC',
minWidth: '200', minWidth: '200',
}, },
{ {
label: '订单状态', label: '订单状态',
prop: 'memberName', prop: 'BBB',
minWidth: '200', minWidth: '200',
formatter: (cellValue) => {
return cellValue.memberCardDefine.memberName
}
}, },
{ {
label: '下单时间', label: '下单时间',
prop: 'updatedDate', prop: 'DDD',
minWidth: '200', minWidth: '200',
formatter: (cellValue) => {
return this.date_format(cellValue.updatedDate)
}
}, },
] ]
} }
......
...@@ -234,6 +234,7 @@ export default { ...@@ -234,6 +234,7 @@ export default {
[{ 'size': ['small', false, 'large', 'huge'] }], [{ 'size': ['small', false, 'large', 'huge'] }],
[{ 'color': [] }, { 'background': [] }], [{ 'color': [] }, { 'background': [] }],
[{ 'align': [] }], [{ 'align': [] }],
['clean'],
['link', 'image'] ['link', 'image']
] ]
} }
......
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
{ {
prop: 'mobile', prop: 'mobile',
minWidth: '200', minWidth: '200',
sortable: true,
renderHeader: (h) => { renderHeader: (h) => {
return h( return h(
'div', 'div',
...@@ -192,8 +193,9 @@ export default { ...@@ -192,8 +193,9 @@ export default {
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style > <style >
.table-header { .table-header {
display: flex !important; display: inline-flex !important;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 0 !important;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
label: '下单时间', label: '下单时间',
prop: 'validitDate', prop: 'validitDate',
minWidth: '200', minWidth: '200',
sortable: true,
formatter: (cellValue) => { formatter: (cellValue) => {
} }
}, },
......
...@@ -179,9 +179,10 @@ export default { ...@@ -179,9 +179,10 @@ export default {
} }
}, },
{ {
label: '下单时间', label: '售后时间',
prop: 'validitDate', prop: 'validitDate',
minWidth: '200', minWidth: '200',
sortable: true,
formatter: (cellValue) => { formatter: (cellValue) => {
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!