chunk-ce5cfd78.43b11dc2.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ce5cfd78"],{"2f4d":function(e,a,t){"use strict";t.r(a);t("99af"),t("ac1f"),t("841c");var n=function(){var e=this,a=e._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"card_AppManagement","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm_search"},[a("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[a("el-row",[a("el-col",{attrs:{span:24,md:24,lg:24}},[a("el-form-item",[a("el-select",{staticClass:"crm-border-radius-no",attrs:{clearable:"",size:"small",placeholder:e.$t("Ucard.AppProblemCate.t1")},on:{change:e.toSearch},model:{value:e.search.language,callback:function(a){e.$set(e.search,"language",a)},expression:"search.language"}},e._l(e.langEnum,(function(t,n){return a("el-option",{key:n,attrs:{label:e.$t(t),value:n}})})),1)],1),a("el-form-item",[a("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),a("el-form-item",[e.display["R-Card-App-ProblemCategory-Del"]&&e.display["R-Card-App-ProblemCategory-Del"].show?a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-delete",disabled:!e.multipleSelection.length},on:{click:e.batchDel}},[e._v(" "+e._s(e.$t("R-Card-App-ProblemCategory-Del"))+" ")]):e._e()],1),a("el-form-item",[e.display["R-Card-App-ProblemCategory-Add"]&&e.display["R-Card-App-ProblemCategory-Add"].show?a("el-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.add}},[e._v(" "+e._s(e.$t("R-Card-App-ProblemCategory-Add"))+" ")]):e._e()],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[e.display["R-Card-App-ProblemCategory-Del"]&&e.display["R-Card-App-ProblemCategory-Del"].show?a("el-table-column",{attrs:{align:"left",type:"selection",width:"50"}}):e._e(),a("el-table-column",{attrs:{prop:"language",align:"left",label:e.$t("Ucard.AppProblemCate.t1")},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(" "+e._s(a.row.language?e.$t("Web_info.".concat(a.row.language)):"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"type",align:"left",label:e.$t("Ucard.AppProblemCate.t2")},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(" "+e._s(a.row.type||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"ctrl",align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.display["R-Card-App-ProblemCategory-Edit"]&&e.display["R-Card-App-ProblemCategory-Edit"].show?a("el-dropdown-item",{attrs:{command:{type:"edit",row:t.row}}},[a("i",{staticClass:"el-icon-edit"}),a("span",[e._v(e._s(e.$t("R-Card-App-ProblemCategory-Edit")))])]):e._e(),e.display["R-Card-App-ProblemCategory-Del"]&&e.display["R-Card-App-ProblemCategory-Del"].show?a("el-dropdown-item",{attrs:{command:{type:"delete",row:t.row}}},[a("i",{staticClass:"el-icon-delete"}),a("span",[e._v(e._s(e.$t("R-Card-App-ProblemCategory-Del")))])]):e._e()],1)],1)]}}])})],1),a("PagePagination",{attrs:{"pager-info":e.pagerInfo},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}}),a("el-dialog",{attrs:{visible:e.dialogVisible,title:"".concat(e.edit?e.$t("R-Card-App-ProblemCategory-Edit"):e.$t("R-Card-App-ProblemCategory-Add")).concat(e.$t("Ucard.AppProblemCate.item1")),width:"500px","close-on-click-modal":!1},on:{"update:visible":function(a){e.dialogVisible=a}}},[a("el-form",{ref:"addFormRef",attrs:{model:e.addForm,rules:e.addRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"".concat(e.$t("Ucard.AppProblemCate.t1"),":"),prop:"language"}},[a("el-select",{attrs:{disabled:e.edit,placeholder:e.$t("Ucard.AppProblemCate.p1")},model:{value:e.addForm.language,callback:function(a){e.$set(e.addForm,"language",a)},expression:"addForm.language"}},e._l(e.langEnum,(function(t,n){return a("el-option",{key:n,attrs:{label:e.$t(t),value:n}})})),1)],1),a("el-form-item",{attrs:{label:"".concat(e.$t("Ucard.AppProblemCate.t2"),":"),prop:"type"}},[a("el-input",{attrs:{placeholder:e.$t("Ucard.AppProblemCate.p2")},model:{value:e.addForm.type,callback:function(a){e.$set(e.addForm,"type",a)},expression:"addForm.type"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(a){e.dialogVisible=!1}}},[e._v(e._s(e.$t("Btn.Cancel"))+" ")]),a("el-button",{attrs:{type:"primary",loading:e.addLoading},on:{click:e.handleAddConfirm}},[e._v(e._s(e.$t("Btn.Confirm"))+" ")])],1)],1)],1)},r=[],o=t("c14f"),i=t("5530"),l=t("1da1"),s=(t("14d9"),t("e9f5"),t("7d54"),t("b64b"),t("d3b7"),t("159b"),t("c6e4")),c=t("f121"),d=t.n(c),p=t("3bc1"),u=t("c5fa"),g=d.a.Code,m={name:"CardProblemCateGory",components:{PagePagination:p["a"]},data:function(){return{langEnum:u["b"],pictLoading:!1,tableData:[],search:{language:""},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},multipleSelection:[],dialogVisible:!1,edit:!1,addForm:{},addRules:{language:[{required:!0,message:this.$i18n.t("Ucard.AppProblemCate.p1"),trigger:"change"}],type:[{required:!0,message:this.$i18n.t("Ucard.AppProblemCate.p2"),trigger:"blur"}]},addLoading:!1}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{searchFunc:function(){var e=this;return Object(l["a"])(Object(o["a"])().m((function a(){var t,n;return Object(o["a"])().w((function(a){while(1)switch(a.n){case 0:if(e.pictLoading=!0,null!==(t=e.display["R-Card-App-ProblemCategory-Page"])&&void 0!==t&&t.show){a.n=1;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,a.a(2);case 1:return a.n=2,s["a"].getCardProblemCatePage(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 2:n=a.v,n.code==g.StatusOK?(e.tableData=n.data,null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(n.msg),e.pictLoading=!1;case 3:return a.a(2)}}),a)})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()},handleSelectionChange:function(e){var a=this;this.multipleSelection=[],e.forEach((function(e){a.multipleSelection.push(e.id)}))},batchDel:function(){this.handleDelete(this.multipleSelection)},add:function(){var e=this;this.addForm={},this.edit=!1,this.dialogVisible=!0,this.$nextTick((function(){e.$refs.addFormRef&&e.$refs.addFormRef.clearValidate()}))},handleAddConfirm:function(){var e=this;return Object(l["a"])(Object(o["a"])().m((function a(){var t,n,r,l,c;return Object(o["a"])().w((function(a){while(1)switch(a.p=a.n){case 0:return a.n=1,e.$refs.addFormRef.validate();case 1:if(t=a.v,t){a.n=2;break}return a.a(2);case 2:if(e.addLoading=!0,a.p=3,n=Object(i["a"])({},e.addForm),!e.edit){a.n=5;break}return a.n=4,s["a"].editCardProblemCate(n);case 4:l=a.v,a.n=7;break;case 5:return a.n=6,s["a"].addCardProblemCate(n);case 6:l=a.v;case 7:r=l,r.code==g.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.SaveSuccess")),e.dialogVisible=!1,e.searchFunc()):e.$pigeon.MessageError(r.msg),a.n=9;break;case 8:a.p=8,c=a.v,console.log(c);case 9:return a.p=9,e.addLoading=!1,a.f(9);case 10:return a.a(2)}}),a,null,[[3,8,9,10]])})))()},handleDelete:function(e){var a=this;return Object(l["a"])(Object(o["a"])().m((function t(){return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:a.$confirm(a.$t("Msg.DeleteConfirm"),a.$t("Msg.SystemPrompt"),{confirmButtonText:a.$t("Btn.Confirm"),cancelButtonText:a.$t("Btn.Cancel"),type:"warning"}).then(Object(l["a"])(Object(o["a"])().m((function t(){var n;return Object(o["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,s["a"].deleteCardProblemCate({ids:e});case 1:n=t.v,n.code==g.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(n.msg),t.n=3;break;case 2:t.p=2,t.v,a.$pigeon.MessageError(a.$i18n.t("Msg.DeleteFail"));case 3:return t.a(2)}}),t,null,[[0,2]])})))).catch((function(){}));case 1:return t.a(2)}}),t)})))()},handleCommand:function(e){var a=e.type,t=e.row;"edit"===a?(this.edit=!0,this.dialogVisible=!0,this.addForm=Object(i["a"])({},t)):this.handleDelete([t.id])}},mounted:function(){this.searchFunc()}},f=m,b=(t("7eab"),t("7d60"),t("2877")),h=Object(b["a"])(f,n,r,!1,null,"3af6baff",null);a["default"]=h.exports},"3bc1":function(e,a,t){"use strict";var n=function(){var e=this,a=e._self._c;return e.pageInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("div",{staticClass:"crm_page_total"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),a("span",[e._v(e._s(e.pageInfo.rowTotal))]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pageInfo.row,total:e.pageInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()},r=[],o={name:"PagePagination",components:{},props:{pagerInfo:{type:Object,required:!0}},computed:{pageInfo:function(){return this.pagerInfo}},methods:{handleCurrentChange:function(e){this.$emit("current-change",e)},handleSizeChange:function(e){this.$emit("size-change",e)}}},i=o,l=t("2877"),s=Object(l["a"])(i,n,r,!1,null,"3121aa56",null);a["a"]=s.exports},"4ac6":function(e,a,t){},"7d60":function(e,a,t){"use strict";t("4ac6")},"7eab":function(e,a,t){"use strict";t("8c16")},"8c16":function(e,a,t){},c5fa:function(e,a,t){"use strict";t.d(a,"a",(function(){return n})),t.d(a,"c",(function(){return r})),t.d(a,"d",(function(){return o})),t.d(a,"b",(function(){return i}));var n={0:"Ucard.Blockchain.unEnable",1:"Ucard.Blockchain.enabled"},r={0:"Ucard.DepositAddress.noRest",1:"Ucard.DepositAddress.isRest"},o={wait_process:"State.ToBeProcessed",processing:"State.InTheProcessing",success:"State.Success",fail:"State.Fail"},i={cn:"Web_info.cn",zhHant:"Web_info.zhHant",en:"Web_info.en",vn:"Web_info.vn",th:"Web_info.th",ar:"Web_info.ar",de:"Web_info.de",es:"Web_info.es",id:"Web_info.id",ms:"Web_info.ms",ko:"Web_info.ko",pt:"Web_info.pt",fa:"Web_info.fa",tr:"Web_info.tr"}}}]);