(("undefined"!==typeof self?self:this)["webpackJsonprisk_area_management"]=("undefined"!==typeof self?self:this)["webpackJsonprisk_area_management"]||[]).push([[11],{"20da":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,"[data-v-42862ad6] .el-form-item__content .el-input,[data-v-42862ad6] .el-form-item__content .el-select{max-width:none}",""])},"7c0f":function(t,e,n){"use strict";n("c05c")},c05c:function(t,e,n){var a=n("20da");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("499e").default;i("543eef0a",a,!0,{sourceMap:!1,shadowMode:!1})},e5a4:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"h-full w-full bg-$contentBgColor py-5px px-10px"},[n("div",{staticClass:"h-40px py-3px flex items-center justify-start",on:{click:function(e){return t.$emit("close")}}},[n("el-page-header",{attrs:{content:"预览图片"}})],1),n("el-row",{staticClass:"h-[calc(100%-40px)]"},[n("el-col",{staticClass:"h-full flex justify-center items-center",attrs:{span:1}},[n("el-button",{staticClass:"w-26px h-39px p-0",attrs:{disabled:0===t.skipCount||t._.isEmpty(t.currentDataInfo),size:"mini",type:"primary",icon:"iconfont icon-line-left"},on:{click:function(e){return t.togglePicture("last")}}})],1),n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.pictureLoading,expression:"pictureLoading"}],staticClass:"h-full flex justify-center items-center",attrs:{span:22}},[n("iframe",{ref:"htFrame",staticClass:"h-full w-full",attrs:{src:"/static/ht/htView.html"},on:{load:function(e){return t.iframeOnload()}}})]),n("el-col",{staticClass:"h-full flex justify-center items-center",attrs:{span:1}},[n("el-button",{staticClass:"w-26px h-39px p-0",attrs:{disabled:t.skipCount===t.totalCount-1||t._.isEmpty(t.currentDataInfo),size:"mini",type:"primary",icon:"iconfont icon-line-right"},on:{click:function(e){return t.togglePicture("next")}}})],1)],1)],1)},i=[],r=n("c7eb"),s=n("3835"),c=n("1da1"),o=(n("a9e3"),n("aa07")),u=new o["AreaChartApi"],l={name:"picture-view",props:{pageConfig:{type:Object,default:function(){return{}}},initDataIndex:{type:Number,default:0}},computed:{skipCount:function(){return(this.pageConfig.SkipCount-1)*this.pageConfig.MaxResultCount+this.currentDataIndex}},data:function(){return{currentDataIndex:0,totalCount:0,pictureLoading:!0,currentDataInfo:{}}},methods:{getListData:function(){var t=this;return Object(c["a"])(Object(r["a"])().mark((function e(){var n,a,i,c,o,l;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.pictureLoading=!0,n={maxResultCount:1,skipCount:t.skipCount},e.next=4,u.getList(n);case 4:if(a=e.sent,i=Object(s["a"])(a,2),c=i[0],o=i[1],c){e.next=16;break}if(t.currentDataInfo=_.head(o.items),t.totalCount=o.totalCount,t.pictureLoading=!1,!_.isEmpty(t.currentDataInfo)){e.next=14;break}return e.abrupt("return");case 14:l=t.$refs.htFrame.contentWindow,l.init(_.get(t.currentDataInfo,"fileUrl"));case 16:case"end":return e.stop()}}),e)})))()},togglePicture:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"last";this.currentDataIndex+="last"===t?-1:1,this.getListData()},iframeOnload:function(){this.getListData()}},created:function(){this.currentDataIndex=this.initDataIndex}},f=l,p=(n("7c0f"),n("2877")),d=Object(p["a"])(f,a,i,!1,null,"42862ad6",null);e["default"]=d.exports}}]);