lxy-kit/tpl/front/VueTpl.vue
bfc b9ae618855 1.添加生成Vue配置文件页面的模板;
2.修改后端Controller模板中findPage返回结果为PageBean;
3.修改后端JavaBean模板中日期格式
2019-03-20 15:04:49 +08:00

108 lines
3.6 KiB
Vue

<template>
<kit-common-list :componentListCfg="componentListCfg"/>
</template>
<script>
export default {
name: "kit-#(beanFL)",
data(){
return {
componentListCfg: {
apiCfg: {
title: "#(remark)",
conditionLabel: "#(conditionLabel)",
url: "/#(bean.toLowerCase())",
items: {
#for(x : fieldList)
#set(field=x.field,field=field.substring(0, 1).toLowerCase() + field.substring(1)
,selects=x.selects
,tag=x.tag
,remark=x.remark1
,fieldV=x.fieldV
)
"#(field)": {
"col": "#(field)",
"label": "#(remark)",
"inExt": "#(selects)",
"inType": "#(tag)",
"expr": "#(fieldV)"
}#if(!(for.last)),
#end
#end
},
shows: [
#for(x : showCol)
#set(col=x
)
{
"col": "#(col)",
"order": false
}#if(!(for.last)),
#end
#end
],
filters: [
#for(x : fs)
#set(name=x.name,
label=x.label,
col=x.col,
remark=x.remark
)
{
name: "#(name)",
label: "#(label)",
filterType: [
{
col: "#(col)",
remark: "#(remark)"
}
],
checked: false
}#if(!(for.last)),
#end
#end
],
edits: [
#for(x : editsList)
#set(col=x.col,
upAttr=x.upAttr,
addAttr=x.addAttr,
ck=x.ck
)
{
col: "#(col)",
#if(null!=upAttr)
upAttr: "#(upAttr)",
#end
#if(null!=addAttr)
addAttr: "#(addAttr)",
#end
#if(null!=ck)
ck: "#(ck)"
#end
}#if(!(for.last)),
#end
#end
],
details: [
#for(x : detailsList)
#set(col=x)
{col: "#(col)"}#if(!(for.last)),
#end
#end
]
}
}
}
}
}
</script>