Authored by lin

调整页面显示

... ... @@ -27,7 +27,7 @@ export default function() {
label: 'SKU',
model: '',
},
withdrawStatus: {
status: {
label: '提现状态',
model: '',
options: [
... ...
... ... @@ -24,7 +24,7 @@ export default function() {
label: '时间标志',
model: '',
},
withdrawStatus: {
status: {
label: '提现状态',
model: '',
options: [
... ... @@ -50,7 +50,7 @@ export default function() {
label: '订单号',
model: '',
},
sku: {
productSku: {
label: 'SKU',
model: '',
},
... ... @@ -113,18 +113,22 @@ export default function() {
{
title: '订单号',
key: 'orderCode',
align: 'center',
},
{
title: 'SKU',
key: 'productSku',
align: 'center',
},
{
title: '商品名称',
key: 'productName',
align: 'center',
},
{
title: '账务类型',
key: 'clearingType',
align: 'center',
},
{
title: '子账务类型',
... ... @@ -153,6 +157,7 @@ export default function() {
{
title: '商家实收(元)',
key: 'amount',
align: 'center',
},
{
title: '提现状态',
... ... @@ -201,25 +206,25 @@ export default function() {
);
},
},
{
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: {
... ...
... ... @@ -50,8 +50,8 @@
>
</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">{{
<Select v-model.trim="filters.status.model" :placeholder="filters.status.label">
<Option v-for="option in filters.status.options" :key="option.value" :value="option.value">{{
option.label
}}</Option>
</Select>
... ... @@ -65,7 +65,7 @@
<Input v-model.trim="filters.orderCode.model" :placeholder="filters.orderCode.label" />
</div>
<div class="select-container">
<Input v-model.trim="filters.sku.model" :placeholder="filters.sku.label" />
<Input v-model.trim="filters.productSku.model" :placeholder="filters.productSku.label" />
</div>
<div class="select-container">
<Input v-model.trim="filters.productName.model" :placeholder="filters.productName.label" />
... ... @@ -151,10 +151,10 @@ export default {
beginTime: 'beginTime',
endTime: 'endTime',
timeFlag: 'timeFlag',
withdrawStatus: 'withdrawStatus',
status: 'status',
targetAccount: 'targetAccount',
orderCode: 'orderCode',
sku: 'sku',
productSku: 'productSku',
productName: 'productName',
clearingType: 'clearingType',
subClearingType: 'subClearingType',
... ... @@ -225,7 +225,7 @@ export default {
this.financeService.shopWithdrawAccountList(params).then(ret => {
this.tableData = _.get(ret, 'data.records', []);
this.pageData.total = _.get(ret, 'data.totalCount', 0);
this.pageData.current = _.get(ret, 'data.pageNo', 0) + 1;
this.pageData.current = _.get(ret, 'data.pageNo', 1);
});
},
getDetailById(id) {
... ...