|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6fe287e0"],{"06b3":function(e,t,a){e.exports=a.p+"static/img/2dd7a2d09fa94bf8b5c52e5318868b4df.69c8d31a.jpg"},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,s){return e/=s/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=r(),o=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var r=Math.easeInOutQuad(c,n,o,t);i(r),c<t?s(e):a&&"function"===typeof a&&a()};u()}},"0e6d":function(e,t,a){},"12f4":function(e,t,a){e.exports=a.p+"static/img/17e420c250804efe904a09a33796d5a10.29081190.jpg"},"1b90":function(e,t,a){e.exports=a.p+"static/img/20180414165936.d159905f.jpg"},"1dfa":function(e,t,a){},2120:function(e,t,a){e.exports=a.p+"static/img/gaOngJwsRYRaVAuXXcmB.473a3c87.png"},"21a2":function(e,t,a){e.exports=a.p+"static/img/20180414165914.bbc74627.jpg"},"242a":function(e,t,a){e.exports=a.p+"static/img/19034103295190235.32713499.jpg"},"24a9":function(e,t,a){e.exports=a.p+"static/img/cnrhVkzwxjPwAaCfPbdc.1b71a9dc.png"},"24fd":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-upload",{ref:e.uploadRef,staticClass:"avatar-uploader",class:{limit:e.showUploadBtn},attrs:{accept:e.accept,action:e.action,"auto-upload":e.autoUpload,"before-upload":e.beforeUpload,data:e.fileOtherData,"file-list":e.imgFileList,headers:e.headers,limit:e.limit,multiple:e.multiple,"on-change":e.handleChange,"on-error":e.handleError,"on-exceed":e.handleExceed,"on-remove":e.handleRemove,"show-file-list":e.showFileList,"list-type":"picture-card"}},[e.imageUrl?a("img",{staticClass:"avatar",attrs:{src:e.imageUrl}}):a("i",{staticClass:"el-icon-plus"})]),a("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:"",width:"100%"}})])],1)},i=[],r=(a("99af"),a("4160"),a("d81d"),a("a434"),a("b0c0"),a("a9e3"),a("b680"),a("159b"),a("96cf"),a("1da1")),n=a("5657"),o=a("c2cf"),l=(a("27ae"),{props:{uploadRef:{type:String,default:"file1"},multiple:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},limit:{type:Number,default:null},accept:{type:String,default:"image/jpeg, image/gif, image/png, image/bmp"},acceptSize:{type:Number,default:null},fileOtherData:{type:Object,default:function(){return{bizId:"",bizType:"",isSingle:!1}}}},data:function(){return{imageUrl:"",dialogImageUrl:"",dialogVisible:!1,disabled:!0,imgFileList:[],removeFileAry:[],addFileAry:[],isUploadError:!1,fileLength:0,action:"".concat("https://pos.admin.api.lotus-wallet.com","/attachment/upload")}},computed:{showUploadBtn:function(){return this.showFileList&&this.addFileAry.length+this.imgFileList.length===this.limit},headers:function(){return{token:"Bearer "+n["a"].get("TOKEN",""),tenant:n["a"].get("TENANT","")||"",Authorization:"Basic ".concat("".concat("ceres_admin_web",":").concat("ceres_admin_web"))}}},methods:{init:function(e){var t=e.bizId,a=e.bizType,s=e.imageUrl,i=e.isSingle,r=e.isDetail,n=this;n.fileOtherData.bizId=t,n.fileOtherData.bizType=a,n.fileOtherData.isSingle=i||!1,n.imgFileList.length=0,n.removeFileAry=[],n.addFileAry=[],n.imageUrl=s,n.isUploadError=!1,r&&n.getAttachment()},beforeUpload:function(){var e=this;e.$store.state.hasLoading=!0},handleChange:function(e,t){var a=this;if(e.response)if(e.response.isSuccess){var s=e.response.data;a.fileOtherData.bizId=s.bizId,a.imageUrl=s.url,a.$emit("setId",s.bizId,s.url)}else a.$message.error(e.response.msg),a.isUploadError=!1;else if(a.acceptSize){var i=e.size>a.acceptSize;i?(setTimeout((function(){a.$message.error("<EFBFBD><EFBFBD>
|