|
@@ -2,9 +2,14 @@
|
|
|
<div class="p-4">
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar> </template>
|
|
|
- <template #feedbackType="{ record }">
|
|
|
- {{ renderFeedbackType(record.feedbackType) }}
|
|
|
+ <template #feedType="{ record }">
|
|
|
+ {{ renderFeedbackType(record.feedType) }}
|
|
|
</template>
|
|
|
+
|
|
|
+ <template #addTime="{ record }">
|
|
|
+ <Time :value="record.addTime" mode="datetime" />
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #action="{ record }">
|
|
|
<TableAction
|
|
|
:actions="[
|
|
@@ -40,23 +45,24 @@
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
// import { useCopyToClipboard } from '/@/hooks/web/useCopyToClipboard';
|
|
|
import { useGo } from '/@/hooks/web/usePage';
|
|
|
+ import { Time } from '/@/components/Time';
|
|
|
|
|
|
export default defineComponent({
|
|
|
- components: { BasicTable, TableAction },
|
|
|
+ components: { BasicTable, TableAction, Time },
|
|
|
setup() {
|
|
|
const { createMessage } = useMessage();
|
|
|
const go = useGo();
|
|
|
const { t } = useI18n();
|
|
|
const columns: BasicColumn[] = [
|
|
|
- {
|
|
|
- title: 'ID',
|
|
|
- dataIndex: 'id',
|
|
|
- fixed: 'left',
|
|
|
- width: 60,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: 'ID',
|
|
|
+ // dataIndex: 'userId',
|
|
|
+ // fixed: 'left',
|
|
|
+ // width: 60,
|
|
|
+ // },
|
|
|
{
|
|
|
title: '会员名称',
|
|
|
- dataIndex: 'name',
|
|
|
+ dataIndex: 'userName',
|
|
|
width: 160,
|
|
|
},
|
|
|
{
|
|
@@ -66,13 +72,13 @@
|
|
|
},
|
|
|
{
|
|
|
title: '手机',
|
|
|
- dataIndex: 'phone',
|
|
|
+ dataIndex: 'mobile',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
|
title: '反馈类型',
|
|
|
- dataIndex: 'feedbackType',
|
|
|
- slots: { customRender: 'feedbackType' },
|
|
|
+ dataIndex: 'feedType',
|
|
|
+ slots: { customRender: 'feedType' },
|
|
|
sorter: true,
|
|
|
width: 80,
|
|
|
},
|
|
@@ -83,7 +89,8 @@
|
|
|
},
|
|
|
{
|
|
|
title: '反馈时间',
|
|
|
- dataIndex: 'createTime',
|
|
|
+ dataIndex: 'addTime',
|
|
|
+ slots: { customRender: 'addTime' },
|
|
|
width: 130,
|
|
|
},
|
|
|
// {
|
|
@@ -119,9 +126,15 @@
|
|
|
showTableSetting: true,
|
|
|
tableSetting: { fullScreen: true },
|
|
|
showIndexColumn: false,
|
|
|
- rowKey: 'id',
|
|
|
+ // rowKey: 'userId',
|
|
|
pagination: { pageSize: 20 },
|
|
|
bordered: true,
|
|
|
+ fetchSetting: {
|
|
|
+ pageField: 'page',
|
|
|
+ sizeField: 'limit',
|
|
|
+ listField: 'list',
|
|
|
+ totalField: 'totalCount',
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
function renderFeedbackType(type: number): string {
|