Commit 273ae198 by preschooler

🐞 fix:修复邮件模块搜索栏元素宽度

parent a4d19cc0
...@@ -25,12 +25,26 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -25,12 +25,26 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '邮箱', label: '邮箱',
field: 'mail', field: 'mail',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '用户名', label: '用户名',
field: 'username', field: 'username',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '密码', label: '密码',
......
...@@ -21,7 +21,10 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -21,7 +21,10 @@ const crudSchemas = reactive<CrudSchema[]>([
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', 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: { detail: {
...@@ -36,7 +39,14 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -36,7 +39,14 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '用户编号', label: '用户编号',
field: 'userId', field: 'userId',
isSearch: true, isSearch: true,
isTable: false isTable: false,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '用户类型', label: '用户类型',
...@@ -44,7 +54,14 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -44,7 +54,14 @@ const crudSchemas = reactive<CrudSchema[]>([
dictType: DICT_TYPE.USER_TYPE, dictType: DICT_TYPE.USER_TYPE,
dictClass: 'number', dictClass: 'number',
isSearch: true, isSearch: true,
isTable: false isTable: false,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '邮件标题', label: '邮件标题',
...@@ -65,7 +82,14 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -65,7 +82,14 @@ const crudSchemas = reactive<CrudSchema[]>([
field: 'sendStatus', field: 'sendStatus',
dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS, dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '邮箱账号', label: '邮箱账号',
...@@ -79,6 +103,9 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -79,6 +103,9 @@ const crudSchemas = reactive<CrudSchema[]>([
optionsAlias: { optionsAlias: {
labelField: 'mail', labelField: 'mail',
valueField: 'id' valueField: 'id'
},
style: {
width: '240px'
} }
} }
} }
...@@ -93,7 +120,14 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -93,7 +120,14 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '模板编号', label: '模板编号',
field: 'templateId', field: 'templateId',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板编码', label: '模板编码',
......
...@@ -22,12 +22,26 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -22,12 +22,26 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '模板编码', label: '模板编码',
field: 'code', field: 'code',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板名称', label: '模板名称',
field: 'name', field: 'name',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板标题', label: '模板标题',
...@@ -59,6 +73,9 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -59,6 +73,9 @@ const crudSchemas = reactive<CrudSchema[]>([
optionsAlias: { optionsAlias: {
labelField: 'mail', labelField: 'mail',
valueField: 'id' valueField: 'id'
},
style: {
width: '240px'
} }
} }
}, },
...@@ -82,7 +99,14 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -82,7 +99,14 @@ const crudSchemas = reactive<CrudSchema[]>([
field: 'status', field: 'status',
isSearch: true, isSearch: true,
dictType: DICT_TYPE.COMMON_STATUS, dictType: DICT_TYPE.COMMON_STATUS,
dictClass: 'number' dictClass: 'number',
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '备注', label: '备注',
...@@ -100,7 +124,10 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -100,7 +124,10 @@ const crudSchemas = reactive<CrudSchema[]>([
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', 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'
}
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment