You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.4 KiB
1 lines
3.4 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-84d5659c"],{"1cb2":function(t,e,i){"use strict";var n=i("cb97");i.n(n).a},"59c8":function(t,e,i){},"5dfc":function(t,e,i){"use strict";var n=i("59c8");i.n(n).a},6209:function(t,e,i){},"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")),c=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=c.exports},9012:function(t,e,i){"use strict";i.r(e);i("b0c0");var n=i("5530"),s=i("2f62"),c=i("7eb6"),r={name:"ImageAdmin",data:function(){return{dataImgs:[],currentIndex:-1,imgItem:""}},created:function(){this.reportId=this.$route.query.id},methods:Object(n.a)(Object(n.a)({},Object(s.b)({getImageList:"AICheck/getImageList",getImageList1:"AICheck/getImageList1",getUnMatchImgByReportId:"AICheck/getUnMatchImgByReportId"})),{},{initImgList:function(t,e){var i=this;e(t).then((function(t){i.dataImgs=t.result,i.dataImgs.length>0&&(i.imgItem=i.dataImgs[0])})).catch((function(t){i.$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":c.a},computed:{imgLength:function(){return this.dataImgs.length-1}},beforeRouteEnter:function(t,e,i){"FeeLine"==e.name?i((function(t){t.initImgList(t.reportId,t.getImageList1)})):"ImageElectonic"==e.name?i((function(t){t.initImgList(t.reportId,t.getUnMatchImgByReportId)})):i((function(t){t.initImgList(t.reportId,t.getImageList)}))}},a=(i("e112"),i("1cb2"),i("2877")),o=Object(a.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,"07d244bc",null);e.default=o.exports},cb97:function(t,e,i){},e112:function(t,e,i){"use strict";var n=i("6209");i.n(n).a}}]);
|