From 195af02d18922ef48865d552f046257b365f5ea6 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 16 Nov 2022 17:03:32 +0800 Subject: [PATCH] fix --- .../src/hooks/web/useVxeCrudSchemas.ts | 3 ++- .../sms/smsTemplate/sms.template.data.ts | 25 ++++++++++++------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts index 394b998f2..521415414 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts @@ -189,13 +189,14 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns tableSchemaItem.showOverflow = 'tooltip' if (schemaItem?.formatter) { tableSchemaItem.formatter = schemaItem.formatter - tableSchemaItem.width = 160 + tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160 } if (schemaItem?.dictType) { tableSchemaItem.cellRender = { name: 'XDict', content: schemaItem.dictType } + tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160 } tableSchema.push(tableSchemaItem) diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts index d1099c33d..cf3075e38 100644 --- a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts @@ -21,38 +21,45 @@ const crudSchemas = reactive({ primaryKey: 'id', primaryType: 'seq', action: true, + actionWidth: '280', columns: [ { - label: '模板编码', + title: '模板编码', field: 'code', isSearch: true }, { - label: '模板名称', + title: '模板名称', field: 'name', isSearch: true }, { - label: '模板内容', + title: '模板内容', field: 'content' }, { - label: '短信 API 的模板编号', + title: '短信 API 的模板编号', field: 'apiTemplateId', isSearch: true }, { - label: '短信类型', + title: '短信类型', field: 'type', - dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE + dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE, + table: { + width: 80 + } }, { - label: t('common.status'), + title: t('common.status'), field: 'status', - dictType: DICT_TYPE.COMMON_STATUS + dictType: DICT_TYPE.COMMON_STATUS, + table: { + width: 80 + } }, { - label: t('form.remark'), + title: t('form.remark'), field: 'remark', isTable: false },