This commit is contained in:
@@ -0,0 +1,61 @@
|
|||||||
|
import type { FeedbacksVO, FeedbacksForm, FeedbacksQuery } from './model';
|
||||||
|
|
||||||
|
import type { ID, IDS } from '#/api/common';
|
||||||
|
import type { PageResult } from '#/api/common';
|
||||||
|
|
||||||
|
import { commonExport } from '#/api/helper';
|
||||||
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询意见反馈列表
|
||||||
|
* @param params
|
||||||
|
* @returns 意见反馈列表
|
||||||
|
*/
|
||||||
|
export function feedbacksList(params?: FeedbacksQuery) {
|
||||||
|
return requestClient.get<PageResult<FeedbacksVO>>('/system/feedbacks/list', { params });
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出意见反馈列表
|
||||||
|
* @param params
|
||||||
|
* @returns 意见反馈列表
|
||||||
|
*/
|
||||||
|
export function feedbacksExport(params?: FeedbacksQuery) {
|
||||||
|
return commonExport('/system/feedbacks/export', params ?? {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询意见反馈详情
|
||||||
|
* @param id id
|
||||||
|
* @returns 意见反馈详情
|
||||||
|
*/
|
||||||
|
export function feedbacksInfo(id: ID) {
|
||||||
|
return requestClient.get<FeedbacksVO>(`/system/feedbacks/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增意见反馈
|
||||||
|
* @param data
|
||||||
|
* @returns void
|
||||||
|
*/
|
||||||
|
export function feedbacksAdd(data: FeedbacksForm) {
|
||||||
|
return requestClient.postWithMsg<void>('/system/feedbacks', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新意见反馈
|
||||||
|
* @param data
|
||||||
|
* @returns void
|
||||||
|
*/
|
||||||
|
export function feedbacksUpdate(data: FeedbacksForm) {
|
||||||
|
return requestClient.putWithMsg<void>('/system/feedbacks', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除意见反馈
|
||||||
|
* @param id id
|
||||||
|
* @returns void
|
||||||
|
*/
|
||||||
|
export function feedbacksRemove(id: ID | IDS) {
|
||||||
|
return requestClient.deleteWithMsg<void>(`/system/feedbacks/${id}`);
|
||||||
|
}
|
159
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||||
|
|
||||||
|
export interface FeedbacksVO {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
id: string | number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈类型(0保修1保洁2会议)
|
||||||
|
*/
|
||||||
|
feedbackType: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人
|
||||||
|
*/
|
||||||
|
feedbackPersion: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人电话
|
||||||
|
*/
|
||||||
|
feedbackPersionPhone: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈内容
|
||||||
|
*/
|
||||||
|
feedbackContent: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈位置
|
||||||
|
*/
|
||||||
|
feedbackLocation: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈图片
|
||||||
|
*/
|
||||||
|
feedbackImg: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否转至工单
|
||||||
|
*/
|
||||||
|
isWorkOrder: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(1待处理2处理中3处理完成)
|
||||||
|
*/
|
||||||
|
status: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客服电话
|
||||||
|
*/
|
||||||
|
serviceName: string;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FeedbacksForm extends BaseEntity {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
id?: string | number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈类型(0保修1保洁2会议)
|
||||||
|
*/
|
||||||
|
feedbackType?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人
|
||||||
|
*/
|
||||||
|
feedbackPersion?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人电话
|
||||||
|
*/
|
||||||
|
feedbackPersionPhone?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈内容
|
||||||
|
*/
|
||||||
|
feedbackContent?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈位置
|
||||||
|
*/
|
||||||
|
feedbackLocation?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈图片
|
||||||
|
*/
|
||||||
|
feedbackImg?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否转至工单
|
||||||
|
*/
|
||||||
|
isWorkOrder?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(1待处理2处理中3处理完成)
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客服电话
|
||||||
|
*/
|
||||||
|
serviceName?: string;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FeedbacksQuery extends PageQuery {
|
||||||
|
/**
|
||||||
|
* 反馈类型(0保修1保洁2会议)
|
||||||
|
*/
|
||||||
|
feedbackType?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人
|
||||||
|
*/
|
||||||
|
feedbackPersion?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈人电话
|
||||||
|
*/
|
||||||
|
feedbackPersionPhone?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈内容
|
||||||
|
*/
|
||||||
|
feedbackContent?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈位置
|
||||||
|
*/
|
||||||
|
feedbackLocation?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反馈图片
|
||||||
|
*/
|
||||||
|
feedbackImg?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否转至工单
|
||||||
|
*/
|
||||||
|
isWorkOrder?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(1待处理2处理中3处理完成)
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客服电话
|
||||||
|
*/
|
||||||
|
serviceName?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日期范围参数
|
||||||
|
*/
|
||||||
|
params?: any;
|
||||||
|
}
|
@@ -0,0 +1,168 @@
|
|||||||
|
import type { FormSchemaGetter } from '#/adapter/form';
|
||||||
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||||
|
import {getDictOptions} from "#/utils/dict";
|
||||||
|
import {renderDict} from "#/utils/render";
|
||||||
|
|
||||||
|
|
||||||
|
export const querySchema: FormSchemaGetter = () => [
|
||||||
|
{
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options:getDictOptions('wy_yjfklx')
|
||||||
|
},
|
||||||
|
fieldName: 'feedbackType',
|
||||||
|
label: '反馈类型',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options:getDictOptions('wy_yjclzt')
|
||||||
|
},
|
||||||
|
fieldName: 'status',
|
||||||
|
label: '处理状态',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
export const columns: VxeGridProps['columns'] = [
|
||||||
|
{ type: 'checkbox', width: 60 },
|
||||||
|
{
|
||||||
|
title: '反馈类型',
|
||||||
|
field: 'feedbackType',
|
||||||
|
slots:{
|
||||||
|
default: ({row})=>{
|
||||||
|
return renderDict(row.feedbackType,'wy_yjfklx')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '反馈人',
|
||||||
|
field: 'feedbackPersion',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '反馈人电话',
|
||||||
|
field: 'feedbackPersionPhone',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '反馈内容',
|
||||||
|
field: 'feedbackContent',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '反馈位置',
|
||||||
|
field: 'feedbackLocation',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '反馈图片',
|
||||||
|
field: 'feedbackImg',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否转至工单',
|
||||||
|
field: 'isWorkOrder',
|
||||||
|
slots:{
|
||||||
|
default: ({row})=>{
|
||||||
|
return renderDict(row.isWorkOrder,'wy_sf')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '处理状态',
|
||||||
|
field: 'status',
|
||||||
|
slots:{
|
||||||
|
default: ({row})=>{
|
||||||
|
return renderDict(row.status,'wy_yjclzt')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '客服电话',
|
||||||
|
field: 'serviceName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'action',
|
||||||
|
fixed: 'right',
|
||||||
|
slots: { default: 'action' },
|
||||||
|
title: '操作',
|
||||||
|
width: 180,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const modalSchema: FormSchemaGetter = () => [
|
||||||
|
{
|
||||||
|
label: '主键',
|
||||||
|
fieldName: 'id',
|
||||||
|
component: 'Input',
|
||||||
|
dependencies: {
|
||||||
|
show: () => false,
|
||||||
|
triggerFields: [''],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈类型',
|
||||||
|
fieldName: 'feedbackType',
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options:getDictOptions('wy_yjfklx')
|
||||||
|
},
|
||||||
|
rules: 'selectRequired',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈人',
|
||||||
|
fieldName: 'feedbackPersion',
|
||||||
|
component: 'Input',
|
||||||
|
rules: 'required',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈人电话',
|
||||||
|
fieldName: 'feedbackPersionPhone',
|
||||||
|
component: 'Input',
|
||||||
|
rules: 'required',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈内容',
|
||||||
|
fieldName: 'feedbackContent',
|
||||||
|
component: 'Textarea',
|
||||||
|
rules: 'required',
|
||||||
|
formItemClass:'col-span-2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈位置',
|
||||||
|
fieldName: 'feedbackLocation',
|
||||||
|
component: 'Input',
|
||||||
|
rules: 'required',
|
||||||
|
formItemClass:'col-span-2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '反馈图片',
|
||||||
|
fieldName: 'feedbackImg',
|
||||||
|
component: 'ImageUpload',
|
||||||
|
componentProps: {
|
||||||
|
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
|
||||||
|
// maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
|
||||||
|
},
|
||||||
|
rules: 'required',
|
||||||
|
formItemClass:'col-span-2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '转至工单',
|
||||||
|
fieldName: 'isWorkOrder',
|
||||||
|
component: 'RadioGroup',
|
||||||
|
componentProps: {
|
||||||
|
buttonStyle: 'solid',
|
||||||
|
options: getDictOptions('wy_sf'),
|
||||||
|
},
|
||||||
|
defaultValue:'0'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '处理状态',
|
||||||
|
fieldName: 'status',
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options: getDictOptions('wy_yjclzt')
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '客服电话',
|
||||||
|
fieldName: 'serviceName',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
];
|
@@ -0,0 +1,101 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { computed, ref } from 'vue';
|
||||||
|
|
||||||
|
import { useVbenModal } from '@vben/common-ui';
|
||||||
|
import { $t } from '@vben/locales';
|
||||||
|
import { cloneDeep } from '@vben/utils';
|
||||||
|
|
||||||
|
import { useVbenForm } from '#/adapter/form';
|
||||||
|
import { feedbacksAdd, feedbacksInfo, feedbacksUpdate } from '#/api/property/customerService/feedbacks';
|
||||||
|
import { defaultFormValueGetter, useBeforeCloseDiff } from '#/utils/popup';
|
||||||
|
|
||||||
|
import { modalSchema } from './data';
|
||||||
|
|
||||||
|
const emit = defineEmits<{ reload: [] }>();
|
||||||
|
|
||||||
|
const isUpdate = ref(false);
|
||||||
|
const title = computed(() => {
|
||||||
|
return isUpdate.value ? $t('pages.common.edit') : $t('pages.common.add');
|
||||||
|
});
|
||||||
|
|
||||||
|
const [BasicForm, formApi] = useVbenForm({
|
||||||
|
commonConfig: {
|
||||||
|
// 默认占满两列
|
||||||
|
formItemClass: 'col-span-1',
|
||||||
|
// 默认label宽度 px
|
||||||
|
labelWidth: 80,
|
||||||
|
// 通用配置项 会影响到所有表单项
|
||||||
|
componentProps: {
|
||||||
|
class: 'w-full',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
schema: modalSchema(),
|
||||||
|
showDefaultActions: false,
|
||||||
|
wrapperClass: 'grid-cols-2',
|
||||||
|
});
|
||||||
|
|
||||||
|
const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff(
|
||||||
|
{
|
||||||
|
initializedGetter: defaultFormValueGetter(formApi),
|
||||||
|
currentGetter: defaultFormValueGetter(formApi),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
const [BasicModal, modalApi] = useVbenModal({
|
||||||
|
// 在这里更改宽度
|
||||||
|
class: 'w-[70%]',
|
||||||
|
fullscreenButton: false,
|
||||||
|
onBeforeClose,
|
||||||
|
onClosed: handleClosed,
|
||||||
|
onConfirm: handleConfirm,
|
||||||
|
onOpenChange: async (isOpen) => {
|
||||||
|
if (!isOpen) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
modalApi.modalLoading(true);
|
||||||
|
|
||||||
|
const { id } = modalApi.getData() as { id?: number | string };
|
||||||
|
isUpdate.value = !!id;
|
||||||
|
|
||||||
|
if (isUpdate.value && id) {
|
||||||
|
const record = await feedbacksInfo(id);
|
||||||
|
await formApi.setValues(record);
|
||||||
|
}
|
||||||
|
await markInitialized();
|
||||||
|
|
||||||
|
modalApi.modalLoading(false);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
async function handleConfirm() {
|
||||||
|
try {
|
||||||
|
modalApi.lock(true);
|
||||||
|
const { valid } = await formApi.validate();
|
||||||
|
if (!valid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
|
||||||
|
const data = cloneDeep(await formApi.getValues());
|
||||||
|
await (isUpdate.value ? feedbacksUpdate(data) : feedbacksAdd(data));
|
||||||
|
resetInitialized();
|
||||||
|
emit('reload');
|
||||||
|
modalApi.close();
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
} finally {
|
||||||
|
modalApi.lock(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handleClosed() {
|
||||||
|
await formApi.resetForm();
|
||||||
|
resetInitialized();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<BasicModal :title="title">
|
||||||
|
<BasicForm />
|
||||||
|
</BasicModal>
|
||||||
|
</template>
|
||||||
|
|
@@ -0,0 +1,169 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
|
||||||
|
import { getVxePopupContainer } from '@vben/utils';
|
||||||
|
|
||||||
|
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||||
|
|
||||||
|
import {
|
||||||
|
useVbenVxeGrid,
|
||||||
|
vxeCheckboxChecked,
|
||||||
|
type VxeGridProps
|
||||||
|
} from '#/adapter/vxe-table';
|
||||||
|
|
||||||
|
import {
|
||||||
|
feedbacksExport,
|
||||||
|
feedbacksList,
|
||||||
|
feedbacksRemove,
|
||||||
|
} from '#/api/property/customerService/feedbacks';
|
||||||
|
import type { FeedbacksForm } from '#/api/property/customerService/feedbacks/model';
|
||||||
|
import { commonDownloadExcel } from '#/utils/file/download';
|
||||||
|
|
||||||
|
import feedbacksModal from './feedbacks-modal.vue';
|
||||||
|
import { columns, querySchema } from './data';
|
||||||
|
|
||||||
|
const formOptions: VbenFormProps = {
|
||||||
|
commonConfig: {
|
||||||
|
labelWidth: 80,
|
||||||
|
componentProps: {
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
schema: querySchema(),
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4',
|
||||||
|
};
|
||||||
|
|
||||||
|
const gridOptions: VxeGridProps = {
|
||||||
|
checkboxConfig: {
|
||||||
|
// 高亮
|
||||||
|
highlight: true,
|
||||||
|
// 翻页时保留选中状态
|
||||||
|
reserve: true,
|
||||||
|
// 点击行选中
|
||||||
|
// trigger: 'row',
|
||||||
|
},
|
||||||
|
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||||
|
// columns: columns(),
|
||||||
|
columns,
|
||||||
|
height: 'auto',
|
||||||
|
keepSource: true,
|
||||||
|
pagerConfig: {},
|
||||||
|
proxyConfig: {
|
||||||
|
ajax: {
|
||||||
|
query: async ({ page }, formValues = {}) => {
|
||||||
|
return await feedbacksList({
|
||||||
|
pageNum: page.currentPage,
|
||||||
|
pageSize: page.pageSize,
|
||||||
|
...formValues,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rowConfig: {
|
||||||
|
keyField: 'id',
|
||||||
|
},
|
||||||
|
// 表格全局唯一表示 保存列配置需要用到
|
||||||
|
id: 'system-feedbacks-index'
|
||||||
|
};
|
||||||
|
|
||||||
|
const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||||
|
formOptions,
|
||||||
|
gridOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
const [FeedbacksModal, modalApi] = useVbenModal({
|
||||||
|
connectedComponent: feedbacksModal,
|
||||||
|
});
|
||||||
|
|
||||||
|
function handleAdd() {
|
||||||
|
modalApi.setData({});
|
||||||
|
modalApi.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handleEdit(row: Required<FeedbacksForm>) {
|
||||||
|
modalApi.setData({ id: row.id });
|
||||||
|
modalApi.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handleDelete(row: Required<FeedbacksForm>) {
|
||||||
|
await feedbacksRemove(row.id);
|
||||||
|
await tableApi.query();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleMultiDelete() {
|
||||||
|
const rows = tableApi.grid.getCheckboxRecords();
|
||||||
|
const ids = rows.map((row: Required<FeedbacksForm>) => row.id);
|
||||||
|
Modal.confirm({
|
||||||
|
title: '提示',
|
||||||
|
okType: 'danger',
|
||||||
|
content: `确认删除选中的${ids.length}条记录吗?`,
|
||||||
|
onOk: async () => {
|
||||||
|
await feedbacksRemove(ids);
|
||||||
|
await tableApi.query();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDownloadExcel() {
|
||||||
|
commonDownloadExcel(feedbacksExport, '意见反馈数据', tableApi.formApi.form.values, {
|
||||||
|
fieldMappingTime: formOptions.fieldMappingTime,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Page :auto-content-height="true">
|
||||||
|
<BasicTable table-title="意见反馈列表">
|
||||||
|
<template #toolbar-tools>
|
||||||
|
<Space>
|
||||||
|
<a-button
|
||||||
|
v-access:code="['system:feedbacks:export']"
|
||||||
|
@click="handleDownloadExcel"
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.export') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button
|
||||||
|
:disabled="!vxeCheckboxChecked(tableApi)"
|
||||||
|
danger
|
||||||
|
type="primary"
|
||||||
|
v-access:code="['system:feedbacks:remove']"
|
||||||
|
@click="handleMultiDelete">
|
||||||
|
{{ $t('pages.common.delete') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
v-access:code="['system:feedbacks:add']"
|
||||||
|
@click="handleAdd"
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.add') }}
|
||||||
|
</a-button>
|
||||||
|
</Space>
|
||||||
|
</template>
|
||||||
|
<template #action="{ row }">
|
||||||
|
<Space>
|
||||||
|
<ghost-button
|
||||||
|
v-access:code="['system:feedbacks:edit']"
|
||||||
|
@click.stop="handleEdit(row)"
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.edit') }}
|
||||||
|
</ghost-button>
|
||||||
|
<Popconfirm
|
||||||
|
:get-popup-container="getVxePopupContainer"
|
||||||
|
placement="left"
|
||||||
|
title="确认删除?"
|
||||||
|
@confirm="handleDelete(row)"
|
||||||
|
>
|
||||||
|
<ghost-button
|
||||||
|
danger
|
||||||
|
v-access:code="['system:feedbacks:remove']"
|
||||||
|
@click.stop=""
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.delete') }}
|
||||||
|
</ghost-button>
|
||||||
|
</Popconfirm>
|
||||||
|
</Space>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
|
<FeedbacksModal @reload="tableApi.query()" />
|
||||||
|
</Page>
|
||||||
|
</template>
|
Reference in New Issue
Block a user