(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-099660ee"],{"0892":function(t,e,i){},"1b60":function(t,e,i){"use strict";var n=i("0892");i.n(n).a},"37db":function(t,e,i){"use strict";var n=i("8050");i.n(n).a},"59c8":function(t,e,i){},"5dfc":function(t,e,i){"use strict";var n=i("59c8");i.n(n).a},"7eb6":function(t,e,i){"use strict";var n={name:"img-preview",props:{imgItem:{type:Object}},created:function(){},data:function(){return{}}},s=(i("5dfc"),i("2877")),r=Object(s.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img-preview"},[e("div",{staticClass:"ticketAllocate-right d-flex flex-direction"},[e("div",{staticClass:"cursor c-fff w100 d-flex a-center j-center img-title"},[this._t("title")],2),e("div",{staticClass:"flex-1 d-flex a-center j-fe img-container"},[this._t("image")],2),e("div",{staticClass:"cursor img-tips c-fff w100 d-flex a-center j-fe p-right-2"},[this._t("date")],2),e("div",{staticClass:" img-footer mainColor cursor c-fff w100 d-flex a-center j-center downloadYU"},[this._t("footer")],2)])])}),[],!1,null,"66fde0f3",null);e.a=r.exports},8050:function(t,e,i){},"9e5d":function(t,e,i){"use strict";i.r(e);var n=i("7eb6"),s=i("1a78"),r={name:"ImageAdmin",data:function(){return{dataImgs:[],currentIndex:-1,imgItem:""}},created:function(){this.reportId=this.$route.query.reportId,this.initImgList(this.reportId)},methods:{initImgList:function(t){var e=this;Object(s.p)({reportId:t}).then((function(t){e.dataImgs=t.result,e.dataImgs.length>0&&(e.imgItem=e.dataImgs[0])})).catch((function(t){e.$message.error(t.message)}))},handlePreviewThis:function(t,e,i){this.imgItem=e,this.currentIndex=i},handlePrev:function(){if(0==this.currentIndex)return this.$message.info("已经是第一张了!");this.currentIndex--,this.imgItem=this.dataImgs[this.currentIndex]},handleNext:function(){if(this.currentIndex==this.imgLength)return this.$message.info("已经是最后一张了!");this.currentIndex++,this.imgItem=this.dataImgs[this.currentIndex]}},components:{"img-preview":n.a},computed:{imgLength:function(){return this.dataImgs.length-1}}},c=(i("37db"),i("1b60"),i("2877")),a=Object(c.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ImageAdmin"},[i("div",{staticClass:"imgList"},t._l(t.dataImgs,(function(e,n){return i("div",{key:n,staticClass:"box d-flex a-center j-center",style:{border:n==t.currentIndex?"1px solid red":""},on:{click:function(i){return t.handlePreviewThis(i,e,n)}}},[i("img",{attrs:{src:e,alt:"",srcset:""}})])})),0),i("div",{staticClass:"imgPreview"},[i("img-preview",{attrs:{imgItem:{}},scopedSlots:t._u([{key:"image",fn:function(){return[i("el-image",{attrs:{src:t.imgItem,"preview-src-list":[t.imgItem]}})]},proxy:!0}])}),i("span",{staticClass:"prev",on:{click:t.handlePrev}},[i("i",{staticClass:"iconfont icon-PrevioustrackFill"})]),i("span",{staticClass:"next",on:{click:t.handleNext}},[i("i",{staticClass:"iconfont icon-NexttrackFilled"})])],1)])}),[],!1,null,"ddb7a3fc",null);e.default=a.exports}}]);