(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["OperateRecord"],{"3a09":function(t,e,a){"use strict";a("a833")},"68a4":function(t,e,a){"use strict";a("ea6f")},a833:function(t,e,a){},d19d:function(t,e,a){"use strict";a.r(e);a("b0c0"),a("ac1f"),a("841c");var r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"system_OperateRecord","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[e("div",{staticClass:"crm_search"},[e("el-form",{ref:"form",attrs:{"label-position":"",model:t.search,"label-width":""}},[e("el-row",[e("el-col",{attrs:{span:24,md:24,lg:24}},[e("el-form-item",{staticStyle:{"margin-right":"15px"}},[e("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},model:{value:t.search.cId,callback:function(e){t.$set(t.search,"cId",e)},expression:"search.cId"}},[e("template",{slot:"prepend"},[e("span",{staticClass:"crm-cursor"},[t._v("CID")])])],2)],1),e("el-form-item",[e("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},model:{value:t.search.name,callback:function(e){t.$set(t.search,"name",e)},expression:"search.name"}},[e("template",{slot:"prepend"},[e("span",{staticClass:"crm-cursor"},[t._v(t._s(t.$t("Label.Name")))])])],2)],1),e("el-form-item",[e("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.toSearch}})],1)],1)],1)],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mock_tableData,stripe:""}},[e("el-table-column",{attrs:{prop:"cId",align:"left",label:"CID"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.cId||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"name",align:"left",label:t.$t("Label.Name")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.name||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"oldContent",align:"left",label:t.$t("Label.OldContent")},scopedSlots:t._u([{key:"default",fn:function(a){return[7==a.row.operateType&&a.row.oldContent?e("div",{staticClass:"img_pdf"},t._l(t.getImageUrlList(a.row.oldContent),(function(r,n){return e("div",{key:n,staticStyle:{display:"inline-block","margin-right":"5px"}},[t.isPdfFile(r)?e("a",{staticClass:"state crm_state_blue",staticStyle:{"text-decoration":"none","min-width":"auto",width:"auto",color:"#ffffff"},attrs:{href:r,target:"_blank"}},[t._v(" PDF ")]):e("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:r,"preview-src-list":t.getImageUrlList(a.row.oldContent)}},[e("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e("i",{staticClass:"el-icon-picture-outline"})])])],1)})),0):e("span",[t._v(t._s(a.row.oldContent||"--"))])]}}])}),e("el-table-column",{attrs:{prop:"newContent",align:"left",label:t.$t("Label.NewContent")},scopedSlots:t._u([{key:"default",fn:function(a){return[7==a.row.operateType&&a.row.newContent?e("div",{staticClass:"img_pdf"},t._l(t.getImageUrlList(a.row.newContent),(function(r,n){return e("div",{key:n,staticStyle:{display:"inline-block","margin-right":"5px"}},[t.isPdfFile(r)?e("a",{staticClass:"state crm_state_blue",staticStyle:{"text-decoration":"none","min-width":"auto",width:"auto",color:"#ffffff"},attrs:{href:r,target:"_blank"}},[t._v(" PDF ")]):e("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:r,"preview-src-list":t.getImageUrlList(a.row.newContent)}},[e("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e("i",{staticClass:"el-icon-picture-outline"})])])],1)})),0):e("span",[t._v(t._s(a.row.newContent||"--"))])]}}])}),e("el-table-column",{attrs:{prop:"operateType",align:"left",label:t.$t("Label.OperateType")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getOperateTypeText(e.row.operateType))+" ")]}}])}),e("el-table-column",{attrs:{prop:"operateName",align:"left",label:t.$t("Label.OperateName")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.operateName||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"addTime",align:"left",label:t.$t("Label.AddTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.addTime||"--")+" ")]}}])})],1),t.mock_tableData.length>0?e("div",{staticClass:"crm_pagination"},[e("div",{staticClass:"crm_page_total"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),e("span",[t._v(t._s(t.pagerInfo.rowTotal))]),e("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal,"current-page":t.pagerInfo.current},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1):t._e()],1)},n=[],s=a("c14f"),i=a("1da1"),o=(a("4de4"),a("d81d"),a("e9f5"),a("910d"),a("ab43"),a("b64b"),a("d3b7"),a("2ca0"),a("498a"),a("5217")),l=a("da7c"),c=a("f121"),p=a.n(c),u=p.a.Code,d={name:"OperateRecord",props:{status:{type:Boolean,default:!0},customerInfo:{default:function(){return{}}},cid:{default:""},detail:{default:!1}},components:{},data:function(){return{countryList:[],info:{},pictLoading:!1,exportLoading:!1,mock_tableData:[],search:{cId:"",name:""},imgUrl:p.a.Host85,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){try{var t=this.Session.Get("display",!0);return t?JSON.parse(t):{}}catch(e){return console.error("Error parsing display data:",e),{}}}},methods:{getImageUrl:function(t){if(!t)return"";var e=t.split(",").map((function(t){return t.trim()})).filter((function(t){return t}));if(e.length>0){var a=e[0];return a.startsWith("http://")||a.startsWith("https://")?a:this.imgUrl+(a.startsWith("/")?a:"/"+a)}return""},getImageUrlList:function(t){var e=this;if(!t)return[];var a=t.split(",").map((function(t){return t.trim()})).filter((function(t){return t}));return a.map((function(t){return t.startsWith("http://")||t.startsWith("https://")?t:e.imgUrl+(t.startsWith("/")?t:"/"+t)}))},isPdfFile:function(t){if(!t)return!1;var e=t.split("?")[0],a=e.substring(e.lastIndexOf(".")+1).toLowerCase();return"pdf"===a},getOperateTypeText:function(t){var e={1:this.$t("Label.OperateTypeMap.Commission"),2:this.$t("Label.OperateTypeMap.Attribution"),3:this.$t("Label.OperateTypeMap.Kyc"),4:this.$t("Label.OperateTypeMap.CustomerInfo"),5:this.$t("Label.OperateTypeMap.TradingAccount"),6:this.$t("Label.OperateTypeMap.CancelCustomer"),7:this.$t("Label.OperateTypeMap.CustomerFileUpload")};return e[t]||"--"},CountryList:function(){var t=this;return Object(i["a"])(Object(s["a"])().m((function e(){var a;return Object(s["a"])().w((function(e){while(1)switch(e.n){case 0:return e.n=1,l["a"].countryGet({});case 1:a=e.v,a.code==u.StatusOK?t.countryList=a.data:t.$pigeon.MessageError(a.msg);case 2:return e.a(2)}}),e)})))()},searchFunc:function(){var t=this;return Object(i["a"])(Object(s["a"])().m((function e(){var a,r,n;return Object(s["a"])().w((function(e){while(1)switch(e.p=e.n){case 0:if(t.pictLoading=!0,e.p=1,t.display["R-OperateRecord-Search"]&&t.display["R-OperateRecord-Search"].show){e.n=2;break}return t.$pigeon.MessageWarning(t.$i18n.t("Msg.NotDisplay")),t.pictLoading=!1,e.a(2);case 2:e.n=4;break;case 3:return e.p=3,n=e.v,console.error("Error checking display permissions:",n),t.$pigeon.MessageWarning(t.$i18n.t("Msg.NotDisplay")),t.pictLoading=!1,e.a(2);case 4:return a={cId:t.search.cId,name:t.search.name,page:{current:t.pagerInfo.current,row:t.pagerInfo.row}},t.detail&&t.cid&&(a.cId=t.cid),e.n=5,o["a"].operateRecordSearchList(a);case 5:r=e.v,r.code==u.StatusOK?(t.mock_tableData=r.data,null!=r.page?(t.pagerInfo.rowTotal=r.page.rowTotal,t.pagerInfo.pageTotal=r.page.pageTotal):(t.pagerInfo.rowTotal=r.data?r.data.length:0,t.pagerInfo.pageTotal=1),t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(r.msg),t.pictLoading=!1;case 6:return e.a(2)}}),e,null,[[1,3]])})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange:function(t){this.pagerInfo.current=t,this.searchFunc()}},mounted:function(){this.detail&&this.cid&&(this.search.cId=this.cid),this.searchFunc(),this.CountryList()},created:function(){this.info=JSON.parse(sessionStorage.getItem("info"))}},f=d,g=(a("68a4"),a("3a09"),a("2877")),m=Object(g["a"])(f,r,n,!1,null,"6b2710fa",null);e["default"]=m.exports},ea6f:function(t,e,a){}}]);