(("undefined"!==typeof self?self:this)["webpackJsonpdouble_prevention_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpdouble_prevention_management_sm"]||[]).push([[42],{"4ba6":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-card",{staticClass:"h-full relative"},[e("div",{staticClass:"h-full flex flex-col"},[e("el-row",{staticClass:"h-[calc(100%-40px)]"},[e("el-col",{staticClass:"h-full flex justify-center items-center",attrs:{span:1}},[e("el-button",{staticClass:"w-26px h-39px p-0",attrs:{disabled:0===t.currentDataIndex||t._.isEmpty(t.currentDataInfo),size:"mini",type:"primary",icon:"iconfont icon-line-left"},on:{click:function(a){return t.togglePicture("last")}}})],1),e("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.pictureLoading&&t.isHtLoading,expression:"pictureLoading && isHtLoading"}],staticClass:"h-full flex justify-center items-center flex-col",attrs:{span:22}},[e("iframe",{ref:"htFrame",staticClass:"h-0px w-full flex-auto",attrs:{src:"/static/ht/htView.html"},on:{load:t.iframeOnload}}),e("div",{staticClass:"text-center"},[t._v(t._s(t.currentDataInfo.name))])]),e("el-col",{staticClass:"h-full flex justify-center items-center",attrs:{span:1}},[e("el-button",{staticClass:"w-26px h-39px p-0",attrs:{disabled:t.currentDataIndex===t.totalCount-1||t._.isEmpty(t.currentDataInfo),size:"mini",type:"primary",icon:"iconfont icon-line-right"},on:{click:function(a){return t.togglePicture("next")}}})],1)],1),e("div",{staticClass:"flex-auto h-0 flex justify-center items-center"},t._l(t.colorList,(function(a,n){return e("div",{key:n,staticClass:"flex mx-20px"},[e("div",{staticClass:"mr-8px h-20px w-40px",class:a.color}),e("span",[t._v(t._s(a.name))])])})),0)],1)])},o=[],r=e("c7eb"),i=e("3835"),s=e("1da1"),c=e("aa07"),l=new c["AreaChartApi"],u={name:"risk-four-color-chart",components:{},data:function(){return{activeName:"equipmentList",dataList:[],colorList:[{name:"重大风险",color:"customebg-color-danger"},{name:"较大风险",color:"customebg-color-alarm"},{name:"一般风险",color:"customebg-color-risk"},{name:"低风险",color:"customebg-color-primary"}],currentDataInfo:{},isHtLoading:!0,currentDataIndex:0,totalCount:0,pictureLoading:!1}},methods:{getListData:function(){var t=this;return Object(s["a"])(Object(r["a"])().mark((function a(){var e,n,o,s,c;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.pictureLoading=!0,e={maxResultCount:999,skipCount:0},a.next=4,l.getList(e);case 4:n=a.sent,o=Object(i["a"])(n,2),s=o[0],c=o[1],s||(t.dataList=c.items,t.totalCount=c.totalCount,t.dataList.length&&(t.currentDataInfo=t.dataList[t.currentDataIndex],t.iframeOnload()));case 9:case"end":return a.stop()}}),a)})))()},iframeOnload:function(t,a){if(!_.isEmpty(this.currentDataInfo)){this.isHtLoading=!1;var e=this.$refs.htFrame.contentWindow;e&&e.init&&e.init(_.get(this.currentDataInfo,"fileUrl"))}},togglePicture:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"last";this.currentDataIndex+="last"===t?-1:1,this.currentDataInfo=this.dataList[this.currentDataIndex],this.iframeOnload()}},mounted:function(){this.getListData()}},f=u,d=(e("e54c"),e("2877")),m=Object(d["a"])(f,n,o,!1,null,"39b2c32a",null);a["default"]=m.exports},b3f3:function(t,a,e){a=t.exports=e("2350")(!1),a.push([t.i,"[data-v-39b2c32a] .el-card__body{height:100%}[data-v-39b2c32a] .el-carousel__indicators--horizontal{top:0}.customebg-color-danger[data-v-39b2c32a]{background-color:#ff3a30}.customebg-color-alarm[data-v-39b2c32a]{background-color:#ff9502}.customebg-color-risk[data-v-39b2c32a]{background-color:#f8b200}.customebg-color-primary[data-v-39b2c32a]{background-color:#0082f7}",""])},e54c:function(t,a,e){"use strict";e("f53f")},f53f:function(t,a,e){var n=e("b3f3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("499e").default;o("73dccba6",n,!0,{sourceMap:!1,shadowMode:!1})}}]);