detection-user/unpackage/dist/build/mp-weixin/pages/detection/statistics.js

1 line
6.1 KiB
JavaScript
Raw Permalink Normal View History

2024-09-18 18:50:21 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/detection/statistics"],{"05a3":function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("7eb4")),i=a(n("ee10")),s=(a(n("f76e")),a(n("1fab"))),o={data:function(){return{name:"全部机构",partnerId:"",searchValue:"",baseUrl:this.$baseUrl,xling:!1,earchValue:"",countdown:3,qhindex:0,countNoPass:0,countPass:0,sum:0,qubu:[],phb:[],zilist:[{text:"周",value:"week"},{text:"月",value:"month"},{text:"年",value:"year"}],carlist:[],value:"week",chartData:{},opts:{rotate:!1,rotateLock:!1,color:["#5266FF","#FF787E"],padding:[5,5,5,5],dataLabel:!0,enableScroll:!1,legend:{show:!0,position:"right",lineHeight:25},title:{name:"通过率",fontSize:10,color:"#666666"},subtitle:{name:"70%",fontSize:10,color:"#7cb5ec"},extra:{ring:{ringWidth:10,activeOpacity:.5,activeRadius:20,offsetAngle:0,labelWidth:15,border:!1,borderWidth:3,borderColor:"#FFFFFF"}}},chartData1:{},dopts:{color:["#0D2E8D","#3CBC6F","#FF571A","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[15,15,0,5],touchMoveLimit:24,enableScroll:!0,legend:{},xAxis:{disableGrid:!0,scrollShow:!0,itemCount:4},yAxis:{data:[{min:0}]},extra:{column:{type:"group",width:15,activeBgColor:"#000000",activeBgOpacity:.08}}}}},onLoad:function(){this.getServerData(),this.getServerData1()},onShow:function(){this.getstatisticsMid(),this.getgetPartnerList(),this.getstatisticsZXT(),this.getstatisticsOrder()},methods:{getback:function(){t.navigateBack()},xinxuanze:function(t,e){this.name=e,this.partnerId=t,this.xling=!1,this.getServerData1()},getstatisticsTop:function(){return(0,i.default)(r.default.mark((function t(){var e;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.default)({url:"/appInspection/order/statisticsTop",method:"get"});case 2:e=t.sent,console.log(e);case 4:case"end":return t.stop()}}),t)})))()},getstatisticsMid:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.default)({url:"/appInspection/order/statisticsMid",method:"get"});case 2:n=e.sent,console.log(n),t.carlist=n.data;case 5:case"end":return e.stop()}}),e)})))()},gbindex:function(t,e){this.qhindex=t,this.value=e,this.getServerData1()},getgetPartnerList:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={partnerName:t.searchValue},e.next=3,(0,s.default)({url:"/appInspection/order/getPartnerList",method:"get",params:n});case 3:a=e.sent,console.log("全部机构列表",a),t.qubu=a.data;case 6:case"end":return e.stop()}}),e)})))()},getstatisticsZXT:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={partnerId:t.partnerId,type:t.value},e.next=3,(0,s.default)({url:"/appInspection/order/statisticsZXT",method:"get",params:n});case 3:a=e.sent,console.log("获取柱形图",a);case 5:case"end":return e.stop()}}),e)})))()},getstatisticsOrder:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.default)({url:"/appInspection/order/statisticsOrder",method:"get"});case 2:n=e.sent,console.log("获取排行榜",n),t.phb=n.data;case 5:case"end":return e.stop()}}),e)})))()},closexl:function(t){this.xling=!1,console.log("n")},openxl:function(t){console.log("y")},getServerData:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.default)({url:"/appInspection/order/statisticsTop",method:"get"});case 2:n=e.sent,t.countNoPass=n.data.countNoPass,t.countPass=n.data.countPass,t.sum=n.data.sum,console.log(n),t.opts.subtitle.name=n.data.list[0].value,a={series:[{data:n.data.list}]},console.log("