|
|
@@ -8,15 +8,6 @@
|
|
|
:tools="false"
|
|
|
>
|
|
|
<template #toolbar>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- :icon="DeleteOutlined"
|
|
|
- v-permission="'optimization:fallback:batchDelete'"
|
|
|
- @click="handleBatchDelete()"
|
|
|
- >
|
|
|
- 批量删除
|
|
|
- </el-button>
|
|
|
<el-button
|
|
|
type="success"
|
|
|
plain
|
|
|
@@ -27,6 +18,14 @@
|
|
|
导出EXCEL
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template #status="{ row }">
|
|
|
+ <dict-data
|
|
|
+ code="feedback_status"
|
|
|
+ type="tag"
|
|
|
+ :model-value="row.status"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #action="{ row }">
|
|
|
<div>
|
|
|
<el-button
|
|
|
@@ -57,39 +56,18 @@
|
|
|
import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
import dealFallback from '@/views/optimization/fallback/components/deal-fallback.vue';
|
|
|
import pageSearch from '@/views/optimization/fallback/components/page-search.vue';
|
|
|
- import { useDictData } from '@/utils/use-dict-data';
|
|
|
|
|
|
defineOptions({ name: 'fallbackList' });
|
|
|
- const [useStatusDicts] = useDictData(['sys_normal_disable']);
|
|
|
|
|
|
/** 表格列配置 */
|
|
|
const columns = ref([
|
|
|
- {
|
|
|
- type: 'selection',
|
|
|
- columnKey: 'selection',
|
|
|
- width: 50,
|
|
|
- align: 'center',
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
{ type: 'index', label: '序号', width: 60, align: 'center' },
|
|
|
- {
|
|
|
- label: '状态',
|
|
|
- prop: 'useStatus',
|
|
|
- align: 'center',
|
|
|
- formatter: (row) =>
|
|
|
- useStatusDicts.value.find((d) => d.dictValue == row.useStatus)
|
|
|
- ?.dictLabel
|
|
|
- },
|
|
|
- { label: '用户UID', prop: 'uid', align: 'center' },
|
|
|
+ { label: '状态', prop: 'status', align: 'center', slot: 'status' },
|
|
|
+ { label: '用户名', prop: 'nickName', align: 'center' },
|
|
|
{ label: '联系方式', prop: 'mobile', align: 'center' },
|
|
|
- { label: '意见类型', prop: 'type', align: 'center' },
|
|
|
+ { label: '意见类型', prop: 'reason', align: 'center', minWidth: 150 },
|
|
|
{ label: '反馈时间', prop: 'createTime', align: 'center', width: 180 },
|
|
|
- {
|
|
|
- label: '意见描述',
|
|
|
- prop: 'paymentCode',
|
|
|
- align: 'center',
|
|
|
- minWidth: 200
|
|
|
- },
|
|
|
+ { label: '意见描述', prop: 'description', align: 'center', minWidth: 200 },
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
@@ -103,8 +81,8 @@
|
|
|
const pageRef = ref(null);
|
|
|
|
|
|
const pageConfig = reactive({
|
|
|
- pageUrl: '/baseinfo/godown/pagelist',
|
|
|
- exportUrl: '/baseinfo/godown/export',
|
|
|
+ pageUrl: '/sys/suggestionLog/pagelist',
|
|
|
+ exportUrl: '/sys/suggestionLog/export',
|
|
|
fileName: '意见反馈',
|
|
|
cacheKey: 'fallbackTable'
|
|
|
});
|
|
|
@@ -114,18 +92,6 @@
|
|
|
pageRef.value?.reload(where);
|
|
|
}
|
|
|
|
|
|
- //批量删除
|
|
|
- function handleBatchDelete(row) {
|
|
|
- let selections = row ? [row] : pageRef.value?.getSelections();
|
|
|
- let ids = selections.map((item) => item.id).join(',');
|
|
|
- let url = `/baseinfo/schoolInfo/removeById/${ids}`;
|
|
|
- pageRef.value?.operatBatch({
|
|
|
- title: '确认删除?',
|
|
|
- method: 'post',
|
|
|
- url,
|
|
|
- row
|
|
|
- });
|
|
|
- }
|
|
|
//导出excel
|
|
|
function handleExportExcel() {
|
|
|
pageRef.value?.exportData('意见反馈');
|