This commit is contained in:
xingyu4j
2025-11-07 19:06:34 +08:00
parent 31a8d38174
commit 15215b4f4c
19 changed files with 57 additions and 57 deletions

View File

@@ -7,7 +7,7 @@ import { DICT_TYPE } from '@vben/constants';
import { WxAccountSelect } from '#/views/mp/modules/wx-account-select';
import { MsgType } from './modules/types';
import { MsgType } from './components/types';
/** 获取表格列配置 */
export function useGridColumns(msgType: MsgType): VxeGridPropTypes.Columns {

View File

@@ -18,10 +18,10 @@ import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import * as MpAutoReplyApi from '#/api/mp/autoReply';
import { $t } from '#/locales';
import ReplyContentCell from './components/ReplyTable.vue';
import { MsgType } from './components/types';
import { useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
import ReplyContentCell from './modules/ReplyTable.vue';
import { MsgType } from './modules/types';
defineOptions({ name: 'MpAutoReply' });

View File

@@ -7,12 +7,12 @@ import { useVbenModal } from '@vben/common-ui';
import { message } from 'ant-design-vue';
import * as MpAutoReplyApi from '#/api/mp/autoReply';
import { createAutoReply, updateAutoReply } from '#/api/mp/autoReply';
import { $t } from '#/locales';
import { ReplyType } from '#/views/mp/modules/wx-reply/types';
import ReplyForm from './ReplyForm.vue';
import { MsgType } from './types';
import ReplyForm from '../components/ReplyForm.vue';
import { MsgType } from '../components/types';
const emit = defineEmits(['success']);
@@ -52,10 +52,10 @@ const [Modal, modalApi] = useVbenModal({
modalApi.lock();
try {
if (replyForm.value.id === undefined) {
await MpAutoReplyApi.createAutoReply(submitForm);
await createAutoReply(submitForm);
message.success('新增成功');
} else {
await MpAutoReplyApi.updateAutoReply(submitForm);
await updateAutoReply(submitForm);
message.success('修改成功');
}
await modalApi.close();