| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["NoticeInformation"],{2909:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("6b75");function r(e){if(Array.isArray(e))return Object(n["a"])(e)}a("a4d3"),a("e01a"),a("d28b"),a("a630"),a("d3b7"),a("3ca3"),a("ddb0");function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var i=a("06c5");a("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return r(e)||o(e)||Object(i["a"])(e)||s()}},3160:function(e,t,a){"use strict";var n=a("c7eb"),r=a("1da1"),o=a("d4ec"),i=a("bee2"),s=a("8f33"),c=a("262e"),l=a("ff2d"),u=a("bc3a"),p=a.n(u),d=a("f121"),f=a.n(d),h=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(s["a"])(this,t),p.a.defaults.baseURL=f.a.Host85,e}return Object(c["a"])(t,e),Object(i["a"])(t,[{key:"rewardStatisticsList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/sales/reward/statistics",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"rewardSearchList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/sales/reward/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"rewardDeduction",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/sales/reward/deduction",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"commissionSearchList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/agent/balance/commission/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"salesLeaderAllList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/sales/leader/all/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"salesPerformanceList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/trade/sales/performance/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"sendPerformanceManagerReport",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/trade/sales/performance/manager/send",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"sendPerformanceReport",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/trade/sales/performance/send",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"statisticsPerformance",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/trade/sales/performance/statistics",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(l["a"]);t["a"]=new h},"3d92":function(e,t,a){},4043:function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c");var n=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"system_ConfigChanges","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"crm_search"},[t("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[t("el-row",[t("el-col",{attrs:{span:24,md:24,lg:24}},[t("el-form-item",{staticStyle:{"margin-right":"15px"}},[t("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId",t)},expression:"search.cId"}},[t("template",{slot:"prepend"},[t("span",{staticClass:"crm-cursor"},[e._v("CID")])])],2)],1),t("el-form-item",{staticStyle:{"margin-right":"15px"}},[t("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo",t)},expression:"search.ibNo"}},[t("template",{slot:"prepend"},[t("span",{staticClass:"crm-cursor"},[e._v(e._s(e.$t("Label.IbNo")))])])],2)],1),t("el-form-item",[t("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.search.salesName,callback:function(t){e.$set(e.search,"salesName",t)},expression:"search.salesName"}},[t("template",{slot:"prepend"},[t("span",{staticClass:"crm-cursor"},[e._v(e._s(e.$t("Label.SalesName")))])])],2)],1),t("el-form-item",[t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1)],1)],1),t("ConfigurableTable",{attrs:{data:e.mock_tableData,columns:e.tableColumns,"pager-info":e.mock_tableData.length>0?e.pagerInfo:null,border:!0},on:{"page-change":e.handlePageChange},scopedSlots:e._u([{key:"action",fn:function(a){var n,r=a.row;return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[null!==(n=e.display["R-RewardDetails-Deduction"])&&void 0!==n&&n.show&&1===r.amountType?t("el-dropdown-item",{attrs:{command:{type:"deduction",row:r}}},[t("span",[e._v(e._s(e.$t("Btn.Deduction")))])]):e._e()],1)],1)]}}])})],1)},r=[],o=a("5530"),i=a("c7eb"),s=a("1da1"),c=(a("b64b"),a("3160")),l=a("f121"),u=a.n(l),p=a("a134"),d=u.a.Code,f={name:"RewardDetails",props:{status:{type:Boolean,default:!0}},components:{ConfigurableTable:p["a"]},data:function(){return{info:{},pictLoading:!1,exportLoading:!1,mock_tableData:[],search:{cId:"",ibNo:"",salesName:""},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()},tableColumns:function(){var e=this;return[{prop:"cId",label:"Label.CidAccount",align:"center",formatter:function(e){return e||"--"}},{prop:"ibNo",label:"Label.IbNo",align:"center",formatter:function(e){return e||"--"}},{prop:"salesName",label:"Label.SalesName",align:"center",formatter:function(e){return e||"--"}},{prop:"depositAmount",label:"Label.DepositAmount",align:"center",formatter:function(e){return e||"--"}},{prop:"rewardAmount",label:"Label.RewardAmount",align:"center",formatter:function(e){return e||"--"}},{prop:"customNum",label:"Label.CustomNum",align:"center",formatter:function(e){return e||"--"}},{prop:"rewardType",label:"Label.RewardType",align:"center",formatter:function(t){return e.getRewardTypeText(t)}},{prop:"rewardDate",label:"Label.RewardDate",align:"center",formatter:function(e){return e||"--"}},{label:"Label.Action",align:"center",slot:"action"}]}},methods:{handleCommand:function(e){"deduction"===e.type&&this.handleDeduction(e.row)},handleDeduction:function(e){var t=this;this.$confirm(this.$t("Msg.ConfirmDeduction"),this.$t("Btn.Deduction"),{confirmButtonText:this.$t("Label.Yes"),cancelButtonText:this.$t("Label.No"),type:"warning"}).then((function(){t.performDeduction(e.id)})).catch((function(){}))},performDeduction:function(e){var t=this;return Object(s["a"])(Object(i["a"])().mark((function a(){var n;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.pictLoading=!0,a.prev=1,a.next=4,c["a"].rewardDeduction({id:e});case 4:n=a.sent,n.code===d.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.DeductionSuccess")),t.searchFunc()):t.$pigeon.MessageError(n.msg),a.next=12;break;case 8:a.prev=8,a.t0=a["catch"](1),console.error("Deduction error:",a.t0),t.$pigeon.MessageError(t.$i18n.t("Msg.DeductionFailed"));case 12:return a.prev=12,t.pictLoading=!1,a.finish(12);case 15:case"end":return a.stop()}}),a,null,[[1,8,12,15]])})))()},getRewardTypeText:function(e){return 1===e?this.$t("Label.RewardTypeCustomerDeposit"):2===e?this.$t("Label.RewardTypeNewCustomer"):"--"},searchFunc:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,t.prev=1,e.display["R-RewardDetails-Search"]&&null!==(a=e.display["R-RewardDetails-Search"])&&void 0!==a&&a.show){t.next=6;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 6:t.next=14;break;case 8:return t.prev=8,t.t0=t["catch"](1),console.error("Error checking display permissions:",t.t0),e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 14:return t.next=16,c["a"].rewardSearchList(Object(o["a"])(Object(o["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 16:n=t.sent,n.code==d.StatusOK?(e.mock_tableData=n.data,null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):(e.pagerInfo.rowTotal=n.data?n.data.length:0,e.pagerInfo.pageTotal=1),e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(n.msg),e.pictLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[1,8]])})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handlePageChange:function(e){var t=e.type,a=e.value;"current"===t?this.pagerInfo.current=a:"size"===t&&(this.pagerInfo.row=a),this.searchFunc()}},mounted:function(){this.searchFunc()},created:function(){this.info=JSON.parse(sessionStorage.getItem("info"))}},h=f,m=(a("b3f2"),a("6435"),a("2877")),g=Object(m["a"])(h,n,r,!1,null,"d7476508",null);t["default"]=g.exports},6435:function(e,t,a){"use strict";a("3d92")},"69b9":function(e,t,a){},"70c6":function(e,t,a){"use strict";a("e16d")},"74f9":function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c");var n=function(){var e,t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"web_NoticeInformation","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm_search"},[a("el-form",{ref:"form",attrs:{"label-position":"",model:t.search,"label-width":""}},[a("el-row",[a("el-col",{attrs:{span:24,md:24,lg:24}},[a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Choose")},model:{value:t.search.tag,callback:function(e){t.$set(t.search,"tag",e)},expression:"search.tag"}},[a("el-option",{attrs:{label:t.$t("Web_info.All"),value:null},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}}),a("el-option",{attrs:{label:t.$t("Web_info.Announcement"),value:1},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}}),a("el-option",{attrs:{label:t.$t("Web_info.Notice"),value:2},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}})],1)],1),a("el-form-item",[a("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":t.$t("Placeholder.Start"),"end-placeholder":t.$t("Placeholder.End")},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}}),a("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.toSearch}})],1)],1)],1),null!==(e=t.display["R-NoticeInformation-Read"])&&void 0!==e&&e.show?a("el-form-item",[a("div",{staticClass:"search_action_btn"},[t.multipleSelection.length?a("span",{staticClass:"crm-cursor delete active",on:{click:t.toSwitchType}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Read",expression:"'Btn.Read'"}]})]):a("span",{staticClass:"crm-cursor delete"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Read",expression:"'Btn.Read'"}]})])])]):t._e()],1)],1),a("ConfigurableTable",{attrs:{data:t.mock_tableData,columns:t.tableColumns,"pager-info":t.pagerInfo,"show-selection":!0,border:!0},on:{"selection-change":t.handleSelectionChange,"page-change":t.handlePageChange},scopedSlots:t._u([{key:"title",fn:function(e){var n=e.row;return[n.title?a("span",{staticClass:"infoRead crm-text-underline crm-cursor crm-one-font",class:{active:!n.read},on:{click:function(e){return t.accountOpen(n)}}},[a("i",{staticClass:"el-icon-caret-right"}),t._v(t._s(n.title||"--")+" ")]):a("span",[t._v("--")])]}},{key:"tag",fn:function(e){var n=e.row;return t._l(n.tags,(function(e){return a("div",{key:e.id},[1==e.tag?a("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Announcement",expression:"'Web_info.Announcement'"}]}):t._e(),2==e.tag?a("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Notice",expression:"'Web_info.Notice'"}]}):t._e()])}))}}])})],1)},r=[],o=a("c7eb"),i=a("5530"),s=a("1da1"),c=(a("14d9"),a("e9f5"),a("7d54"),a("d3b7"),a("159b"),a("9630")),l=a("f121"),u=a.n(l),p=a("a134"),d=u.a.Code,f={name:"NoticeInformation",components:{ConfigurableTable:p["a"]},data:function(){return{pictLoading:!1,mock_tableData:[],search:{tag:null,lang:"",date:[],startDate:"",endDate:""},multipleSelection:[],pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()},tableColumns:function(){return[{label:"Label.Title",align:"center",slot:"title",tooltip:!1},{label:"Label.Tag",align:"center",slot:"tag",tooltip:!1},{prop:"deliveryTime",label:"Label.ReleaseTime",align:"center"}]}},methods:{searchFunc:function(){var e=this;return Object(s["a"])(Object(o["a"])().mark((function t(){var a,n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,null!==(a=e.display["R-NoticeInformation-Search"])&&void 0!==a&&a.show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),e.search.lang=e.Session.Get("lang"),t.next=9,c["a"].userInformationList(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 9:n=t.sent,n.code==d.StatusOK?(e.mock_tableData=n.data,null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(n.msg),e.pictLoading=!1);case 11:case"end":return t.stop()}}),t)})))()},getDate:function(){var e,t,a=2,n=(new Date).getTimezoneOffset(),r=(new Date).getTime(),o=new Date(r+60*n*1e3+60*a*60*1e3),i=o.getFullYear(),s=o.getMonth()+1,c=o.getDate();s<10&&(s="0"+s),c<10&&(c="0"+c),e=i+"-"+s+"-01";var l=o.getMonth(),u=++l,p=new Date(o.getFullYear(),u,1),d=864e5,f=new Date(p-d),h=f.getDate();h<10&&(h="0"+h),t=i+"-"+s+"-"+h,this.search.date=[e,t]},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},toSwitchType:function(){var e=this;return Object(s["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].userInformationAllRread({lang:e.Session.Get("lang"),informationIds:e.multipleSelection});case 2:a=t.sent,a.code==d.StatusOK?(e.searchFunc(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},accountOpen:function(e){this.$router.push({path:"/enter/notice/information/single",query:{id:e.id,type:"notice"}})},handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},handlePageChange:function(e){var t=e.type,a=e.value;"current"===t?this.pagerInfo.current=a:"size"===t&&(this.pagerInfo.row=a),this.searchFunc()}},mounted:function(){this.getDate(),this.searchFunc()}},h=f,m=(a("e8d2"),a("2877")),g=Object(m["a"])(h,n,r,!1,null,"447bdb40",null);t["default"]=g.exports},a134:function(e,t,a){"use strict";var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"configurable-table-wrapper"},[t("el-table",{class:e.tableClass,staticStyle:{width:"100%"},attrs:{data:e.processedTableData,stripe:"",border:e.border,"row-key":e.tableRowKey,"row-class-name":e.getRowClassName},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange,"expand-change":e.handleExpandChange}},[e.$scopedSlots.expand?t("el-table-column",{attrs:{type:"expand",width:"48"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("expand",null,{row:t.row})]}}],null,!0)}):e._e(),e.showSelection?t("el-table-column",{attrs:{type:"selection",width:e.selectionWidth,align:e.selectionAlign}}):e._e(),e._l(e.columns,(function(a,n){return t("el-table-column",{key:n,attrs:{prop:a.prop||void 0,label:e.getLabel(a),"min-width":a.minWidth,width:a.width,align:a.align||"center","header-align":a.headerAlign||a.align||"center",sortable:!!a.sortable&&"custom"},scopedSlots:e._u([{key:"default",fn:function(n){return[a.slot?e._t(a.slot,null,{row:n.row,column:a,index:n.$index}):[e.isHtmlValue(n.row,a)?[t("span",{domProps:{innerHTML:e._s(e.getCellHtml(n.row,a))}})]:[!1!==a.tooltip?t("el-tooltip",{attrs:{content:e.getTooltipContent(n.row,a),placement:"top",disabled:e.isTooltipDisabled(n.row,a)}},[t("span",[e._v(e._s(e.getCellText(n.row,a)))])]):t("span",[e._v(e._s(e.getCellText(n.row,a)))])]]]}}],null,!0)})}))],2),e.pagerInfo&&e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":e.pageSizes,"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)},r=[],o=a("b85c"),i=a("53ca"),s=a("ade3"),c=a("5530"),l=a("2909"),u=(a("7db0"),a("caad"),a("14d9"),a("e9f5"),a("d866"),a("f665"),a("a9e3"),a("b680"),a("b64b"),a("d3b7"),a("2532"),{name:"ConfigurableTable",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0,validator:function(e){return e.every((function(e){return e.prop||e.label}))}},pagerInfo:{type:Object,default:null},summaryRow:{type:Object,default:null},summaryRowKey:{type:String,default:"_isSummary"},summaryRowClass:{type:String,default:"summary-row"},tableClass:{type:String,default:"configurable-table"},border:{type:Boolean,default:!0},pageSizes:{type:Array,default:function(){return[10,20,50,100]}},sortMapper:{type:Function,default:null},rowKey:{type:[String,Function],default:null},showSelection:{type:Boolean,default:!1},selectionWidth:{type:[Number,String],default:55},selectionAlign:{type:String,default:"left"}},computed:{tableRowKey:function(){return null!=this.rowKey&&""!==this.rowKey?this.rowKey:void 0},processedTableData:function(){var e=Object(l["a"])(this.data);if(this.summaryRow&&Object.keys(this.summaryRow).length>0){var t=Object(c["a"])(Object(c["a"])({},this.summaryRow),{},Object(s["a"])({},this.summaryRowKey,!0));e.push(t)}return e}},methods:{getLabel:function(e){return e.label?"string"===typeof e.label&&(e.label.includes(".")||e.label.includes("-"))?this.$t(e.label):e.label:""},formatCellValue:function(e,t){var a=this.getFieldValue(e,t.prop);return t.formatter&&"function"===typeof t.formatter?t.formatter(a,e,t):"number"===t.type?this.formatNumber(a,t):a||(void 0!==t.emptyText?t.emptyText:"--")},isHtmlValue:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(i["a"])(a)&&a.html},getCellHtml:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(i["a"])(a)&&a.html?a.html:""},getCellText:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(i["a"])(a)&&a.html?a.text||"":a},getFieldValue:function(e,t){if(!t)return"";var a,n=t.split("."),r=e,i=Object(o["a"])(n);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(null==r)return"";r=r[s]}}catch(c){i.e(c)}finally{i.f()}return r},formatNumber:function(e,t){if(null==e||""===e)return void 0!==t.emptyText?t.emptyText:t.allowEmpty?"--":"0.00";var a=parseFloat(e);if(isNaN(a))return void 0!==t.emptyText?t.emptyText:"--";var n=void 0!==t.decimals?t.decimals:2;return a.toFixed(n)},getTooltipContent:function(e,t){var a=this.getFieldValue(e,t.prop);if(t.tooltipFormatter&&"function"===typeof t.tooltipFormatter){var n=t.tooltipFormatter(a,e,t);return null!=n?String(n):"--"}if("number"===t.type){var r=this.formatNumber(a,t);return"".concat(r)}return null==a?void 0!==t.emptyText?String(t.emptyText):"--":String(a)},isTooltipDisabled:function(e,t){var a=this.getFieldValue(e,t.prop);return t.tooltipDisabled&&"function"===typeof t.tooltipDisabled?t.tooltipDisabled(a,e,t):!a||"--"===a||""===a},getRowClassName:function(e){var t=e.row;return t[this.summaryRowKey]?this.summaryRowClass:""},handleSortChange:function(e){var t=e.prop,a=e.order;if(a){var n=this.columns.find((function(e){return e.prop===t})),r=n&&n.sortProp?n.sortProp:t,o=this.sortMapper?this.sortMapper(r):r;this.$emit("sort-change",{prop:o,order:"ascending"===a?"asc":"desc"})}else this.$emit("sort-change",{prop:null,order:null})},handleCurrentChange:function(e){this.$emit("page-change",{type:"current",value:e})},handleSizeChange:function(e){this.$emit("page-change",{type:"size",value:e})},handleSelectionChange:function(e){this.$emit("selection-change",e)},handleExpandChange:function(e,t){this.$emit("expand-change",e,t)}}}),p=u,d=(a("70c6"),a("2877")),f=Object(d["a"])(p,n,r,!1,null,"bd425fe6",null);t["a"]=f.exports},b3f2:function(e,t,a){"use strict";a("bcae")},bcae:function(e,t,a){},d866:function(e,t,a){"use strict";var n=a("23e7"),r=a("c65b"),o=a("2266"),i=a("59ed"),s=a("825a"),c=a("46c4"),l=a("2a62"),u=a("f99f"),p=u("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:p},{every:function(e){s(this);try{i(e)}catch(n){l(this,"throw",n)}if(p)return r(p,this,e);var t=c(this),a=0;return!o(t,(function(t,n){if(!e(t,a++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},e16d:function(e,t,a){},e8d2:function(e,t,a){"use strict";a("69b9")}}]);
|