Browse Source

fix: sms template

main
xingyu 2 years ago
parent
commit
85fb61a4fe
  1. 2
      src/components/Table/src/hooks/useRender.ts
  2. 2
      src/views/system/sms/template/smsTemplate.data.ts

2
src/components/Table/src/hooks/useRender.ts

@ -100,7 +100,7 @@ export const useRender = {
*/ */
renderDict: (text, type, dictType?) => { renderDict: (text, type, dictType?) => {
if (type) { if (type) {
return h(DictTag, { type: type, value: text, dictType: dictType || 'number' }) return h(DictTag, { type: type, value: text, dictType: dictType })
} }
return '' return ''
}, },

2
src/views/system/sms/template/smsTemplate.data.ts

@ -19,7 +19,7 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '短信类型', title: '短信类型',
dataIndex: 'status', dataIndex: 'type',
width: 180, width: 180,
customRender: ({ text }) => { customRender: ({ text }) => {
return useRender.renderDict(text, DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE) return useRender.renderDict(text, DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)