file-management-uploaded.1700e6e0.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["file-management-uploaded"],{1695:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"cus_file-management-uploaded","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[e("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.pictLoadingImg,expression:"pictLoadingImg",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"promotion-box pb-3",attrs:{"element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"promotion-box-white mt-3"},[e("div",{attrs:{id:"tabs"}},[e("div",{},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"announcement-box personal-info-form pt-2"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"form-heading"},[e("h5",{staticClass:"ml-3"},[e("b",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Title.ProofOfIdentity",expression:"'PersonalManagement.Title.ProofOfIdentity'"}]})]),e("span",{staticClass:"hd-line"})])]),e("div",{},[e("div",{},[e("div",{staticClass:"card-img mt-3"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:t.actionID1,headers:t.AccessToken,disabled:2==t.fileListID1.status,"show-file-list":!1,"on-progress":t.handleProgress,"on-success":t.handleAvatarSuccess1,"on-error":t.handleAvatarError,"before-upload":t.beforeAvatarUploadFiles}},[e("div",{staticStyle:{width:"100%",height:"100%"}},[t.fileListID1.againPath&&"pdf"!=t.fileListID1.againPath.substr(-3,3)&&"PDF"!=t.fileListID1.againPath.substr(-3,3)||t.fileListID1.path&&"pdf"!=t.fileListID1.path.substr(-3,3)&&"PDF"!=t.fileListID1.path.substr(-3,3)?e("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:t.imgUrl+(t.fileListID1.againPath||t.fileListID1.path)}}):t._e(),t.fileListID1.againPath&&("pdf"==t.fileListID1.againPath.substr(-3,3)||"PDF"==t.fileListID1.againPath.substr(-3,3))||t.fileListID1.path&&("pdf"==t.fileListID1.path.substr(-3,3)||"PDF"==t.fileListID1.path.substr(-3,3))?e("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"110px"}},[e("i",{staticClass:"el-icon-document"})]):e("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"110px"}})])])],1)]),e("div",{staticClass:"pl-0"},[e("div",{staticClass:"left-card-img"},[e("div",{},[e("h5",{},[e("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.State",expression:"'PersonalManagement.Label.State'"}]}),t._v(": "),1==t.fileListID1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==t.fileListID1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),3==t.fileListID1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e(),4==t.fileListID1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Again",expression:"'State.Again'"}],staticClass:"state"}):t._e()])]),e("p",{staticClass:"mb-1"},[t._v(" "+t._s(t.fileListID1.uploadTime||"--")+" ")])])]),e("div",{},[e("div",{staticClass:"card-img mt-3"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:t.actionID2,headers:t.AccessToken,disabled:2==t.fileListID2.status,"show-file-list":!1,"on-progress":t.handleProgress,"on-success":t.handleAvatarSuccess2,"on-error":t.handleAvatarError,"before-upload":t.beforeAvatarUpload}},[e("div",{staticStyle:{width:"100%",height:"100%"}},[t.fileListID2.againPath&&"pdf"!=t.fileListID2.againPath.substr(-3,3)&&"PDF"!=t.fileListID2.againPath.substr(-3,3)||t.fileListID2.path&&"pdf"!=t.fileListID2.path.substr(-3,3)&&"PDF"!=t.fileListID2.path.substr(-3,3)?e("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:t.imgUrl+(t.fileListID2.againPath||t.fileListID2.path)}}):t._e(),t.fileListID2.againPath&&("pdf"==t.fileListID2.againPath.substr(-3,3)||"PDF"==t.fileListID2.againPath.substr(-3,3))||t.fileListID2.path&&("pdf"==t.fileListID2.path.substr(-3,3)||"PDF"==t.fileListID2.path.substr(-3,3))?e("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"110px"}},[e("i",{staticClass:"el-icon-document"})]):e("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"110px"}})])])],1)]),e("div",{staticClass:"pl-0"},[e("div",{staticClass:"left-card-img"},[e("div",{},[e("h5",{},[e("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.State",expression:"'PersonalManagement.Label.State'"}]}),t._v(": "),1==t.fileListID2.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==t.fileListID2.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),3==t.fileListID2.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e(),4==t.fileListID2.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Again",expression:"'State.Again'"}],staticClass:"state"}):t._e()])]),e("p",{staticClass:"mb-1"},[t._v(" "+t._s(t.fileListID2.uploadTime||"--")+" ")])])])])])])])])])]),e("div",{staticClass:"promotion-box-white mt-3"},[e("div",{attrs:{id:"tabs"}},[e("div",{},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"announcement-box personal-info-form pt-2"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"form-heading"},[e("h5",{staticClass:"ml-3"},[e("b",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Title.ProofOfAddress",expression:"'PersonalManagement.Title.ProofOfAddress'"}]})]),e("span",{staticClass:"hd-line"})])]),e("div",{},[e("div",{},[e("div",{staticClass:"card-img mt-3"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:t.actionAdd1,headers:t.AccessToken,disabled:2==t.fileListAdd1.status,"show-file-list":!1,"on-progress":t.handleProgress,"on-success":t.handleAvatarSuccess3,"on-error":t.handleAvatarError,"before-upload":t.beforeAvatarUpload}},[e("div",{staticStyle:{width:"100%",height:"100%"}},[t.fileListAdd1.againPath&&"pdf"!=t.fileListAdd1.againPath.substr(-3,3)&&"PDF"!=t.fileListAdd1.againPath.substr(-3,3)||t.fileListAdd1.path&&"pdf"!=t.fileListAdd1.path.substr(-3,3)&&"PDF"!=t.fileListAdd1.path.substr(-3,3)?e("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:t.imgUrl+(t.fileListAdd1.againPath||t.fileListAdd1.path)}}):t._e(),t.fileListAdd1.againPath&&("pdf"==t.fileListAdd1.againPath.substr(-3,3)||"PDF"==t.fileListAdd1.againPath.substr(-3,3))||t.fileListAdd1.path&&("pdf"==t.fileListAdd1.path.substr(-3,3)||"PDF"==t.fileListAdd1.path.substr(-3,3))?e("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"110px"}},[e("i",{staticClass:"el-icon-document"})]):e("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"110px"}})])])],1)]),e("div",{staticClass:"pl-0"},[e("div",{staticClass:"left-card-img"},[e("div",{},[e("h5",{},[e("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.State",expression:"'PersonalManagement.Label.State'"}]}),t._v(": "),1==t.fileListAdd1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==t.fileListAdd1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),3==t.fileListAdd1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e(),4==t.fileListAdd1.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Again",expression:"'State.Again'"}],staticClass:"state"}):t._e()])]),e("p",{staticClass:"mb-1"},[t._v(" "+t._s(t.fileListAdd1.uploadTime||"--")+" ")])])])])])])])])])]),e("div",{staticClass:"promotion-box-white mt-3"},[e("div",{attrs:{id:"tabs"}},[e("div",{},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"announcement-box personal-info-form pt-2"},[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"form-heading"},[e("h5",{staticClass:"ml-3"},[e("b",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Title.AttachedFile",expression:"'PersonalManagement.Title.AttachedFile'"}]})]),e("span",{staticClass:"hd-line"})])]),e("div",{},[e("div",{},[e("div",{staticClass:"card-img mt-3"},[e("el-upload",{staticClass:"avatar-uploaderOther fileOther",attrs:{action:t.actionOtherAdd,headers:t.AccessToken,"show-file-list":!1,"on-progress":t.handleProgress,"on-success":t.handleAvatarSuccessOther,"on-error":t.handleAvatarError,"before-upload":t.beforeAvatarUpload}},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Upload",expression:"'Btn.Upload'"}],attrs:{size:"",type:"primary"}})],1)],1)])]),e("div",{staticClass:"pl-0"},[e("div",{staticClass:"left-card-img"},t._l(t.fileListOthers,(function(s,a){return e("div",{key:a,attrs:{id:"files"}},[e("el-upload",{staticClass:"avatar-uploaderOther fileOthers",attrs:{action:t.Config.Host80+"/custom/file/upload/10/"+s.id,headers:t.AccessToken,disabled:2==s.status,"show-file-list":!1,"on-progress":t.handleProgress,"on-success":t.handleAvatarSuccessOther,"on-error":t.handleAvatarError,"before-upload":t.beforeAvatarUpload}},[e("div",{staticClass:"file",staticStyle:{width:"100%",height:"100%"}},[s.againPath&&"pdf"!=s.againPath.substr(-3,3)&&"PDF"!=s.againPath.substr(-3,3)||s.path&&"pdf"!=s.path.substr(-3,3)&&"PDF"!=s.path.substr(-3,3)?e("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:t.imgUrl+(s.againPath||s.path)}}):e("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"60px"}},[e("i",{staticClass:"el-icon-document"})])])]),e("div",{staticStyle:{"margin-top":"7px"}},[e("h5",{},[e("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.State",expression:"'PersonalManagement.Label.State'"}]}),t._v(": "),1==s.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==s.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),3==s.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e(),4==s.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Again",expression:"'State.Again'"}],staticClass:"state"}):t._e()]),e("p",{staticClass:"mb-1"},[t._v(" "+t._s(s.uploadTime||"--")+" ")])]),e("div",{staticClass:"options"},[e("el-button",{attrs:{size:"small",type:"",disabled:2==s.status}},[e("a",{directives:[{name:"t",rawName:"v-t",value:"Btn.item12",expression:"'Btn.item12'"}],attrs:{href:t.imgUrl+(s.againPath||s.path),target:"_blank"}})]),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}],attrs:{size:"small",type:"",disabled:2==s.status},on:{click:function(e){return t.fileOtherDelete(s.id)}}})],1)],1)})),0)])])])])])])])])])])])])},i=[],n=s("c7eb"),l=s("1da1"),r=(s("caad"),s("14d9"),s("e9f5"),s("7d54"),s("b64b"),s("d3b7"),s("2532"),s("159b"),s("9631")),o=s("1dff"),d=s("f121"),c=s.n(d),p=c.a.Code,u={name:"cus_file-management-uploaded",components:{},data:function(){return{pictLoadingImg:!1,flag:!1,reasons:{},form:{},pictLoading:!1,fileListID1:{againPath:"",id:null,path:"",status:null,type:null},fileListID2:{againPath:"",id:null,path:"",status:null,type:null},fileListAdd1:{againPath:"",id:null,path:"",status:null,type:null},fileListAdd2:{againPath:"",id:null,path:"",status:null,type:null},fileListOthers:[],fileListOther:{againPath:"",id:null,path:"",status:null,type:null},actionID1:"",actionID2:"",actionAdd1:"",actionAdd2:"",actionOtherAdd:"",actionOther:"",imageUrl1:"",imageUrl2:"",imageUrl3:"",imageUrl4:"",imageUrl5:"",imgUrl:c.a.Host05,mobileFiles:""}},computed:{AccessToken:function(){return{"Access-Token":this.Session.Get("access_token")}}},methods:{getCustomFileList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var s,a,i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.pictLoading=!0,e.next=3,o["a"].CustomFileList();case 3:s=e.sent,s.code==p.StatusOK?(a=t,i=s.data,t.fileListOthers=[],i.forEach((function(t){1==t.type?a.fileListID1=t:2==t.type?a.fileListID2=t:3==t.type?a.fileListAdd1=t:4==t.type?a.fileListAdd2=t:10==t.type&&a.fileListOthers.push(t)})),t.actionType()):t.$pigeon.MessageError(s.msg),t.pictLoading=!1;case 6:case"end":return e.stop()}}),e)})))()},actionType:function(){this.fileListID1.id?this.actionID1=c.a.Host80+"/custom/file/upload/1/"+this.fileListID1.id:this.actionID1=c.a.Host80+"/custom/file/upload/1",this.fileListID2.id?this.actionID2=c.a.Host80+"/custom/file/upload/2/"+this.fileListID2.id:this.actionID2=c.a.Host80+"/custom/file/upload/2",this.fileListAdd1.id?this.actionAdd1=c.a.Host80+"/custom/file/upload/3/"+this.fileListAdd1.id:this.actionAdd1=c.a.Host80+"/custom/file/upload/3",this.fileListAdd2.id?this.actionAdd2=c.a.Host80+"/custom/file/upload/4/"+this.fileListAdd2.id:this.actionAdd2=c.a.Host80+"/custom/file/upload/4",this.actionOtherAdd=c.a.Host80+"/custom/file/upload/10"},handleProgress:function(){this.pictLoadingImg=!0},handleAvatarError:function(t){var e=this.$i18n.t("Msg.Fail");if(JSON.parse(t.status)){var s=JSON.parse(t.status);switch(s){case 400:e=this.$i18n.t("Msg.UploadInvalidFormat");break;case 401:e=this.$i18n.t("Msg.UploadUnauthorized");break;case 403:e=this.$i18n.t("Msg.UploadForbidden");break;case 413:e=this.$i18n.t("Msg.UploadFileTooLarge");break;case 500:e=this.$i18n.t("Msg.UploadServerError");break;case 502:case 503:case 504:e=this.$i18n.t("Msg.UploadNetworkError");break;default:JSON.parse(t.message)&&(e=JSON.parse(t.message).message)}}else t&&t.message&&(e=t.message.includes("Network Error")||t.message.includes("timeout")?this.$i18n.t("Msg.UploadNetworkError"):t.message.includes("File too large")?this.$i18n.t("Msg.UploadFileTooLarge"):t.message);this.$pigeon.MessageError(e),this.pictLoadingImg=!1},handleAvatarSuccess1:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},handleAvatarSuccess2:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},handleAvatarSuccess3:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},handleAvatarSuccess4:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},handleAvatarSuccess5:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},handleAvatarSuccessOther:function(t){200==t.code?(this.$pigeon.MessageOK(t.msg),this.getCustomFileList()):this.$pigeon.MessageError(t.msg),this.pictLoadingImg=!1},beforeAvatarUploadFiles:function(t){var e=r["a"].checkFile(t.type),s=r["a"].checkSize(t.size);return e||this.$pigeon.MessageError(this.$i18n.t("Msg.JPG")),s||this.$pigeon.MessageError(this.$i18n.t("Msg.3IMG")),e&&s},beforeAvatarUpload:function(t){var e=r["a"].checkFile(t.type),s=r["a"].checkSize(t.size);return e||this.$pigeon.MessageError(this.$i18n.t("Msg.JPG")),s||this.$pigeon.MessageError(this.$i18n.t("Msg.3IMG")),e&&s},fileOtherDelete:function(){var t=Object(l["a"])(Object(n["a"])().mark((function t(e){var s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(l["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].customFileDelete({ids:[e]});case 2:a=t.sent,a.code==p.StatusOK?(s.$pigeon.MessageOK(s.$i18n.t("Msg.DeleteSuccess")),s.getCustomFileList()):s.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)}))),(function(){}));case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},mounted:function(){this.getCustomFileList()}},h=u,g=(s("9a97"),s("3d04"),s("2877")),f=Object(g["a"])(h,a,i,!1,null,"0f6dd635",null);e["default"]=f.exports},"3d04":function(t,e,s){"use strict";s("e645")},9631:function(t,e,s){"use strict";e["a"]={checkFile:function(t){var e=["image/jpeg","image/png","image/jpg","application/pdf"],s=-1!=e.indexOf(t.toLocaleLowerCase());return s},checkSize:function(t){var e=t/1024/1024<20;return e}}},"9a97":function(t,e,s){"use strict";s("f46b")},e645:function(t,e,s){},f46b:function(t,e,s){}}]);