Authored by 陈峰

Merge branch 'feature/suggestDev' into 'master'

Feature/suggest dev



See merge request !60
... ... @@ -22,10 +22,11 @@
:key="option.value">{{option.label}}</Option>
</Select>
</filter-item>
<filter-item :label="filters.answerUserName.label">
<Input v-model.trim="filters.answerUserName.model"
:placeholder="filters.answerUserName.holder"></Input>
</filter-item>
<!--<filter-item :label="filters.answerUserName.label">-->
<!--<Input v-model.trim="filters.answerUserName.model"-->
<!--:placeholder="filters.answerUserName.holder"></Input>-->
<!--</filter-item>-->
<filter-item :label="filters.askTimeStr.label">
<Date-picker type="datetimerange"
placeholder="选择日期和时间"
... ... @@ -86,7 +87,8 @@
clearFilters() {
this.filters.productSKN.model = null;
this.filters.prodName.model = null;
this.filters.answerUserName.model = null;
// this.filters.answerUserName.model = null;
this.filters.isReply.model = null;
this.filters.brandId.model = null;
this.filters.askStartTime.model = '';
... ... @@ -112,7 +114,8 @@
let fts = this.filters;
let productSKN = fts.productSKN.model,
productName = fts.prodName.model,
answerUserName = fts.answerUserName.model,
// answerUserName = fts.answerUserName.model,
isReply = fts.isReply.model,
maxSortId = fts.sort.first.model,
middleSortId = fts.sort.second.model,
... ... @@ -142,7 +145,8 @@
params,
productSKN,
productName,
answerUserName,
// answerUserName,
isReply,
maxSortId,
middleSortId,
... ...
... ... @@ -70,19 +70,20 @@ export default function() {
}
}
},
{
title: '回复人',
align: 'center',
render: (h, params) => {
let answerUserName = params.row.answerUserName;
if (answerUserName) {
return params.row.answerUserName;
} else {
return '—';
}
},
},
// {
// title: '回复人',
// align: 'center',
// render: (h, params) => {
// let answerUserName = params.row.answerUserName;
//
// if (answerUserName) {
// return params.row.answerUserName;
// } else {
// return '—';
// }
// },
// },
{
title: '咨询及回复时间',
key: 'image',
... ... @@ -98,44 +99,45 @@ export default function() {
);
}
},
{
title: '操作',
key: 'action',
align: 'center',
render: (h, params) => {
const row = params.row;
let status = row.operateFlag;
if (status === 2) {
return (
<div class="cell-action-row">
<i-button type="error" size="small"
onClick={() => this.editAnswer(row)}>
修改
</i-button>
</div>
);
} else if (status === 0) {
return (
<div class="cell-action-row">
<i-button type="primary" size="small"
onClick={() => this.editAnswer(row)}>
回复
</i-button>
</div>
);
} else if (status === 1) {
return (
<div class="cell-action-row">
<i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">
修改
</i-button>
</div>
);
}
},
}
// {
// title: '操作',
// key: 'action',
// align: 'center',
// render: (h, params) => {
// const row = params.row;
//
// let status = row.operateFlag;
//
// if (status === 2) {
// return (
// <div class="cell-action-row">
// <i-button type="error" size="small"
// onClick={() => this.editAnswer(row)}>
// 修改
// </i-button>
// </div>
// );
// } else if (status === 0) {
// return (
// <div class="cell-action-row">
// <i-button type="primary" size="small"
// onClick={() => this.editAnswer(row)}>
// 回复
// </i-button>
// </div>
// );
// } else if (status === 1) {
// return (
// <div class="cell-action-row">
// <i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">
// 修改
// </i-button>
// </div>
// );
// }
// },
// }
],
tableData: [],
pageData: {
... ... @@ -158,10 +160,11 @@ export default function() {
label: '选择品牌',
model: ''
},
answerUserName: {
label: '回复人',
model: ''
},
// answerUserName: {
// label: '回复人',
// model: ''
// },
sort: {
first: {
label: '选择类目',
... ...