| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["list"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},3924:function(e,t,a){"use strict";var n=a("ae2a"),r=a.n(n);r.a},8100:function(e,t,a){},"841c":function(e,t,a){"use strict";var n=a("d784"),r=a("825a"),i=a("1d80"),s=a("129f"),l=a("14c3");n("search",1,(function(e,t,a){return[function(t){var a=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,a):new RegExp(t)[e](String(a))},function(e){var n=a(t,e,this);if(n.done)return n.value;var i=r(e),o=String(this),c=i.lastIndex;s(c,0)||(i.lastIndex=0);var u=l(i,o);return s(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},a1df:function(e,t,a){"use strict";var n=a("8100"),r=a.n(n);r.a},a51c:function(e,t,a){},ae2a:function(e,t,a){},c554:function(e,t,a){"use strict";a("96cf");var n=a("1da1"),r=a("d4ec"),i=a("bee2"),s=a("262e"),l=a("2caf"),o=a("ff2d"),c=a("bc3a"),u=a.n(c),p=a("f121"),d=a.n(p),m=function(e){Object(s["a"])(a,e);var t=Object(l["a"])(a);function a(){var e;return Object(r["a"])(this,a),e=t.call(this),u.a.defaults.baseURL=d.a.Host85,e}return Object(i["a"])(a,[{key:"getList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customGroupTypeList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/group/type/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(o["a"]);t["a"]=new m},c6f6:function(e,t,a){"use strict";var n=a("a51c"),r=a.n(n);r.a},eece:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"view",attrs:{id:"mail"}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{staticClass:"pane",attrs:{label:e.$t("R-Mail-Item1"),name:"0"}},[a("el-form",{ref:"form",attrs:{model:e.params,"label-width":"100px"}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Receiver")}},[a("el-select",{staticClass:"width-100p",attrs:{placeholder:e.$t("R-Mail-Item1-Receiver-Placeholder")},model:{value:e.params.region,callback:function(t){e.$set(e.params,"region",t)},expression:"params.region"}},[a("el-option",{attrs:{label:"区域一",value:"shanghai"}}),a("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Title")}},[a("el-input",{attrs:{placeholder:e.$t("R-Mail-Item1-Title-Placeholder")},model:{value:e.params.name,callback:function(t){e.$set(e.params,"name","string"===typeof t?t.trim():t)},expression:"params.name"}})],1),a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Template")}},[a("el-row",[a("el-col",{attrs:{span:"18",sm:18,md:18,lg:18}},[a("el-select",{staticClass:"width-100p",attrs:{placeholder:e.$t("R-Mail-Item1-Template-Placeholder")},model:{value:e.params.template,callback:function(t){e.$set(e.params,"template",t)},expression:"params.template"}},[a("el-option",{attrs:{label:"区域一",value:"shanghai"}}),a("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),a("el-col",{attrs:{span:"6",sm:6,md:6,lg:6}},[a("el-form-item",{staticClass:"advance",attrs:{label:e.$t("R-Mail-Item1-Advance")}},[a("el-switch",{staticClass:"advance-item",attrs:{change:"changeAdvance"},model:{value:e.advance,callback:function(t){e.advance=t},expression:"advance"}})],1)],1)],1)],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.advance,expression:"advance"}],staticClass:"advance-option"},[a("el-row",[a("el-col",{staticClass:"mg-b",attrs:{span:"8",sm:12,md:8,lg:8}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Type")}},[a("el-select",{staticClass:"width-100p",model:{value:e.params.type,callback:function(t){e.$set(e.params,"type",t)},expression:"params.type"}},[a("el-option",{attrs:{label:"固定额度",value:"0"}}),a("el-option",{attrs:{label:"百分比",value:"1"}})],1)],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"==e.params.type,expression:"params.type == '1'"}],staticClass:"mg-b",attrs:{span:"8",sm:12,md:8,lg:8}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Percent")}},[a("el-input",{attrs:{placeholder:e.$t("R-Mail-Item1-Percent-Placeholder")},model:{value:e.params.percent,callback:function(t){e.$set(e.params,"percent","string"===typeof t?t.trim():t)},expression:"params.percent"}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"==e.params.type,expression:"params.type == '1'"}],staticClass:"mg-b",attrs:{span:"8",sm:12,md:8,lg:8}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Limit")}},[a("el-select",{staticClass:"width-100p",model:{value:e.params.limit,callback:function(t){e.$set(e.params,"limit",t)},expression:"params.limit"}},[a("el-option",{attrs:{label:"$50",value:"0"}}),a("el-option",{attrs:{label:"$40",value:"1"}})],1)],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:"0"==e.params.type,expression:"params.type == '0'"}],staticClass:"mg-b",attrs:{span:"8",sm:12,md:8,lg:8}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Amount")}},[a("el-input",{attrs:{placeholder:e.$t("R-Mail-Item1-Amount-Placeholder")},model:{value:e.params.amount,callback:function(t){e.$set(e.params,"amount","string"===typeof t?t.trim():t)},expression:"params.amount"}})],1)],1),a("el-col",{staticClass:"mg-b",attrs:{span:"8",sm:12,md:8,lg:8}},[a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Binding")}},[a("el-select",{staticClass:"width-100p",model:{value:e.params.binding,callback:function(t){e.$set(e.params,"binding",t)},expression:"params.binding"}},[a("el-option",{attrs:{label:"是",value:"0"}}),a("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1)],1)],1),a("el-form-item",{attrs:{label:e.$t("R-Mail-Item1-Content")}},[a("div",{staticClass:"my-form-item-con"},[a("tinymce",{ref:"editor",attrs:{context:e.context,disabled:e.disabled},on:{tinymcehtml:e.tinymceHtml},model:{value:e.params.content,callback:function(t){e.$set(e.params,"content",t)},expression:"params.content"}})],1)]),a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"R-Mail-Item1-Submit",expression:"'R-Mail-Item1-Submit'"}],attrs:{type:"primary"},on:{click:e.onSubmit}})],1)],1)],1),a("el-tab-pane",{attrs:{label:e.$t("R-Mail-Item2"),name:"1"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"",width:"",label:e.$i18n.t("R-Mail-Item2-Table-Item1")}}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("R-Mail-Item2-Table-Item2")}},[e._v(" 200 ")]),a("el-table-column",{attrs:{prop:"deliveryTime",align:"left",label:e.$i18n.t("R-Mail-Item2-Table-Item3")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.deliveryTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"deliveryTime",align:"left",label:e.$i18n.t("R-Mail-Item2-Table-Item4")}},[e._v(" "+e._s("...")+" ")])],1)],1),a("el-tab-pane",{attrs:{label:e.$t("R-Mail-Item3"),name:"2"}},[e._v("用户管理")]),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],attrs:{label:e.$t("R-Mail-Item4"),name:"3","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",{staticStyle:{"margin-right":"15px"}},[a("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.potentialStatus,callback:function(t){e.$set(e.search,"potentialStatus",t)},expression:"search.potentialStatus"}},[a("el-option",{attrs:{label:e.$t("State.All"),value:null},nativeOn:{click:function(t){return e.toSearch(t)}}}),a("el-option",{attrs:{label:e.$t("State.NotApply"),value:0},nativeOn:{click:function(t){return e.toSearch(t)}}}),a("el-option",{attrs:{label:e.$t("State.Refused"),value:1},nativeOn:{click:function(t){return e.toSearch(t)}}})],1)],1),a("el-form-item",[a("el-select",{staticClass:"crm_search_down crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.tag,callback:function(t){e.$set(e.search,"tag",t)},expression:"search.tag"}},[a("el-option",{attrs:{label:"CID",value:1}}),a("el-option",{attrs:{label:e.$t("Enter_info.Email"),value:2}}),a("el-option",{attrs:{label:e.$t("Enter_info.AgentNumber"),value:3}})],1)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==e.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.cid,callback:function(t){e.$set(e.search,"cid","string"===typeof t?t.trim():t)},expression:"search.cid"}}):e._e(),2==e.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}}):e._e(),3==e.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}}):e._e()],1),a("el-form-item",[a("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),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)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"cId",align:"left",label:e.$i18n.t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.cId||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AttributionNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pIbNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:e.$i18n.t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.email||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Nationality")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("en"==e.Session.Get("lang")?t.row.countryEnName:t.row.countryName)+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.RegisteredIP")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addIp||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"approveTime",align:"left",label:e.$i18n.t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",width:"110",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.applyRealStatus&&1==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.NotApply",expression:"'State.NotApply'"}],staticClass:"state crm_state_gray"}):e._e(),3==t.row.applyRealStatus||3==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"applyRealTime",align:"left",label:e.$i18n.t("Label.Note")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.reasons[t.row.approveDesc]?a("span",[e._v(e._s("cn"==e.Session.Get("lang")?e.reasons[t.row.approveDesc].content:e.reasons[t.row.approveDesc].enContent))]):a("span",[e._v(e._s(t.row.approveDesc||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"approveTime",align:"left",label:e.$i18n.t("Label.ProcessingDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.approveTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.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-PotentialCustomer-Delete"].show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:t.row.id}}},[a("i",{staticClass:"iconfont iconshanchu"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.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.pagerInfo.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:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)],1)},r=[],i=(a("ac1f"),a("841c"),a("5530")),s=(a("96cf"),a("1da1")),l=a("c554"),o=a("f121"),c=a.n(o),u=a("918d"),p=c.a.Code,d={name:"Mail",components:{tinymce:u["a"]},data:function(){return{activeName:"1",advance:!1,params:{receiver:1,title:"",templateId:null,content:"",type:"1",binding:"0",limit:"0",percent:10,amount:0},imgUrl:c.a.Host85,mock_tableData:[],search:{valid:"",hot:"",tag:"",lang:"",date:[],startDate:"",endDate:""},pagerInfo:{row:6,current:1,pageTotal:0,rowTotal:0},rules:{tagsMy:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],subTitle:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],deliveryTime:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],content:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],title:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],date:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],coverImage:[{required:!0,message:this.$i18n.t("vaildate.img.empty"),trigger:"change"}],loginTypesMy:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],giveAmount:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}]}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{changeAdvance:function(){this.advance=!this.advance},onSubmit:function(){},searchFunc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Activity-Search"].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]),e.search.lang=e.Session.Get("lang"),t.next=9,l["a"].getActiveList(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 9:a=t.sent,a.code==p.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.$pigeon.MessageError(a.msg),e.pictLoading=!1;case 12:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},toNew:function(){this.$router.push({path:"/web/activityadd",query:{type:"add"}}).catch((function(e){return e}))},toCheck:function(e){this.$router.push({path:"/web/activityadd",query:{id:e,type:"check"}}).catch((function(e){return e}))},toUpdate:function(e){this.$router.push({path:"/web/activityadd",query:{id:e,type:"update"}}).catch((function(e){return e}))},toDelete:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0: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(s["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],n.push(t),e.next=4,l["a"].webActiveDelete({ids:n});case 4:r=e.sent,r.code==p.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(r.msg);case 6:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()}},m=d,h=(a("c6f6"),a("2877")),f=Object(h["a"])(m,n,r,!1,null,"92056c76",null);t["default"]=f.exports},f191:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"user_CustomerList","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",{staticStyle:{"margin-right":"10px"}},[a("el-input",{staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}},[a("template",{slot:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Email",expression:"'Label.Email'"}]})])],2)],1),a("el-form-item",[a("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},on:{input:e.getSearchDate},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),a("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),e.display["R-UserList-Add"].show?a("el-form-item",[a("div",{staticClass:"search_action_btn"},[a("span",{staticClass:"crm-cursor",on:{click:e.addUser}},[a("i",{staticClass:"el-icon-plus"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})])])]):e._e()],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.UserNames")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.username||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"email",align:"left",label:e.$i18n.t("Label.Email")}}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.RoleName")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.roleName||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Code")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.ibNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Region")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("cn"==e.Session.Get("lang")?t.row.groupName||"--":t.row.groupEnName||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.LoginIp")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.lastIp||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.CreationDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Normal",expression:"'State.Normal'"}],staticClass:"state crm_state_blue"}):e._e(),0==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Freeze",expression:"'State.Freeze'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.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-UserList-Update"].show?a("el-dropdown-item",{attrs:{command:{type:"editor",row:t.row}}},[a("i",{staticClass:"el-icon-s-operation"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["R-UserList-Delete"].show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:t.row.id}}},[a("i",{staticClass:"el-icon-delete"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.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.pagerInfo.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.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),a("trading-info-add",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,editor:e.editor,addType:e.addType,formList:e.formList},on:{confirmToReload:e.confirmToReload,closeAdd:e.closeAdd}}),e.dialogInfoTradingAdd?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e()],1)},r=[],i=(a("ac1f"),a("841c"),a("5530")),s=(a("96cf"),a("1da1")),l=a("9a1b"),o=a("f121"),c=a.n(o),u=a("8fd6"),p=c.a.Code,d={name:"CustomerList",components:{TradingInfoAdd:u["a"]},data:function(){return{pictLoading:!1,mock_tableData:[],search:{email:"",date:[],startDate:"",endDate:""},tag_options:[{name:this.$i18n.t("Web_info.All"),id:" "},{name:this.$i18n.t("Web_info.Announcement"),id:"1"},{name:this.$i18n.t("Web_info.Notice"),id:"2"},{name:this.$i18n.t("Web_info.Announcement"),id:"3"},{name:this.$i18n.t("Web_info.Notice"),id:"4"}],group_options:[{name:"CWG/B/300/ACC",id:"2"},{name:"CWG/A/300/ACC",id:"1"}],cid_options:[{value:1,label:"123",children:[{value:11,label:"123-1",children:[{value:111,label:"123-1-1"}]}]},{value:2,label:"456",children:[{value:21,label:"456-1",children:[{value:211,label:"456-1-1"}]}]},{value:3,label:"789",children:[{value:31,label:"789-1",children:[{value:311,label:"789-1-1"}]}]}],dialogInfo:!1,addType:"",formList:{},type:1,dialogInfoTradingAdd:!1,btn:"",editor:"",dialogInfoTrading:!1,infoType:"",formInfo:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{handleCommand:function(e){"editor"==e.type?(this.UserSingle(e.row.id),this.editor=1):"delete"==e.type&&this.delete(e.id)},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},addUser:function(){this.editor="",this.addType="user_CustomerList",this.dialogInfoTradingAdd=!0},confirmToReload:function(){this.closeDiaAdd(),this.toSearch()},closeDiaTrading:function(){this.dialogInfoTrading=!1},closeTrading:function(e){this.dialogInfoTrading=e},openInfo:function(e){this.dialogInfo=e},accountOpen:function(e){this.formInfo=e,this.infoType="user_CustomerList",this.dialogInfoTrading=!0},delete:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0: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(s["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],n.push(t),e.next=4,l["a"].userListDelete({ids:n});case 4:r=e.sent,r.code==p.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(r.msg);case 6:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),UserSingle:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].userSingle({id:e});case 2:n=a.sent,n.code==p.StatusOK?(t.formList=n.data,t.addType="user_CustomerList",t.dialogInfoTradingAdd=!0):t.$pigeon.MessageError(n.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-UserList-Search"].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"].userList(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==p.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()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()}},m=d,h=(a("a1df"),a("3924"),a("2877")),f=Object(h["a"])(m,n,r,!1,null,"e0511078",null);t["default"]=f.exports}}]);
|