mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-02 11:44:59 +08:00
fix: dict
This commit is contained in:
parent
a595539e8b
commit
4d7ac3ebc8
@ -30,9 +30,14 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
field: '${column.javaField}',
|
field: '${column.javaField}',
|
||||||
#if ("" != $dictType)## 有数据字典
|
#if ("" != $dictType)## 有数据字典
|
||||||
dictType: DICT_TYPE.$dictType.toUpperCase(),
|
dictType: DICT_TYPE.$dictType.toUpperCase(),
|
||||||
|
#if (${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
||||||
|
dictData: 'number',
|
||||||
|
#else
|
||||||
|
dictData: 'string',
|
||||||
|
#end
|
||||||
#end
|
#end
|
||||||
#if (!$column.createOperation && !$column.updateOperation)
|
#if (!$column.createOperation && !$column.updateOperation)
|
||||||
isForm: false
|
isForm: false,
|
||||||
#elseif(!("" != $column.dictType))
|
#elseif(!("" != $column.dictType))
|
||||||
#if ($column.htmlType == "datetime")## 时间框
|
#if ($column.htmlType == "datetime")## 时间框
|
||||||
form: {
|
form: {
|
||||||
@ -42,7 +47,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
type: 'datetime',
|
type: 'datetime',
|
||||||
valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
#elseif($column.htmlType == "editor")## 文本编辑器
|
#elseif($column.htmlType == "editor")## 文本编辑器
|
||||||
form: {
|
form: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -53,7 +58,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
valueHtml: ''
|
valueHtml: ''
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
#elseif($column.htmlType == "textarea")## 文本框
|
#elseif($column.htmlType == "textarea")## 文本框
|
||||||
form: {
|
form: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -65,21 +70,21 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
colProps: {
|
colProps: {
|
||||||
span: 24
|
span: 24
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#if ($column.listOperationResult)
|
#if ($column.listOperationResult)
|
||||||
#if($column.htmlType == "input")
|
#if($column.htmlType == "input")
|
||||||
isSearch: true
|
isSearch: true,
|
||||||
#elseif("" != $dictType)
|
#elseif("" != $dictType)
|
||||||
isSearch: true
|
isSearch: true,
|
||||||
#elseif($column.htmlType == "datetime")
|
#elseif($column.htmlType == "datetime")
|
||||||
search: {
|
search: {
|
||||||
show: true,
|
show: true,
|
||||||
itemRender: {
|
itemRender: {
|
||||||
name: 'XDataTimePicker'
|
name: 'XDataTimePicker'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
Loading…
Reference in New Issue
Block a user