crud.js.vm 844 Bytes
Newer Older
fangxinjiang's avatar
fangxinjiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "column": [
#set($excludeColumns = ["create_time","update_time","create_by","update_by"])
#foreach ($column in $columns)
## 当列是主键 或者 列是审计字段时候, 新增不显示,编辑的时候显示单不能编辑
#if($column.columnName == $pk.columnName || $excludeColumns.contains($column.columnName))
    {
      "type": "input",
      "label": "$column.comments",
      "prop": "$column.lowerAttrName",
      "addDisplay": false,
      "editDisabled": true
    }#if($foreach.hasNext),#end
#else
    {
      "type": "input",
      "label": "$column.comments",
      "prop": "$column.lowerAttrName"
    }#if($foreach.hasNext),#end
#end
#end
  ]
}