Authored by lin

调整页面显示

... ... @@ -57,20 +57,20 @@
<div class="select-container">
<Input v-model.trim="filters.orderCode.model" :placeholder="filters.orderCode.label" />
</div>
<div class="select-container">
<Select v-model.trim="filters.clearingType.model" :placeholder="filters.clearingType.label">
<Option v-for="option in filters.clearingType.options" :key="option.value" :value="option.value">{{
option.label
}}</Option>
</Select>
</div>
<div class="select-container">
<Select v-model.trim="filters.subClearingType.model" :placeholder="filters.subClearingType.label">
<Option v-for="option in filters.subClearingType.options" :key="option.value" :value="option.value">{{
option.label
}}</Option>
</Select>
</div>
<!-- <div class="select-container">-->
<!-- <Select v-model.trim="filters.clearingType.model" :placeholder="filters.clearingType.label">-->
<!-- <Option v-for="option in filters.clearingType.options" :key="option.value" :value="option.value">{{-->
<!-- option.label-->
<!-- }}</Option>-->
<!-- </Select>-->
<!-- </div>-->
<!-- <div class="select-container">-->
<!-- <Select v-model.trim="filters.subClearingType.model" :placeholder="filters.subClearingType.label">-->
<!-- <Option v-for="option in filters.subClearingType.options" :key="option.value" :value="option.value">{{-->
<!-- option.label-->
<!-- }}</Option>-->
<!-- </Select>-->
<!-- </div>-->
<div class="select-container">
<Select v-model.trim="filters.withdrawStatus.model" :placeholder="filters.withdrawStatus.label">
<Option v-for="option in filters.withdrawStatus.options" :key="option.value" :value="option.value">{{
... ... @@ -81,7 +81,7 @@
<div class="select-container">
<Button type="primary" @click="search">查询</Button>
<Button type="primary" @click="reset">全部</Button>
<Button>导出</Button>
<!-- <Button>导出</Button>-->
</div>
</filter-item>
</layout-filter>
... ...
... ... @@ -99,10 +99,10 @@ export default function() {
},
{
title: '结算时间',
key: 'createTime',
key: 'clearingTime',
align: 'center',
render(h, params) {
const time = moment.unix(params.row.createTime);
const time = moment.unix(params.row.clearingTime);
return (
<div>
<div>{time.format('YYYY/MM/DD')}</div>
... ... @@ -125,7 +125,7 @@ export default function() {
},
{
title: '商家实收(元)',
key: 'amount',
key: 'realIncome',
},
{
title: '提现状态',
... ... @@ -142,51 +142,57 @@ export default function() {
},
{
title: '提现申请日期',
key: 'applyTime',
key: 'withdrawTime',
align: 'center',
render(h, params) {
const applyTime = moment.unix(params.row.applyTime);
if (!params.row.withdrawTime){
return ""
}
const withdrawTime = moment.unix(params.row.withdrawTime);
return (
<div>
<div>{applyTime.format('YYYY/MM/DD')}</div>
<div>{applyTime.format('HH:mm:ss')}</div>
<div>{withdrawTime.format('YYYY/MM/DD')}</div>
<div>{withdrawTime.format('HH:mm:ss')}</div>
</div>
);
},
},
{
title: '提现成功日期',
key: 'applySuccessTime',
key: 'withdrawSuccessTime',
align: 'center',
render(h, params) {
const appSuTime = moment.unix(params.row.applySuccessTime);
if (!params.row.withdrawSuccessTime){
return ""
}
const withdrawSuccessTime = moment.unix(params.row.withdrawSuccessTime);
return (
<div>
<div>{appSuTime.format('YYYY/MM/DD')}</div>
<div>{appSuTime.format('HH:mm:ss')}</div>
<div>{withdrawSuccessTime.format('YYYY/MM/DD')}</div>
<div>{withdrawSuccessTime.format('HH:mm:ss')}</div>
</div>
);
},
},
{
title: '操作',
key: 'action',
width: 180,
align: 'center',
render: (h, params) => {
const row = params.row;
return (
<div>
<div class="cell-action-row">
<i-button type="primary" size="small" onClick={() => this.getDetailById(row.id)}>
查看明细
</i-button>
</div>
</div>
);
},
className: 'action-column',
},
// {
// title: '操作',
// key: 'action',
// width: 180,
// align: 'center',
// render: (h, params) => {
// const row = params.row;
// return (
// <div>
// <div class="cell-action-row">
// <i-button type="primary" size="small" onClick={() => this.getDetailById(row.id)}>
// 查看明细
// </i-button>
// </div>
// </div>
// );
// },
// className: 'action-column',
// },
],
tableData: [],
pageData: {
... ...