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