
<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>