{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "border",
    "itemId": "viewport"
   },
   "expanded": true,
   "children": [
    {
     "configs": {
      "itemId": "tbar",
      "region": "north"
     },
     "expanded": true,
     "children": [{
      "configs": {"itemId": "dockedItems"},
      "expanded": true,
      "children": [
       {
        "configs": {"itemId": "tbar1"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "searchItem",
           "text": "查询",
           "iconCls": "search_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "// Wb.request({\
//   url: 'm?xwl=examples/tabulator/datasource/selectWebBk',\
//   success: function(rec) {\
//     app.table1.setData(Wb.decode(rec.responseText).rows);\
//   }\
// });\
\
Wb.requestAg({\
  params: {\
    bean: \"TabulatorTestService\", //controller类名\
    method: \"selectAll\" //业务方法名 \
  },\
  success: function(res) {\
    console.log(Wb.decode(res.responseText));\
    app.table1.setData(Wb.decode(res.responseText));\
  }\
});"}
         },
         {
          "configs": {
           "itemId": "getDataAllItem",
           "text": "获取表中全部数据",
           "iconCls": "book_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "console.log(app.table1.getData());"}
         },
         {
          "configs": {
           "itemId": "getSelectedDataItem",
           "text": "获取选中行数据",
           "iconCls": "book_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "//获取数据\
console.log(app.table1.getSelectedData());\
//获取选中行组件\
// console.log(app.table1.getSelectedRows());"}
         },
         {
          "configs": {
           "itemId": "getEditedDataItem",
           "text": "获取编辑数据",
           "iconCls": "book_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "//获取编辑的单元格\
console.log(app.table1.getEditedCells());"}
         },
         {
          "configs": {
           "itemId": "downloadAllItem",
           "text": "下载全部数据至xlxs",
           "iconCls": "book_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "app.table1.download(\"xlsx\", \"data.xlsx\", {sheetName:\"MyData\"});"}
         },
         {
          "configs": {
           "itemId": "downloadSelectedItem",
           "text": "下载选中数据xlxs",
           "iconCls": "book_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "//获取编辑的单元格\
app.table1.download(\"xlsx\", \"data.xlsx\", {sheetName:\"MyData\"},\"selected\");"}
         }
        ],
        "type": "toolbar"
       },
       {
        "configs": {"itemId": "tbar2"},
        "expanded": true,
        "children": [],
        "type": "toolbar"
       }
      ],
      "type": "array"
     }],
     "type": "panel"
    },
    {
     "configs": {
      "layout": "fit",
      "itemId": "tablePanel",
      "html": "<div id =\"bigdata-table-tabulator\"><\/div>",
      "region": "center"
     },
     "expanded": false,
     "children": [],
     "type": "panel",
     "events": {"afterrender": "app.table1 = new Tabulator(\"#bigdata-table-tabulator\" , {\
  locale: true,\
  //如果是分页 设置小于100%否则wb导致无法显示分页footer\
  height: \"100%\",\
  //开启可移动列\
  movableColumns: true,\
  //开启选中模式\
  selectable: true,\
  columns: [{\
    formatter: \"rowSelection\",\
    titleFormatter: \"rowSelection\",\
    hozAlign: \"center\",\
    headerSort: false,\
    //无需导出列\
    download: false,\
    cellClick: function(e, cell) {\
      cell.getRow().toggleSelect();\
    }\
  }, {\
    title: \"序号\",\
    formatter: \"rownum\",\
    hozAlign: \"center\",\
    width: 40,\
    headerSort:false\
  }, {\
    title: \"提单号\",\
    field: \"billNo\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"委托编号\",\
    field: \"clientNbr\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"订单号\",\
    field: \"orderNo\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"船名\",\
    field: \"vesselName\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"航次\",\
    field: \"obVyg\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"船期\",\
    field: \"etd\",\
    sorter: \"string\",\
    headerFilter: true\
  }, {\
    title: \"客户代码\",\
    field: \"clientCod\",\
    sorter: \"string\",\
    headerFilter: true\
  }]\
});"}
    }
   ],
   "type": "viewport"
  }],
  "type": "module"
 }],
 "roles": {"default": 1},
 "title": "大数据量",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}