mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 15:51:52 +08:00
fix
This commit is contained in:
parent
e76a6f814f
commit
195af02d18
@ -189,13 +189,14 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns
|
|||||||
tableSchemaItem.showOverflow = 'tooltip'
|
tableSchemaItem.showOverflow = 'tooltip'
|
||||||
if (schemaItem?.formatter) {
|
if (schemaItem?.formatter) {
|
||||||
tableSchemaItem.formatter = schemaItem.formatter
|
tableSchemaItem.formatter = schemaItem.formatter
|
||||||
tableSchemaItem.width = 160
|
tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160
|
||||||
}
|
}
|
||||||
if (schemaItem?.dictType) {
|
if (schemaItem?.dictType) {
|
||||||
tableSchemaItem.cellRender = {
|
tableSchemaItem.cellRender = {
|
||||||
name: 'XDict',
|
name: 'XDict',
|
||||||
content: schemaItem.dictType
|
content: schemaItem.dictType
|
||||||
}
|
}
|
||||||
|
tableSchemaItem.width = tableSchemaItem.width ? tableSchemaItem.width : 160
|
||||||
}
|
}
|
||||||
|
|
||||||
tableSchema.push(tableSchemaItem)
|
tableSchema.push(tableSchemaItem)
|
||||||
|
@ -21,38 +21,45 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
primaryKey: 'id',
|
primaryKey: 'id',
|
||||||
primaryType: 'seq',
|
primaryType: 'seq',
|
||||||
action: true,
|
action: true,
|
||||||
|
actionWidth: '280',
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: '模板编码',
|
title: '模板编码',
|
||||||
field: 'code',
|
field: 'code',
|
||||||
isSearch: true
|
isSearch: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '模板名称',
|
title: '模板名称',
|
||||||
field: 'name',
|
field: 'name',
|
||||||
isSearch: true
|
isSearch: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '模板内容',
|
title: '模板内容',
|
||||||
field: 'content'
|
field: 'content'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '短信 API 的模板编号',
|
title: '短信 API 的模板编号',
|
||||||
field: 'apiTemplateId',
|
field: 'apiTemplateId',
|
||||||
isSearch: true
|
isSearch: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '短信类型',
|
title: '短信类型',
|
||||||
field: 'type',
|
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',
|
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',
|
field: 'remark',
|
||||||
isTable: false
|
isTable: false
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user