|
@@ -15,7 +15,7 @@ export const columns: BasicColumn[] = [
|
|
|
width: 180,
|
|
|
customRender: ({ text }) => {
|
|
|
return useRender.renderDate(text)
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
#elseif("" != $column.dictType)## 数据字典
|
|
|
{
|
|
@@ -24,7 +24,7 @@ export const columns: BasicColumn[] = [
|
|
|
width: 180,
|
|
|
customRender: ({ text }) => {
|
|
|
return useRender.renderDict(text, DICT_TYPE.$dictType.toUpperCase())
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
#else
|
|
|
{
|
|
@@ -53,9 +53,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 设置了 dictType 数据字典的情况
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase())
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase()),
|
|
|
#else## 未设置 dictType 数据字典的情况
|
|
|
- options: []
|
|
|
+ options: [],
|
|
|
#end
|
|
|
},
|
|
|
#elseif($column.htmlType == "datetime")
|
|
@@ -88,52 +88,52 @@ export const createFormSchema: FormSchema[] = [
|
|
|
required: true,
|
|
|
#end
|
|
|
#if ($column.htmlType == "input")
|
|
|
- component: 'Input'
|
|
|
+ component: 'Input',
|
|
|
#elseif($column.htmlType == "imageUpload")## 图片上传
|
|
|
component: 'FileUpload',
|
|
|
componentProps: {
|
|
|
fileType: 'file',
|
|
|
- maxCount: 1
|
|
|
- }
|
|
|
+ maxCount: 1,
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "fileUpload")## 文件上传
|
|
|
component: 'FileUpload',
|
|
|
componentProps: {
|
|
|
fileType: 'image',
|
|
|
- maxCount: 1
|
|
|
- }
|
|
|
+ maxCount: 1,
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "editor")## 文本编辑器
|
|
|
- component: 'Editor'
|
|
|
+ component: 'Editor',
|
|
|
#elseif($column.htmlType == "select")## 下拉框
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "checkbox")## 多选框
|
|
|
component: 'Checkbox',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "radio")## 单选框
|
|
|
component: 'RadioButtonGroup',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "datetime")## 时间框
|
|
|
- component: 'DatePicker'
|
|
|
+ component: 'DatePicker',
|
|
|
#elseif($column.htmlType == "textarea")## 文本域
|
|
|
- component: 'InputTextArea'
|
|
|
+ component: 'InputTextArea',
|
|
|
#end
|
|
|
},
|
|
|
#end
|
|
@@ -162,44 +162,44 @@ export const updateFormSchema: FormSchema[] = [
|
|
|
required: true,
|
|
|
#end
|
|
|
#if ($column.htmlType == "input")
|
|
|
- component: 'Input'
|
|
|
+ component: 'Input',
|
|
|
#elseif($column.htmlType == "imageUpload")## 图片上传
|
|
|
- component: 'Upload'
|
|
|
+ component: 'Upload',
|
|
|
#elseif($column.htmlType == "fileUpload")## 文件上传
|
|
|
- component: 'Upload'
|
|
|
+ component: 'Upload',
|
|
|
#elseif($column.htmlType == "editor")## 文本编辑器
|
|
|
- component: 'Editor'
|
|
|
+ component: 'Editor',
|
|
|
#elseif($column.htmlType == "select")## 下拉框
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "checkbox")## 多选框
|
|
|
component: 'Checkbox',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "radio")## 单选框
|
|
|
component: 'RadioButtonGroup',
|
|
|
componentProps: {
|
|
|
#if ("" != $dictType)## 有数据字典
|
|
|
- options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
|
|
|
+ options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number'),
|
|
|
#else##没数据字典
|
|
|
- options:[]
|
|
|
+ options:[],
|
|
|
#end
|
|
|
- }
|
|
|
+ },
|
|
|
#elseif($column.htmlType == "datetime")## 时间框
|
|
|
- component: 'DatePicker'
|
|
|
+ component: 'DatePicker',
|
|
|
#elseif($column.htmlType == "textarea")## 文本域
|
|
|
- component: 'InputTextArea'
|
|
|
+ component: 'InputTextArea',
|
|
|
#end
|
|
|
},
|
|
|
#end
|