(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08b94547"],{1148:function(t,a,e){"use strict";var i=e("5926"),n=e("577e"),r=e("1d80"),s=RangeError;t.exports=function(t){var a=n(r(this)),e="",o=i(t);if(o<0||o==1/0)throw s("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(a+=a))1&o&&(e+=a);return e}},"2c37":function(t,a,e){},"2f5d":function(t,a,e){"use strict";var i=e("2c37"),n=e.n(i);n.a},b680:function(t,a,e){"use strict";var i=e("23e7"),n=e("e330"),r=e("5926"),s=e("408a"),o=e("1148"),c=e("d039"),l=RangeError,u=String,d=Math.floor,v=n(o),p=n("".slice),f=n(1..toFixed),b=function(t,a,e){return 0===a?e:a%2===1?b(t,a-1,e*t):b(t*t,a/2,e)},_=function(t){var a=0,e=t;while(e>=4096)a+=12,e/=4096;while(e>=2)a+=1,e/=2;return a},h=function(t,a,e){var i=-1,n=e;while(++i<6)n+=a*t[i],t[i]=n%1e7,n=d(n/1e7)},m=function(t,a){var e=6,i=0;while(--e>=0)i+=t[e],t[e]=d(i/a),i=i%a*1e7},C=function(t){var a=6,e="";while(--a>=0)if(""!==e||0===a||0!==t[a]){var i=u(t[a]);e=""===e?i:e+v("0",7-i.length)+i}return e},g=c((function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)}))||!c((function(){f({})}));i({target:"Number",proto:!0,forced:g},{toFixed:function(t){var a,e,i,n,o=s(this),c=r(t),d=[0,0,0,0,0,0],f="",g="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return u(o);if(o<0&&(f="-",o=-o),o>1e-21)if(a=_(o*b(2,69,1))-69,e=a<0?o*b(2,-a,1):o/b(2,a,1),e*=4503599627370496,a=52-a,a>0){h(d,0,e),i=c;while(i>=7)h(d,1e7,0),i-=7;h(d,b(10,i,1),0),i=a-1;while(i>=23)m(d,1<<23),i-=23;m(d,1<0?(n=g.length,g=f+(n<=c?"0."+v("0",c-n)+g:p(g,0,n-c)+"."+p(g,n-c))):g=f+g,g}})},fb6f:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"container"},[e("div",{staticClass:"mainHome"},[e("div",{staticClass:"item"},[e("div",{staticClass:"top"},[e("van-icon",{staticClass:"icon",attrs:{name:"warn-o",color:"#f7980a"}}),e("span",[t._v("风险管理")])],1),e("ul",t._l(t.riskList,(function(a,i){return e("li",{key:i,staticClass:"li1"},[e("p",[t._v(t._s(t.riskNum[a.value]||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v(t._s(a.label))])])})),0)]),e("div",{staticClass:"item"},[e("div",{staticClass:"top"},[e("van-icon",{staticClass:"icon",attrs:{name:"cluster-o",color:"#3496da"}}),e("span",[t._v("巡检完成率")])],1),e("ul",[t._l(t.routingList,(function(a,i){return e("li",{key:i,staticClass:"lis"},[e("p",[t._v("未完成:"+t._s(a.data.unCheckCount||"-"))]),e("van-circle",{attrs:{size:"60","layer-color":"#ebedf0","stroke-width":"150",rate:t.rate(a.data.unCheckCount,a.data.checkCount),speed:100,text:t.text(a.data.unCheckCount,a.data.checkCount)},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"item.value"}}),e("p",[t._v(t._s(a.num)+"天 ("+t._s(a.data.checkCount||"-")+")")])],1)})),e("li")],2)]),e("div",{staticClass:"item"},[e("div",{staticClass:"top"},[e("van-icon",{staticClass:"icon",attrs:{name:"fire-o",color:"#f7980a"}}),e("span",[t._v("隐患排查")])],1),e("ul",[e("li",{staticClass:"li",staticStyle:{"border-color":"aqua"}},[e("p",[t._v(t._s(t.dangerObj.dangerTotal||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("隐患总数")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"orangered"}},[e("p",[t._v(t._s(t.dangerObj.checkPendingCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("待审核")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"#2794e9"}},[e("p",[t._v(t._s(t.dangerObj.unclaimedCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("认领中")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"greenyellow"}},[e("p",[t._v(t._s(t.dangerObj.rectificationCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("整改中")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"gray"}},[e("p",[t._v(t._s(t.dangerObj.waitForAcceptanceCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("待验收")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"#1c4990"}},[e("p",[t._v(t._s(t.dangerObj.completedCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("已验收")])]),e("li",{staticClass:"li",staticStyle:{"border-color":"grey"}},[e("p",[t._v(t._s(t.dangerObj.canceledCount||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v("已取消")])]),e("li",{staticClass:"li"},[e("p",[t._v(t._s(t.dangerObj.completeRatio||"-")+"%")]),e("p",{staticStyle:{color:"#969799"}},[t._v("整改率")])])])]),e("div",{staticClass:"item"},[e("div",{staticClass:"top"},[e("van-icon",{staticClass:"icon",attrs:{name:"medal-o",color:"#1c4990"}}),e("span",[t._v("培训计划")])],1),e("ul",t._l(t.trainList,(function(a,i){return e("li",{key:i,staticClass:"li"},[e("p",[t._v(t._s(t.trainObj[a]||"-"))]),e("p",{staticStyle:{color:"#969799"}},[t._v(t._s(a))])])})),0)])])])},n=[],r=(e("4160"),e("b680"),e("b64b"),e("159b"),e("b775"));function s(t){return Object(r["a"])({url:"/app/doubleDefense/homepage/riskStatistics",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/app/doubleDefense/homepage/checkTaskInventoryStatistics",method:"get",params:t})}function c(t){return Object(r["a"])({url:"app/danger/homepage/dangerStatistics",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/app/train/homepage/trainStatistics",method:"get",params:t})}var u={name:"VueSkIndex",computed:{text:function(){return function(t,a){return t||a?((a-t)/a*100).toFixed(0)+"%":"0%"}},rate:function(){return function(t,a){return t||a?(a-t)/a*100:0}}},data:function(){return{riskList:[{value:"checkTask",label:"排查要求"},{value:"hazardCount",label:"管控对象"},{value:"riskEventCount",label:"风险事件"},{value:"riskMeasureCount",label:"管控措施"},{value:"riskUnitCount",label:"分析单元"}],trainObj:{},trainList:[],dangerObj:{},riskNum:{},currentRate:0,routingList:[{num:1,value:10,data:{}},{num:7,value:100,data:{}},{num:30,value:23,data:{}},{num:365,value:10,data:{}}]}},mounted:function(){var t=this;l().then((function(a){var e=a.data;200===e.code&&(t.trainList=Object.keys(e.data),t.trainObj=e.data)})),s().then((function(a){var e=a.data;200===e.code&&(console.log(e.data),t.riskNum=e.data)})),this.routingList.forEach((function(t){o({lastDays:t.num}).then((function(a){var e=a.data;200===e.code&&(t.data=e.data)}))})),c().then((function(a){var e=a.data;200===e.code&&(t.dangerObj=e.data)}))},methods:{}},d=u,v=(e("2f5d"),e("2877")),p=Object(v["a"])(d,i,n,!1,null,"dca41834",null);a["default"]=p.exports}}]);