function handleFileUploadSuccess(e,t,n,i){var o=[];i.forEach(function(e){o.push(e.id||e.response.id)}),e.entity[t]=o.join(",")}var imageSuffix=["jpg","bmp","png","gif","jpeg","icon"];function getFileListFromServer(t,n,e){axiosRequest(commonConfig.sysBackendContext+"/sys/attachment/findByIds","初始化附件列表","GET",{ids:e}).then(function(e){e.forEach(function(t){-1!==imageSuffix.indexOf(t.ext.toLowerCase())&&downloadFile(t.id,function(e){getImageBase64(t.ext,e,function(e){t.url=e})})}),t[n+"FileList"]=e})}function getFileBase64(e,t){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.readAsDataURL(e)}function getImageBase64(n,e,i){getFileBase64(e,function(e){var t=e.split(",")[1];i("data:image/"+n+";base64,"+t)})}function downloadFile(e,t){axiosRequest(commonConfig.sysBackendContext+"/sys/attachment/download","下载文件","GET",{id:e},{responseType:"blob"}).then(function(e){t(e)})}function handleFileChange(r,s,c,e){if("ready"===c.status){for(var t=0;t