From 85fb61a4fe6cfda32629eed7f82852b37194b483 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 4 May 2023 16:54:46 +0800 Subject: [PATCH] fix: sms template --- src/components/Table/src/hooks/useRender.ts | 2 +- src/views/system/sms/template/smsTemplate.data.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Table/src/hooks/useRender.ts b/src/components/Table/src/hooks/useRender.ts index c1ef449a..8323e8a2 100644 --- a/src/components/Table/src/hooks/useRender.ts +++ b/src/components/Table/src/hooks/useRender.ts @@ -100,7 +100,7 @@ export const useRender = { */ renderDict: (text, type, dictType?) => { if (type) { - return h(DictTag, { type: type, value: text, dictType: dictType || 'number' }) + return h(DictTag, { type: type, value: text, dictType: dictType }) } return '' }, diff --git a/src/views/system/sms/template/smsTemplate.data.ts b/src/views/system/sms/template/smsTemplate.data.ts index 726497c5..cc8387b6 100644 --- a/src/views/system/sms/template/smsTemplate.data.ts +++ b/src/views/system/sms/template/smsTemplate.data.ts @@ -19,7 +19,7 @@ export const columns: BasicColumn[] = [ }, { title: '短信类型', - dataIndex: 'status', + dataIndex: 'type', width: 180, customRender: ({ text }) => { return useRender.renderDict(text, DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)