| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CardFile"],{"083a":function(e,t,a){"use strict";var i=a("0d51"),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},"09af":function(e,t,a){},"0ac2":function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c");var i=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"card_file","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"crm_search"},[t("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[t("el-row",[t("el-col",{attrs:{span:24,md:24,lg:24}},[t("el-form-item",[t("el-select",{staticClass:"crm-border-radius-no",attrs:{clearable:"",size:"small",placeholder:e.$t("Label.Lang")},on:{change:e.toSearch},model:{value:e.search.lang,callback:function(t){e.$set(e.search,"lang",t)},expression:"search.lang"}},[t("el-option",{attrs:{label:e.$t("Web_info.cn"),value:"cn"}}),t("el-option",{attrs:{label:e.$t("Web_info.zhHant"),value:"zhHant"}}),t("el-option",{attrs:{label:e.$t("Web_info.en"),value:"en"}}),t("el-option",{attrs:{label:e.$t("Web_info.vn"),value:"vn"}}),t("el-option",{attrs:{label:e.$t("Web_info.th"),value:"th"}}),t("el-option",{attrs:{label:e.$t("Web_info.ar"),value:"ar"}}),t("el-option",{attrs:{label:e.$t("Web_info.de"),value:"de"}}),t("el-option",{attrs:{label:e.$t("Web_info.es"),value:"es"}}),t("el-option",{attrs:{label:e.$t("Web_info.id"),value:"id"}}),t("el-option",{attrs:{label:e.$t("Web_info.ms"),value:"ms"}}),t("el-option",{attrs:{label:e.$t("Web_info.ko"),value:"ko"}}),t("el-option",{attrs:{label:e.$t("Web_info.pt"),value:"pt"}}),t("el-option",{attrs:{label:e.$t("Web_info.fa"),value:"fa"}}),t("el-option",{attrs:{label:e.$t("Web_info.tr"),value:"tr"}})],1)],1),t("el-form-item",[t("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),t("el-form-item",[t("div",{staticClass:"search_action_btn"},[t("span",{staticClass:"crm-cursor",on:{click:e.toNew}},[t("i",{staticClass:"el-icon-plus"}),e.display["R-CardFile-Add"].show?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]}):e._e()]),e.display["R-CardFile-Delete"].show?t("span",{staticClass:"crm-cursor delete",class:{active:this.multipleSelection.length},on:{click:e.toDeleteBatch}},[t("i",{staticClass:"el-icon-minus"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()])])],1)],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("system_info.Label.Lang")},scopedSlots:e._u([{key:"default",fn:function(a){return["cn"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.cn",expression:"'Web_info.cn'"}]}):e._e(),"zhHant"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.zhHant",expression:"'Web_info.zhHant'"}]}):e._e(),"en"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.en",expression:"'Web_info.en'"}]}):e._e(),"vn"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.vn",expression:"'Web_info.vn'"}]}):e._e(),"th"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.th",expression:"'Web_info.th'"}]}):e._e(),"ar"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.ar",expression:"'Web_info.ar'"}]}):e._e(),"de"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.de",expression:"'Web_info.de'"}]}):e._e(),"es"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.es",expression:"'Web_info.es'"}]}):e._e(),"id"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.id",expression:"'Web_info.id'"}]}):e._e(),"ms"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.ms",expression:"'Web_info.ms'"}]}):e._e(),"ko"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.ko",expression:"'Web_info.ko'"}]}):e._e(),"pt"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.pt",expression:"'Web_info.pt'"}]}):e._e(),"fa"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.fa",expression:"'Web_info.fa'"}]}):e._e(),"tr"==a.row.lang?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.tr",expression:"'Web_info.tr'"}]}):e._e()]}}])}),t("el-table-column",{attrs:{prop:"addTime",align:"left",label:e.$i18n.t("Label.Date")}}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.display["R-CardFile-Update"].show?t("el-dropdown-item",{attrs:{command:{type:"editor",row:a.row}}},[t("i",{staticClass:"iconfont iconbianji3"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["R-CardFile-Delete"].show?t("el-dropdown-item",{attrs:{command:{type:"delete",id:a.row.id}}},[t("i",{staticClass:"iconfont iconshanchu"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),e.dialogCheck?t("el-dialog",{attrs:{rules:e.rules,title:e.isAdd?e.$t("R-CardFile-Add"):e.$t("R-CardFile-Update"),visible:e.dialogCheck,width:"900px"},on:{"update:visible":function(t){e.dialogCheck=t}}},[t("el-form",{ref:"form",staticClass:"business-edit-form",attrs:{model:e.form,rules:e.dialogRules,"label-position":"right","label-width":"120px"}},[t("el-form-item",{attrs:{label:e.$t("Label.Lang")+":",prop:"lang"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!e.isAdd,placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.lang,callback:function(t){e.$set(e.form,"lang",t)},expression:"form.lang"}},[t("el-option",{attrs:{label:e.$t("Web_info.cn"),value:"cn"}}),t("el-option",{attrs:{label:e.$t("Web_info.zhHant"),value:"zhHant"}}),t("el-option",{attrs:{label:e.$t("Web_info.en"),value:"en"}}),t("el-option",{attrs:{label:e.$t("Web_info.vn"),value:"vn"}}),t("el-option",{attrs:{label:e.$t("Web_info.th"),value:"th"}}),t("el-option",{attrs:{label:e.$t("Web_info.ar"),value:"ar"}}),t("el-option",{attrs:{label:e.$t("Web_info.de"),value:"de"}}),t("el-option",{attrs:{label:e.$t("Web_info.es"),value:"es"}}),t("el-option",{attrs:{label:e.$t("Web_info.id"),value:"id"}}),t("el-option",{attrs:{label:e.$t("Web_info.ms"),value:"ms"}}),t("el-option",{attrs:{label:e.$t("Web_info.ko"),value:"ko"}}),t("el-option",{attrs:{label:e.$t("Web_info.pt"),value:"pt"}}),t("el-option",{attrs:{label:e.$t("Web_info.fa"),value:"fa"}}),t("el-option",{attrs:{label:e.$t("Web_info.tr"),value:"tr"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("card.CardFile.p1")+":",prop:"setpList"}},[t("div",{staticClass:"steps-wrap"},e._l(e.form.setpList,(function(a,i){return t("div",{key:"step-"+i,staticClass:"step-item"},[t("div",{staticClass:"step-header"},[t("span",[e._v(e._s(e.$t("card.CardFile.p2"))+" "+e._s(a.setp))]),t("div",{staticClass:"step-actions"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini",title:"Add step after"},on:{click:function(t){return e.addStep(i)}}}),e.form.setpList.length>1?t("el-button",{attrs:{type:"danger",icon:"el-icon-minus",size:"mini",title:"Remove"},on:{click:function(t){return e.removeStep(i)}}}):e._e()],1)]),t("el-row",{staticClass:"step-body",attrs:{gutter:12}},[t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:10},placeholder:e.$t("card.CardFile.p3")},model:{value:a.d,callback:function(t){e.$set(a,"d",t)},expression:"step.d"}})],1),t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[t("el-select",{attrs:{placeholder:"Type"},model:{value:a.type,callback:function(t){e.$set(a,"type",t)},expression:"step.type"}},[t("el-option",{attrs:{label:e.$t("news_add_field.Label.Upload"),value:"1"}}),t("el-option",{attrs:{label:e.$t("news_add_field.Label.Url"),value:"2"}})],1)],1),t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},["1"==a.type?t("div",[t("el-upload",{staticClass:"mini-uploader",attrs:{"http-request":function(t){return e.handleFileUpload(t,i)},"on-success":e.handleSuccessStep,accept:"image/png, image/jpeg, .jpg, .jpeg, .png",action:"","show-file-list":!1,drag:""}},[a.img?t("img",{staticStyle:{width:"100%","max-height":"80px","object-fit":"cover"},attrs:{src:e.imgUrl+a.img}}):t("div",{staticClass:"upload-placeholder"},[e._v(e._s(e.$t("card.CardFile.p5")))])])],1):t("div",[t("el-input",{attrs:{placeholder:e.$t("card.CardFile.p5")},model:{value:a.img,callback:function(t){e.$set(a,"img",t)},expression:"step.img"}})],1)])],1)],1)})),0)]),t("el-form-item",{attrs:{label:e.$t("card.CardFile.p6")+":",prop:"videoList"}},[t("div",{staticClass:"videos-wrap"},e._l(e.form.videoList,(function(a,i){return t("div",{key:"video-"+i,staticClass:"video-item"},[t("div",{staticClass:"video-header"},[t("span",[e._v(e._s(e.$t("card.CardFile.p7"))+" "+e._s(i+1))]),t("div",{staticClass:"video-actions"})]),t("el-row",{staticClass:"video-body",attrs:{gutter:12}},[t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[t("el-select",{attrs:{placeholder:"Type"},model:{value:a.type,callback:function(t){e.$set(a,"type",t)},expression:"vitem.type"}},[t("el-option",{attrs:{label:e.$t("news_add_field.Label.Upload"),value:"1"}}),t("el-option",{attrs:{label:e.$t("news_add_field.Label.Url"),value:"2"}})],1)],1),t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},["1"==a.type?t("div",[t("el-upload",{staticClass:"mini-uploader",attrs:{"http-request":function(t){return e.handleVideoUpload(t,i)},action:"","show-file-list":!1,"before-upload":e.beforeAvatarUpload,"on-success":e.handleSuccessVideo,drag:""}},[a.fileUrl?t("video",{staticStyle:{width:"100%","max-height":"120px","object-fit":"cover"},attrs:{src:e.imgUrl+a.fileUrl,controls:""}}):t("div",{staticClass:"upload-placeholder"},[e._v(e._s(e.$t("card.CardFile.p9")))])])],1):t("div",[t("el-input",{attrs:{placeholder:e.$t("card.CardFile.p8")},model:{value:a.fileUrl,callback:function(t){e.$set(a,"fileUrl",t)},expression:"vitem.fileUrl"}})],1)])],1)],1)})),0)]),t("el-form-item",{attrs:{label:e.$t("card.CardFile.p10")+":"}},[t("div",{staticClass:"steps-wrap"},[t("div",{staticClass:"step-item"},[t("div",{staticClass:"step-header"},[t("span",[e._v(e._s(e.$t("card.CardFile.p10"))+" ")])]),t("el-row",{staticClass:"step-body",attrs:{gutter:12}},[t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[t("el-input",{attrs:{placeholder:e.$t("card.CardFile.p11")},model:{value:e.form.pdfPassword,callback:function(t){e.$set(e.form,"pdfPassword",t)},expression:"form.pdfPassword"}})],1),t("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[t("el-upload",{staticClass:"mini-uploader",attrs:{"http-request":function(t){return e.handleFileUpload(t)},action:"","show-file-list":!1,accept:"application/pdf","on-success":e.handleSuccessPdf,drag:""}},[t("div",{staticClass:"upload-placeholder"},[e._v(e._s(e.$t("card.CardFile.p12")))])]),e.form.pdfPath?t("a",{staticClass:"upload-pdf",attrs:{target:"_blank",href:e.imgUrl+e.form.pdfPath,controls:""}},[e._v(e._s(e.form.pdfPath))]):e._e()],1)],1)],1)])])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.onDialogCancel}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ucard.Business.p32",expression:"'Ucard.Business.p32'"}]})]),t("el-button",{attrs:{type:"primary"},on:{click:e.cardFileAdd}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Confirm",expression:"'card.Btn.Confirm'"}]})])],1)],1):e._e()],1)},s=[],n=a("c7eb"),r=a("1da1"),o=a("5530"),l=(a("14d9"),a("a434"),a("b0c0"),a("e9f5"),a("7d54"),a("e9c4"),a("b64b"),a("d3b7"),a("00b4"),a("3ca3"),a("498a"),a("159b"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("88a7"),a("271a"),a("5494"),a("c6e4")),c=a("f121"),d=a.n(c),p=a("0e5c"),f=a("85e2"),u=d.a.Code,m={name:"CardFile",data:function(){return{pictLoading:!1,dialogCheck:!1,isAdd:!0,form:{lang:"",tag:"",setpList:[{setp:1,type:"2",d:"",img:""}],videoList:[{type:"2",fileUrl:"",d:""},{type:"2",fileUrl:"",d:""}]},mock_tableData:[],search:{valid:"",tag:"",lang:null,date:[],startDate:"",endDate:""},url:d.a.Host85,imgUrl:d.a.Host05,imageUrl1:"",uploadDes:this.$i18n.t("Ucard.PaymentTransfer.text20"),multipleSelection:[],tags_options:[{tag:"1",name:this.$i18n.t("R-CardFil-tag")}],tagMap:{1:this.$i18n.t("R-CardFil-tag")},rules:{tag:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],lang:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],type:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],fileUrl:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()},AccessToken:function(){return{"Access-Token":this.Session.Get("access_token")}},dialogRules:function(){return{lang:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],tag:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},methods:{isPdf:function(e){return/\.pdf(\?.*)?$/i.test(e)},handleCommand:function(e){"delete"==e.type?(this.multipleSelection=[e.id],this.toDeleteBatch(e.id)):"editor"==e.type&&this.toUpdate(e.row)},handleVideoUpload:function(e,t){Object(p["a"])(Object(o["a"])(Object(o["a"])({},e),{},{index:t}),"/ucard/file/upload/video")},handleFileUpload:function(e,t){Object(p["a"])(Object(o["a"])(Object(o["a"])({},e),{},{index:t}),"/common/upload")},handleSuccessStep:function(e){var t=e.index,a=e.data;this.form.setpList[t].img=a},handleSuccessVideo:function(e){var t=e.index,a=e.data;this.form.videoList[t].fileUrl=a},handleSuccessPdf:function(e){var t=e.data;this.form=Object(o["a"])(Object(o["a"])({},this.form),{},{pdfPath:t})},handleAvatarSuccess1:function(e,t){200==e.code?(t&&t.raw&&(this.imageUrl1=URL.createObjectURL(t.raw)),this.form.fileUrl=e.data,this.uploadDes=this.$i18n.t("Msg.Success")):this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))},beforeAvatarUpload:function(e){var t=-1!=["mp4","avi","3gp","wmv","asf","navi","mov","mpeg","rm","rmvb","flv","f4v","MP4","AVI","3GP","WMV","ASF","NAVI","MOV","MPEG","RM","RMVB","FLV","F4V"].indexOf(e.name.split(".")[1]),a=e.size/1024/1024<100;return t||this.$pigeon.MessageError(this.$i18n.t("Msg.mp4")),a||this.$pigeon.MessageError(this.$i18n.t("Msg.10IMG")),t&&a&&(this.uploadDes=this.$i18n.t("news_add_field.Label.Uploading")),t&&a},searchFunc:function(){var e=this;return Object(r["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:if(e.pictLoading=!0,e.display["R-CardFile-List"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,l["a"].cardFileList(Object(o["a"])(Object(o["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==u.StatusOK?(e.mock_tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 10:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},toNew:function(){this.form={lang:"",tag:"",setpList:[{setp:1,type:"2",d:"",img:""}],videoList:[{type:"2",fileUrl:"",d:""},{type:"2",fileUrl:"",d:""}]},this.imageUrl1="",this.isAdd=!0,this.dialogCheck=!0},toUpdate:function(e){var t={};try{t="string"===typeof e.fileInfo&&e.fileInfo.trim()?JSON.parse(e.fileInfo):{}}catch(i){t={}}var a=Object(o["a"])(Object(o["a"])(Object(o["a"])({},e),{},{lang:e.lang||"",tag:e.tag||""},t),{},{pdfPassword:f["a"].Decrypt(e.pdfPassword)});this.form=a,console.log(a,1222),this.dialogCheck=!0,this.isAdd=!1},addStep:function(e){var t="number"===typeof e?e+1:this.form.setpList.length;this.form.setpList.splice(t,0,{setp:t+1,type:"2",d:"",img:""}),this.reindexSteps()},removeStep:function(e){this.form.setpList.length<=1||(this.form.setpList.splice(e,1),this.reindexSteps())},reindexSteps:function(){this.form.setpList.forEach((function(e,t){return e.setp=t+1}))},addVideo:function(e){if(this.form.videoList.length>=2)console.warn("最多只能添加两个视频");else{var t="number"===typeof e?e+1:this.form.videoList.length;this.form.videoList.splice(t,0,{type:"2",fileUrl:"",d:""})}},removeVideo:function(e){this.form.videoList.length<=1||this.form.videoList.splice(e,1)},cardFileAdd:function(){var e=this;return Object(r["a"])(Object(n["a"])().mark((function t(){var a,i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.form){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.$refs.form.validate();case 5:if(a=t.sent,a){t.next=8;break}return t.abrupt("return");case 8:t.next=13;break;case 10:return t.prev=10,t.t0=t["catch"](2),t.abrupt("return");case 13:if(Array.isArray(e.form.setpList)&&0!==e.form.setpList.length||(e.form.setpList=[{setp:1,type:"2",d:"",img:""}]),Array.isArray(e.form.videoList)&&0!==e.form.videoList.length||(e.form.videoList=[{type:"2",fileUrl:"",d:""}]),s=Object(o["a"])(Object(o["a"])({},e.form),{},{type:"1",fileInfo:JSON.stringify({setpList:e.form.setpList,videoList:e.form.videoList}),setpList:void 0,videoList:void 0,validate:!1,pdfPassword:f["a"].Encrypt(String(e.form.pdfPassword))}),!e.isAdd){t.next=22;break}return t.next=19,l["a"].cardFileAdd(Object(o["a"])({},s));case 19:i=t.sent,t.next=25;break;case 22:return t.next=24,l["a"].cardFileUpdate(Object(o["a"])({},s));case 24:i=t.sent;case 25:i&&200==i.code?(e.form={lang:"",tag:"",setpList:[{setp:1,type:"2",d:"",img:""}],videoList:[{type:"2",fileUrl:"",d:""}]},e.dialogCheck=!1,e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.searchFunc()):e.$pigeon.MessageError(i.msg||e.$i18n.t("Msg.Fail"));case 26:case"end":return t.stop()}}),t,null,[[2,10]])})))()},onDialogCancel:function(){this.dialogCheck=!1},toDelete:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(t){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t),a=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(r["a"])(Object(n["a"])().mark((function e(){var i,s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=[],i.push(t),e.next=4,l["a"].webVideoDelete({ids:i});case 4:s=e.sent,s.code==u.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(s.msg);case 6:case"end":return e.stop()}}),e)}))),(function(){}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),toDeleteBatch:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.multipleSelection.length){e.next=2;break}return e.abrupt("return");case 2:t=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(r["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["a"].cardFileDelete({ids:t.multipleSelection});case 2:a=e.sent,a.code==u.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.DeleteSuccess")),t.searchFunc()):t.$pigeon.MessageError(a.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()},watch:{"form.type":function(){}}},g=m,h=(a("4fdd"),a("2877")),v=Object(h["a"])(g,i,s,!1,null,"587cb2d7",null);t["default"]=v.exports},"4fdd":function(e,t,a){"use strict";a("09af")},a434:function(e,t,a){"use strict";var i=a("23e7"),s=a("7b0b"),n=a("23cb"),r=a("5926"),o=a("07fa"),l=a("3a34"),c=a("3511"),d=a("65f0"),p=a("8418"),f=a("083a"),u=a("1dde"),m=u("splice"),g=Math.max,h=Math.min;i({target:"Array",proto:!0,forced:!m},{splice:function(e,t){var a,i,u,m,v,b,w=s(this),_=o(w),$=n(e,_),C=arguments.length;for(0===C?a=i=0:1===C?(a=0,i=_-$):(a=C-2,i=h(g(r(t),0),_-$)),c(_+a-i),u=d(w,i),m=0;m<i;m++)v=$+m,v in w&&p(u,m,w[v]);if(u.length=i,a<i){for(m=$;m<_-i;m++)v=m+i,b=m+a,v in w?w[b]=w[v]:f(w,b);for(m=_;m>_-i+a;m--)f(w,m-1)}else if(a>i)for(m=_-i;m>$;m--)v=m+i-1,b=m+a-1,v in w?w[b]=w[v]:f(w,b);for(m=0;m<a;m++)w[m+$]=arguments[m+2];return l(w,_-i+a),u}})}}]);
|