bootstarp 헤더 합병 조합

3542 단어 프런트 엔드
  $('#dataGrid1').bootstrapTableEx({
    url: '../../schoolGrade/statistic?_' + $.now(),
    height: $(window).height() - 90,
    pagination: false,
    queryParams: function (params) {
      params.selectDate = vm.selectDate;
      params.schoolType = vm.schoolType;
      params.schoolId = vm.schoolId;
      return params;
    },
    columns: [
      [
        { field: 'schoolName',title: " ",width: "120px",align:"center",valign:"middle",colspan: 1,rowspan: 2},
        { field: 'schoolType',title: " ",width: "80px",align:"center",valign:"middle",colspan: 1,rowspan: 2},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1},
        { title: " ", width: "100px",align:"center",colspan: 2,rowspan: 1}
      ],
      [
        {
          field: 'num1',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num2',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num3',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num4',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num5',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num6',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num7',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num8',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num9',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num10',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num11',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num12',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num13',
          title: ' ',
          align:"center",
          width: "50px"
        },
        {
          field: 'num14',
          title: ' ',
          align:"center",
          width: "50px"
        }
      ]
    ]
  })

좋은 웹페이지 즐겨찾기