From 273ae198a6216148051cb75d929c48d77f6658f2 Mon Sep 17 00:00:00 2001 From: preschooler Date: Wed, 21 Aug 2024 16:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=E4=BF=AE=E5=A4=8D=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E5=9D=97=E6=90=9C=E7=B4=A2=E6=A0=8F=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/mail/account/account.data.ts | 18 +++++++- src/views/system/mail/log/log.data.ts | 44 ++++++++++++++++--- .../system/mail/template/template.data.ts | 35 +++++++++++++-- 3 files changed, 86 insertions(+), 11 deletions(-) diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 23b1f084..6de394e6 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -25,12 +25,26 @@ const crudSchemas = reactive([ { label: '邮箱', field: 'mail', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '用户名', field: 'username', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '密码', diff --git a/src/views/system/mail/log/log.data.ts b/src/views/system/mail/log/log.data.ts index 62cbf516..594a5d5f 100644 --- a/src/views/system/mail/log/log.data.ts +++ b/src/views/system/mail/log/log.data.ts @@ -21,7 +21,10 @@ const crudSchemas = reactive([ componentProps: { valueFormat: 'YYYY-MM-DD HH:mm:ss', type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], + style: { + width: '240px' + } } }, detail: { @@ -36,7 +39,14 @@ const crudSchemas = reactive([ label: '用户编号', field: 'userId', isSearch: true, - isTable: false + isTable: false, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '用户类型', @@ -44,7 +54,14 @@ const crudSchemas = reactive([ dictType: DICT_TYPE.USER_TYPE, dictClass: 'number', isSearch: true, - isTable: false + isTable: false, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '邮件标题', @@ -65,7 +82,14 @@ const crudSchemas = reactive([ field: 'sendStatus', dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS, dictClass: 'string', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '邮箱账号', @@ -79,6 +103,9 @@ const crudSchemas = reactive([ optionsAlias: { labelField: 'mail', valueField: 'id' + }, + style: { + width: '240px' } } } @@ -93,7 +120,14 @@ const crudSchemas = reactive([ { label: '模板编号', field: 'templateId', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '模板编码', diff --git a/src/views/system/mail/template/template.data.ts b/src/views/system/mail/template/template.data.ts index e68f875a..c11d5fe9 100644 --- a/src/views/system/mail/template/template.data.ts +++ b/src/views/system/mail/template/template.data.ts @@ -22,12 +22,26 @@ const crudSchemas = reactive([ { label: '模板编码', field: 'code', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '模板名称', field: 'name', - isSearch: true + isSearch: true, + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '模板标题', @@ -59,6 +73,9 @@ const crudSchemas = reactive([ optionsAlias: { labelField: 'mail', valueField: 'id' + }, + style: { + width: '240px' } } }, @@ -82,7 +99,14 @@ const crudSchemas = reactive([ field: 'status', isSearch: true, dictType: DICT_TYPE.COMMON_STATUS, - dictClass: 'number' + dictClass: 'number', + search: { + componentProps: { + style: { + width: '240px' + } + } + } }, { label: '备注', @@ -100,7 +124,10 @@ const crudSchemas = reactive([ componentProps: { valueFormat: 'YYYY-MM-DD HH:mm:ss', type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], + style: { + width: '240px' + } } } },