You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.7 KiB
1 line
2.7 KiB
4 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-23b6"],{"1Rfc":function(t,i,e){"use strict";e.r(i);var a=e("JrBc"),n=e("MT78"),s=e.n(n),o=e("pHUW"),l={name:"RankingProductStatistics",mixins:[a.a],data:function(){return{}},computed:{},mounted:function(){this.fieldList=[{field:"user_name",name:"员工"},{field:"structure_name",name:"部门"},{field:"num",name:"产品销量"}],this.initAxis()},methods:{getDataList:function(t){var i=this;this.postParams=t,this.loading=!0,Object(o.i)(t).then(function(t){i.loading=!1,i.list=t.data||[];for(var e=[],a=[],n=t.data.length>10?10:t.data.length,s=0;s<n;s++){var o=t.data[s];e.splice(0,0,parseFloat(o.num)),a.splice(0,0,o.user_name)}i.axisOption.yAxis[0].data=a,i.axisOption.series[0].data=e,i.chartObj.setOption(i.axisOption,!0)}).catch(function(){i.loading=!1})},initAxis:function(){this.chartObj=s.a.init(document.getElementById("axismain")),this.axisOption.tooltip.formatter="{b} : {c}",this.axisOption.xAxis[0].name="",this.chartObj.setOption(this.axisOption,!0)},exportClick:function(){this.requestExportInfo(o.j,this.postParams,"product")}}},r=(e("35ri"),e("KHd+")),c=Object(r.a)(l,function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main-container"},[e("filtrate-handle-view",{staticClass:"filtrate-bar",attrs:{"show-user-select":!1,title:"产品销量排行","module-type":"ranking"},on:{load:function(i){t.loading=!0},change:t.getDataList}}),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"content-title"},[t._v("产品销量排行(按签订的审核通过的合同关联产品统计)")]),t._v(" "),e("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}],staticClass:"axis-content",attrs:{"xs-empty-text":"暂无排行"}},[e("div",{attrs:{id:"axismain"}})]),t._v(" "),e("div",{staticClass:"table-content"},[e("div",{staticClass:"handle-bar"},[e("el-button",{staticClass:"export-btn",on:{click:t.exportClick}},[t._v("导出")])],1),t._v(" "),e("el-table",{attrs:{data:t.list,height:"400",stripe:"",border:"","highlight-current-row":""}},[e("el-table-column",{attrs:{align:"center","header-align":"center","show-overflow-tooltip":"",label:"公司总排名"},scopedSlots:t._u([{key:"default",fn:function(i){return[t._v("\n "+t._s(i.$index+1)+"\n ")]}}])}),t._v(" "),t._l(t.fieldList,function(t,i){return e("el-table-column",{key:i,attrs:{prop:t.field,label:t.name,align:"center","header-align":"center","show-overflow-tooltip":""}})})],2)],1)])],1)},[],!1,null,"36a471c6",null);c.options.__file="RankingProductStatistics.vue";i.default=c.exports},"35ri":function(t,i,e){"use strict";var a=e("u+Ze");e.n(a).a},"u+Ze":function(t,i,e){}}]);
|