(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59703c37"],{"62d4":function(t,e,a){"use strict";a("8822")},"6cd0":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"GraphreportAutoTreeTable",computed:{getTableAddTotalRow:function(){var t;return"json"===this.cggraphreportData.head.dataType?t=JSON.parse(JSON.stringify(this.chartData)):"sql"!==this.cggraphreportData.head.dataType&&"bean"!==this.cggraphreportData.head.dataType||(t=JSON.parse(JSON.stringify(this.cggraphreportData.data.data))),t},getTableScroll:function(){var t=100*this.columns.length-40;return t<this.tableWarpWidth&&this.columns.forEach((function(t){"rowIndex"!==t.dataIndex&&delete t.width})),t>this.tableWarpWidth&&t}},data:function(){return{columns:[],customRender:{},spinning:!0,tableWarpWidth:0,isTotal:!1}},props:["items","cggraphreportData","chartData"],watch:{items:{handler:function(t,e){this.getColunms()},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.$refs.tableWarp&&(t.tableWarpWidth=t.$refs.tableWarp.offsetWidth),t.getColunms()}))},methods:{getColunms:function getColunms(){var that=this,items=JSON.parse(JSON.stringify(this.items));items.sort((function(t,e){return t.orderNum-e.orderNum})),items.forEach((function(item,i){if(item.isShow){var column={title:item.fieldTxt,dataIndex:item.fieldName,width:100};if(0!==i&&(column.align="center"),item.jsEnhance){column.scopedSlots={customRender:column.dataIndex};var obj=eval("("+item.jsEnhance+")");that.customRender[column.dataIndex]=obj.customRender}that.columns.push(column)}}))},addComment:function addComment(text,record,index,$event){var domClick=$event.target.getAttribute("@click");domClick&&(domClick=eval("("+domClick+")"),domClick.call(this,text,record,index))}}}},8822:function(t,e,a){},"8e4d":function(t,e,a){},df28:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"tableWarp",staticClass:"tableWarp"},[t._t("extra_",null,{slot:"extra"}),a("div",{staticClass:"table-operator"},[a("a-row",{attrs:{type:"flex",gutter:24,justify:"space-between"}},[a("a-col",{attrs:{xl:16,lg:16,md:16,sm:16}},[a("a-button",{attrs:{type:"primary",icon:"download"}},[t._v("导出")]),a("h5",{staticStyle:{display:"inline-block"}},[t._v(t._s(t.cggraphreportData.head.annotation))])],1)],1)],1),a("a-table",{attrs:{size:"middle",bordered:"",rowKey:"id",columns:t.columns,"data-source":t.getTableAddTotalRow,pagination:!1,scroll:{x:t.getTableScroll}},scopedSlots:t._u([t._l(Object.keys(t.customRender),(function(e,n){return{key:e,fn:function(r,o,i){return[a("div",{key:n,staticClass:"custom-render",domProps:{innerHTML:t._s(t.customRender[e](r,o))},on:{click:function(e){return t.addComment(r,o,i,e)}}})]}}}))],null,!0)})],2)},r=[],o=a("6cd0"),i=o["a"],s=(a("efa2"),a("62d4"),a("2877")),c=Object(s["a"])(i,n,r,!1,null,"1cc652e7",null);e["default"]=c.exports},efa2:function(t,e,a){"use strict";a("8e4d")}}]);