|
|
|
@ -1,14 +1,12 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-card :bordered="false"> |
|
|
|
|
<content-header title="意见反馈"></content-header> |
|
|
|
|
<a-table |
|
|
|
|
<s-table |
|
|
|
|
ref="table" |
|
|
|
|
rowKey="feedback_id" |
|
|
|
|
:columns="columns" |
|
|
|
|
:dataSource="feedbackList" |
|
|
|
|
:defaultExpandAllRows="true" |
|
|
|
|
:expandIconColumnIndex="1" |
|
|
|
|
:data="loadData" |
|
|
|
|
:pagination="pagination" |
|
|
|
|
:loading="isLoading" |
|
|
|
|
> |
|
|
|
|
<span slot="type" slot-scope="text, item"> |
|
|
|
|
{{ typeList[item.type - 1] }} |
|
|
|
@ -24,7 +22,7 @@ |
|
|
|
|
<a style="margin-right: 8px" @click="handleEdit(item)">编辑</a> |
|
|
|
|
</template> |
|
|
|
|
</span> |
|
|
|
|
</a-table> |
|
|
|
|
</s-table> |
|
|
|
|
<EditForm ref="EditForm" @handleSubmit="handleRefresh" /> |
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
@ -48,7 +46,11 @@ export default { |
|
|
|
|
'功能新增:我想用的功能,希望能开发新增', |
|
|
|
|
'服务建议:服务商服务不到位,我有建议' |
|
|
|
|
], |
|
|
|
|
feedbackList: [], |
|
|
|
|
loadData: (param) => { |
|
|
|
|
return Api.feedbackList({ ...param }).then((response) => { |
|
|
|
|
return response.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 表头 |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
@ -91,10 +93,6 @@ export default { |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created () { |
|
|
|
|
// 获取分类列表 |
|
|
|
|
this.getFeedbackList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 编辑商户 |
|
|
|
|
async handleEdit (record) { |
|
|
|
@ -102,20 +100,8 @@ export default { |
|
|
|
|
this.$refs.EditForm.add(record) |
|
|
|
|
}, |
|
|
|
|
// 刷新列表 |
|
|
|
|
handleRefresh () { |
|
|
|
|
// 获取分类列表 |
|
|
|
|
this.getFeedbackList() |
|
|
|
|
}, |
|
|
|
|
// 获取商户列表 |
|
|
|
|
getFeedbackList () { |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.feedbackList() |
|
|
|
|
.then((result) => { |
|
|
|
|
console.log(result) |
|
|
|
|
this.feedbackList = result.data.data |
|
|
|
|
this.isLoading = false |
|
|
|
|
}) |
|
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
|
handleRefresh (bool = false) { |
|
|
|
|
this.$refs.table.refresh(bool) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|