...
|
...
|
@@ -7,6 +7,7 @@ import CellInfo from 'components/cell/cell-info'; |
|
|
|
|
|
export default function() {
|
|
|
return {
|
|
|
categoryValue: [],
|
|
|
tableCols: [
|
|
|
{
|
|
|
title: 'SKN',
|
...
|
...
|
@@ -58,13 +59,29 @@ export default function() { |
|
|
},
|
|
|
{
|
|
|
title: '回复内容',
|
|
|
key: 'answer',
|
|
|
align: 'center'
|
|
|
align: 'center',
|
|
|
render: (h, params) => {
|
|
|
let answer = params.row.answer;
|
|
|
|
|
|
if (answer.length > 0) {
|
|
|
return answer;
|
|
|
} else {
|
|
|
return '—';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: '回复人',
|
|
|
key: 'answerUserName',
|
|
|
align: 'center',
|
|
|
render: (h, params) => {
|
|
|
let answerUserName = params.row.answerUserName;
|
|
|
|
|
|
if (answerUserName) {
|
|
|
return params.row.answerUserName;
|
|
|
} else {
|
|
|
return '—';
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
title: '咨询及回复时间',
|
...
|
...
|
@@ -75,10 +92,10 @@ export default function() { |
|
|
const infoItems = [
|
|
|
{
|
|
|
label: '咨询',
|
|
|
value: row.askTimeStr
|
|
|
value: row.askTimeStr.length > 0 ? row.askTimeStr : '—'
|
|
|
}, {
|
|
|
label: '回复',
|
|
|
value: row.answerTimeStr
|
|
|
value: row.answerTimeStr.length > 0 ? row.answerTimeStr : '—'
|
|
|
}
|
|
|
];
|
|
|
|
...
|
...
|
@@ -102,7 +119,7 @@ export default function() { |
|
|
return (
|
|
|
<div class="cell-action-row">
|
|
|
<i-button type="error" size="small"
|
|
|
onClick={() => this.editAnswer(row)}>
|
|
|
onClick={() => this.editAnswer(row)}>
|
|
|
修改
|
|
|
</i-button>
|
|
|
</div>
|
...
|
...
|
@@ -111,7 +128,7 @@ export default function() { |
|
|
return (
|
|
|
<div class="cell-action-row">
|
|
|
<i-button type="primary" size="small"
|
|
|
onClick={() => this.editAnswer(row)}>
|
|
|
onClick={() => this.editAnswer(row)}>
|
|
|
回复
|
|
|
</i-button>
|
|
|
</div>
|
...
|
...
|
|