init2
This commit is contained in:
43
doc/easycode/const.js.vm
Normal file
43
doc/easycode/const.js.vm
Normal file
@@ -0,0 +1,43 @@
|
||||
##导入宏定义
|
||||
$!{define.vm}
|
||||
|
||||
##设置表后缀(宏定义)
|
||||
#setTableSuffix("const")
|
||||
##保存文件(宏定义)
|
||||
#save("/const/"+$!tableInfo.name, ".js")
|
||||
##定义实体对象名
|
||||
#set($entityName = $!tool.firstLowerCase($!tableInfo.name))
|
||||
export default {
|
||||
height:'auto',
|
||||
calcHeight: 30,
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
border: true,
|
||||
index: true,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
menuWidth: 300,
|
||||
column: [
|
||||
#foreach($column in $tableInfo.fullColumn)
|
||||
##默认
|
||||
#if(${column.comment})
|
||||
#if($!{column.type} == "Date")
|
||||
{
|
||||
label: "${column.comment}",
|
||||
prop: "$!{column.name}",
|
||||
type: "date",
|
||||
format: "yyyy-MM-dd hh:mm:ss",
|
||||
valueFormat: "yyyy-MM-dd hh:mm:ss",
|
||||
},
|
||||
#else
|
||||
{
|
||||
label: "${column.comment}",
|
||||
prop: "$!{column.name}",
|
||||
type: "input",
|
||||
},
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user