!7 同步dev分支pr

Merge pull request !7 from xingyu/master_old
pull/8/head
xingyu 2023-05-04 09:04:33 +00:00 committed by Gitee
commit ed2aded29c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -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 ''
}, },

View File

@ -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)