(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-020c99c8"],{2844:function(e,t,a){},"9ee4":function(e,t,a){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},a342:function(e,t,a){"use strict";a("2844")},bb89:function(e,t,a){"use strict";a("9ee4")},d693:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.tableObj.tableName?t("p",{staticClass:"table-title"},[e._v(e._s(e.tableObj.tableName))]):e._e(),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:Math.random(),staticStyle:{width:"100%"},attrs:{id:e.tableObj.showCopy?e.copyConfig.tableId:e.tableObj.tableName,data:e.tableObj.data,"row-class-name":e.tableRowClassName,"element-loading-text":"正在获取数据。。。",border:"",fit:""}},e._l(e.tableObj.head,(function(a,n){return t("el-table-column",{key:n,attrs:{prop:a.columnKey,width:"order_info"===a.columnKey?"200":""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{class:[0!==a.columnInside.length?"center":"left"]},[e._v(" "+e._s(a.columnName)+" ")])]},proxy:!0}],null,!0)},e._l(a.columnInside,(function(a,n){return t("el-table-column",{key:n,attrs:{prop:a.columnKey,width:a.promptText?"150px":""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{class:["column-header",0!==a.columnInside.length||a.promptText?"center":"left"]},[t("span",[e._v(e._s(a.columnName))]),a.promptText?t("el-tooltip",{attrs:{effect:"dark",content:a.promptText,placement:"right"}},[t("span",{staticClass:"prompt-icon"},[e._v("?")])]):e._e()],1)]},proxy:!0}],null,!0)},[0!==a.columnInside.length?t("div",e._l(a.columnInside,(function(e,a){return t("el-table-column",{key:a,attrs:{label:e.columnName,prop:e.columnKey}})})),1):e._e()])})),1)})),1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.showCopy,expression:"tableObj.showCopy"}],staticClass:"mt-20"},[t("el-button",{attrs:{size:"small"},on:{click:e.copyToExcel}},[e._v("复制到Excel")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.synPaginationParams.size,expression:"synPaginationParams.size"}],staticClass:"pagination-container fr"},[t("el-pagination",{attrs:{"current-page":e.synPaginationParams.page,"page-sizes":[10,15,20,50],"page-size":e.synPaginationParams.size,layout:"total, sizes, prev, pager, next, jumper",total:e.synPaginationParams.total},on:{"update:currentPage":function(t){return e.$set(e.synPaginationParams,"page",t)},"update:current-page":function(t){return e.$set(e.synPaginationParams,"page",t)},"update:pageSize":function(t){return e.$set(e.synPaginationParams,"size",t)},"update:page-size":function(t){return e.$set(e.synPaginationParams,"size",t)},"size-change":function(t){return e.$emit("tablechange")},"current-change":function(t){return e.$emit("tablechange")}}})],1)],1)},o=[],s=(a("0643"),a("4e3e"),a("9ab4")),i=a("60a3");let r=class extends i["f"]{constructor(){super(...arguments),this.listLoading=!1}tableRowClassName({row:e,rowIndex:t}){return 1===e.rendering&&this.tableObj.data&&this.tableObj.data.length-1!==t?"summary-row":1===e.rendering&&this.tableObj.data&&this.tableObj.data.length-1===t?"total-row":""}copyToExcel(){const e=document.getElementsByClassName("gutter");Array.from(e).forEach(e=>{e.style.display="none"});const t=document.getElementById(this.copyConfig.tableId),a=document.createRange();a.selectNode(t);const n=window.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(a),document.execCommand("copy")}};Object(s["a"])([Object(i["c"])({type:Object,required:!0})],r.prototype,"tableObj",void 0),Object(s["a"])([Object(i["c"])({type:Object,required:!1})],r.prototype,"copyConfig",void 0),Object(s["a"])([Object(i["d"])("paginationParams")],r.prototype,"synPaginationParams",void 0),r=Object(s["a"])([i["a"]],r);var l=r,c=l,u=(a("a342"),a("bb89"),a("2877")),p=Object(u["a"])(c,n,o,!1,null,"5d25a3c6",null);t["default"]=p.exports}}]);
//# sourceMappingURL=chunk-020c99c8.bc21a55c.js.map