detection-user/unpackage/dist/build/mp-weixin/pages/detection/statistics.js
2024-09-18 18:50:21 +08:00

1 line
6.1 KiB
JavaScript

(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("官方格式",JSON.parse(JSON.stringify(a))),t.chartData=JSON.parse(JSON.stringify(a));case 11:case"end":return e.stop()}}),e)})))()},getServerData1:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={type:t.value},e.next=3,(0,s.default)({url:"/appInspection/order/statisticsZXT",method:"get",params:n});case 3:a=e.sent,i=a.data,t.chartData1=JSON.parse(JSON.stringify(i));case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o}).call(this,n("df3c")["default"])},"52dc":function(t,e,n){"use strict";var a=n("6e83"),r=n.n(a);r.a},"6a28":function(t,e,n){"use strict";n.r(e);var a=n("05a3"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},"6e83":function(t,e,n){},"8cca":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("c55e");a(n("3240"));var r=a(n("f8f7"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},f7b1:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"ee17"))},qiunDataCharts:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(n.bind(null,"27e2"))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,"0767"))}},r=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.xling=!0})},i=[]},f8f7:function(t,e,n){"use strict";n.r(e);var a=n("f7b1"),r=n("6a28");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("52dc");var s=n("828b"),o=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"e5d15b86",null,!1,a["a"],void 0);e["default"]=o.exports}},[["8cca","common/runtime","common/vendor"]]]);