ludc
2023-03-16 86b6157299a50579f454e4fb45a09ff21d252dab
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  menuWidth: 300,
  column: [
#for(x in prototypes) {
    {
      label: "${x.comment!}",
      prop: "${x.propertyName!}",
      type: "${x.componentType!}",
#if(strutil.contain(x.componentType,"date")||strutil.contain(x.componentType,"time")){
      format: "yyyy-MM-dd hh:mm:ss",
      valueFormat: "yyyy-MM-dd hh:mm:ss",
#}
#if(isNotEmpty(x.dictCode)){
      dicUrl: "/api/blade-system/dict/dictionary?code=${x.dictCode!}",
      dataType: "number",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
#}
#if(x.isForm==0){
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
#}
#if(x.isRow==1){
      span: 24,
#}
#if(x.isList==0){
      hide: true,
#}
#if(x.isQuery==1){
      search: true,
#}
#if(x.isRequired==1&&isEmpty(x.validateRule)){
      rules: [{
        required: true,
        message: "请输入${x.comment!}",
        trigger: "blur"
      }],
#}
    },
#}
  ]
}