(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ba41c0a"],{1765:function(t,e,n){},c2d3:function(t,e,n){"use strict";n("1765")},d8de:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-card",{attrs:{bordered:!1}},[n("a-row",{attrs:{gutter:8}},[n("a-col",{attrs:{span:6}},[n("a-tree",{staticClass:"template-5-tree",attrs:{"tree-data":t.treeData,"show-icon":"","show-line":"",expandedKeys:t.treeExpandedKeys,selectedKeys:[t.pagination.current]},on:{expand:t.handleTreeExpand,select:t.handleTreeSelect}},[n("a-icon",{staticStyle:{color:"#0c8fcf"},attrs:{slot:"myIcon",type:"unordered-list"},slot:"myIcon"})],1)],1),n("a-col",{attrs:{span:18}},[n("j-vxe-table",{attrs:{"row-number":"","row-selection":"",height:750,loading:t.loading,columns:t.columns,dataSource:t.dataSource,pagination:t.pagination},on:{pageChange:t.handleTablePageChange}})],1)],1)],1)},o=[],a=n("0fea"),l=n("2475"),s={name:"Template5",data:function(){return{loading:!1,pagination:{current:1,pageSize:50,pageSizeOptions:["50"],total:0},selectedRows:[],dataSource:[],columns:[{key:"num",title:"序号",width:"80px"},{key:"ship_name",title:"船名",width:"180px",type:l["b"].input},{key:"call",title:"呼叫",width:"80px",type:l["b"].input},{key:"len",title:"长",width:"80px",type:l["b"].input},{key:"ton",title:"吨",width:"120px",type:l["b"].input},{key:"payer",title:"付款方",width:"120px",type:l["b"].input},{key:"count",title:"数",width:"40px"},{key:"company",title:"公司",minWidth:"180px",type:l["b"].input},{key:"trend",title:"动向",width:"120px",type:l["b"].input}],treeData:[{title:"1-10页",key:"1-10",children:[{title:"第 1 页",key:1,slots:{icon:"myIcon"}},{title:"第 2 页",key:2,slots:{icon:"myIcon"}},{title:"第 3 页",key:3,slots:{icon:"myIcon"},children:[{title:"第 333 页",key:333,slots:{icon:"myIcon"}},{title:"第 444 页",key:444,slots:{icon:"myIcon"}},{title:"第 555 页",key:555,slots:{icon:"myIcon"}}]},{title:"第 4 页",key:4,slots:{icon:"myIcon"}},{title:"第 5 页",key:5,slots:{icon:"myIcon"}},{title:"第 6 页",key:6,slots:{icon:"myIcon"}},{title:"第 7 页",key:7,slots:{icon:"myIcon"}},{title:"第 8 页",key:8,slots:{icon:"myIcon"}},{title:"第 9 页",key:9,slots:{icon:"myIcon"}},{title:"第 10 页",key:10,slots:{icon:"myIcon"}}],slots:{icon:"myIcon"}},{title:"11-20页",key:"11-20",children:[{title:"第 11 页",key:11,slots:{icon:"myIcon"}},{title:"第 12 页",key:12,slots:{icon:"myIcon"}},{title:"第 13 页",key:13,slots:{icon:"myIcon"}},{title:"第 14 页",key:14,slots:{icon:"myIcon"}},{title:"第 15 页",key:15,slots:{icon:"myIcon"}},{title:"第 16 页",key:16,slots:{icon:"myIcon"}},{title:"第 17 页",key:17,slots:{icon:"myIcon"}},{title:"第 18 页",key:18,slots:{icon:"myIcon"}},{title:"第 19 页",key:19,slots:{icon:"myIcon"}},{title:"第 20 页",key:20,slots:{icon:"myIcon"}}],slots:{icon:"myIcon"}}],treeExpandedKeys:["1-10"],url:{getData:"/mock/vxe/getData"}}},created:function(){this.loadData()},methods:{loadData:function(){var t=this,e={pageNo:this.pagination.current,pageSize:this.pagination.pageSize};this.loading=!0,Object(a["c"])(this.url.getData,e).then((function(e){e.success?(t.pagination.total=e.result.total,t.dataSource=e.result.records,t.selectedRows=[]):t.$error({title:"主表查询失败",content:e.message})})).finally((function(){t.loading=!1}))},handleTablePageChange:function(t){this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.loadData(),t.current<=10?this.treeExpandedKeys=["1-10"]:this.treeExpandedKeys=["11-20"]},handleTreeSelect:function(t){var e=t[0];"string"===typeof e?this.treeExpandedKeys=t:(this.pagination.current=e,this.loadData())},handleTreeExpand:function(t){this.treeExpandedKeys=t}}},c=s,y=(n("c2d3"),n("2877")),r=Object(y["a"])(c,i,o,!1,null,null,null);e["default"]=r.exports}}]);