Authored by OF1706

bug share

... ... @@ -90,11 +90,10 @@ export default function() {
render: (h, params) => {
const row = params.row;
row.answerTimeStr = '';
return (
<div>
<p>咨询:{row.askTimeStr.length > 0 ? row.askTimeStr : '—'}</p>
<p>回复:{row.answerTimeStr.length > 0 ? row.answerTimeStr : '—'}</p>
<p>{row.answerTimeStr.length > 0 ? `回复:${row.answerTimeStr}` : ''}</p>
</div>
);
}
... ... @@ -111,7 +110,6 @@ export default function() {
if (status === 2) {
return (
<div class="cell-action-row">
{status === 2 ? (<p></p>) : (<p>2</p>)}
<i-button type="error" size="small"
onClick={() => this.editAnswer(row)}>
修改
... ...
... ... @@ -38,7 +38,8 @@
<layout-list>
<Table border :columns="tableCols" :data="tableData" @on-selection-change="selectChange"></Table>
<Page :total="pageData.total" :current="pageData.current"
<Page :total="pageData.total"
:current="pageData.current"
@on-change="pageChange" show-total></Page>
</layout-list>
... ... @@ -92,7 +93,7 @@
endTime = fts.endTime.model;
let page = this.pageData.current;
let size = this.pageData.size;
let pageSize = this.pageData.pageSize;
if (this.filters.erpSkuId.model) {
if (this.isNumber(this.filters.erpSkuId.model)) {
... ... @@ -110,7 +111,7 @@
}
}
params.size = this.pageData.size;
params.pageSize = this.pageData.pageSize;
params.page = this.pageData.current;
return Promise.resolve({
... ... @@ -123,7 +124,7 @@
beginTime,
endTime,
page,
size
pageSize
});
},
list() {
... ...
... ... @@ -11,11 +11,6 @@ export default function() {
return {
tableCols: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: 'SKU',
key: 'erpSkuId',
width: 100,
... ... @@ -99,7 +94,8 @@ export default function() {
tableData: [],
pageData: {
total: 0,
current: 1
current: 1,
pageSize: 10
},
filters: {
erpSkuId: {
... ...