Commit 94e7a239 by liwk

commit

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