Commit 195af02d18922ef48865d552f046257b365f5ea6

Authored by xingyu4j
1 parent e76a6f81

fix

yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
@@ -189,13 +189,14 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns @@ -189,13 +189,14 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns
189 tableSchemaItem.showOverflow = 'tooltip' 189 tableSchemaItem.showOverflow = 'tooltip'
190 if (schemaItem?.formatter) { 190 if (schemaItem?.formatter) {
191 tableSchemaItem.formatter = schemaItem.formatter 191 tableSchemaItem.formatter = schemaItem.formatter
192 - tableSchemaItem.width = 160 192 + tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160
193 } 193 }
194 if (schemaItem?.dictType) { 194 if (schemaItem?.dictType) {
195 tableSchemaItem.cellRender = { 195 tableSchemaItem.cellRender = {
196 name: 'XDict', 196 name: 'XDict',
197 content: schemaItem.dictType 197 content: schemaItem.dictType
198 } 198 }
  199 + tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160
199 } 200 }
200 201
201 tableSchema.push(tableSchemaItem) 202 tableSchema.push(tableSchemaItem)
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts
@@ -21,38 +21,45 @@ const crudSchemas = reactive<VxeCrudSchema>({ @@ -21,38 +21,45 @@ const crudSchemas = reactive<VxeCrudSchema>({
21 primaryKey: 'id', 21 primaryKey: 'id',
22 primaryType: 'seq', 22 primaryType: 'seq',
23 action: true, 23 action: true,
  24 + actionWidth: '280',
24 columns: [ 25 columns: [
25 { 26 {
26 - label: '模板编码', 27 + title: '模板编码',
27 field: 'code', 28 field: 'code',
28 isSearch: true 29 isSearch: true
29 }, 30 },
30 { 31 {
31 - label: '模板名称', 32 + title: '模板名称',
32 field: 'name', 33 field: 'name',
33 isSearch: true 34 isSearch: true
34 }, 35 },
35 { 36 {
36 - label: '模板内容', 37 + title: '模板内容',
37 field: 'content' 38 field: 'content'
38 }, 39 },
39 { 40 {
40 - label: '短信 API 的模板编号', 41 + title: '短信 API 的模板编号',
41 field: 'apiTemplateId', 42 field: 'apiTemplateId',
42 isSearch: true 43 isSearch: true
43 }, 44 },
44 { 45 {
45 - label: '短信类型', 46 + title: '短信类型',
46 field: 'type', 47 field: 'type',
47 - dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE 48 + dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE,
  49 + table: {
  50 + width: 80
  51 + }
48 }, 52 },
49 { 53 {
50 - label: t('common.status'), 54 + title: t('common.status'),
51 field: 'status', 55 field: 'status',
52 - dictType: DICT_TYPE.COMMON_STATUS 56 + dictType: DICT_TYPE.COMMON_STATUS,
  57 + table: {
  58 + width: 80
  59 + }
53 }, 60 },
54 { 61 {
55 - label: t('form.remark'), 62 + title: t('form.remark'),
56 field: 'remark', 63 field: 'remark',
57 isTable: false 64 isTable: false
58 }, 65 },