1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8deebc56"],{"72a1":function(e,l,a){},"92e3":function(e,l,a){"use strict";a.d(l,"v",(function(){return c})),a.d(l,"I",(function(){return i})),a.d(l,"t",(function(){return v})),a.d(l,"c",(function(){return b})),a.d(l,"E",(function(){return s})),a.d(l,"bb",(function(){return f})),a.d(l,"Z",(function(){return d})),a.d(l,"d",(function(){return p})),a.d(l,"M",(function(){return m})),a.d(l,"x",(function(){return E})),a.d(l,"db",(function(){return N})),a.d(l,"u",(function(){return I})),a.d(l,"o",(function(){return O})),a.d(l,"cb",(function(){return T})),a.d(l,"Q",(function(){return R})),a.d(l,"fb",(function(){return S})),a.d(l,"gb",(function(){return A})),a.d(l,"P",(function(){return h})),a.d(l,"U",(function(){return L})),a.d(l,"C",(function(){return C})),a.d(l,"l",(function(){return _})),a.d(l,"Y",(function(){return y})),a.d(l,"eb",(function(){return w})),a.d(l,"J",(function(){return M})),a.d(l,"m",(function(){return G})),a.d(l,"w",(function(){return P})),a.d(l,"N",(function(){return x})),a.d(l,"f",(function(){return U})),a.d(l,"e",(function(){return H})),a.d(l,"L",(function(){return g})),a.d(l,"K",(function(){return D})),a.d(l,"T",(function(){return j})),a.d(l,"H",(function(){return k})),a.d(l,"a",(function(){return V})),a.d(l,"y",(function(){return B})),a.d(l,"p",(function(){return Y})),a.d(l,"n",(function(){return $})),a.d(l,"q",(function(){return q})),a.d(l,"g",(function(){return F})),a.d(l,"G",(function(){return X})),a.d(l,"r",(function(){return K})),a.d(l,"D",(function(){return W})),a.d(l,"B",(function(){return J})),a.d(l,"A",(function(){return Q})),a.d(l,"h",(function(){return z})),a.d(l,"k",(function(){return Z})),a.d(l,"i",(function(){return ee})),a.d(l,"j",(function(){return le})),a.d(l,"S",(function(){return ae})),a.d(l,"O",(function(){return te})),a.d(l,"F",(function(){return ue})),a.d(l,"z",(function(){return re})),a.d(l,"R",(function(){return ne})),a.d(l,"V",(function(){return oe})),a.d(l,"X",(function(){return ce})),a.d(l,"s",(function(){return ie})),a.d(l,"ab",(function(){return ve})),a.d(l,"W",(function(){return be})),a.d(l,"b",(function(){return fe}));var t=a("b85c"),u=a("3835"),r=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var o=n.tenantId,c=null,i=null;1==o?(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var v=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],b=[{label:"正常签到",value:1},{label:"异常签到",value:0}],s=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],f=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],d=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(d,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],E=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],N=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],I=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],O=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],T=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],R=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],S=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],A=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],h=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],L=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],_=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],y=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],w=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],M=se(r["musicGroupType"]),G=se(r["classTime"]),P=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],x=se(r["payOrderType"]),U=se(r["auditType"]),H=se(r["auditPaymentType"]),g=se(r["orderServerType"]),D=se(r["orderAuditType"]),j=se(r["rewardModeType"]),k=se(r["musicClassType"]),V=se(r["ProbationPeriodStatus"]),B=se(r["downListType"]),Y=se(r["conclusion"]),$=se(r["clientType"]),q=se(r["couponType"]),F=se(r["backType"]),X=se(r["memberEnum"]),K=se(r["coupontypeDetail"]),W=se(r["issue"]),J=se(r["feedbackType"]),Q=se(r["feedbackTypeDesc"]),z=se(r["campState"]),Z=se(r["catgGoupType"]),ee=se(r["catRole"]),le=se(r["catType"]),ae=se(r["quiteReason"]),te=se(r["payUserType"]),ue=se(r["levelStatus"]),re=se(r["evaluateStatus"]),ne=se(r["problemType"]),oe=se(r["schoolUserType"]),ce=se(r["shareLiveType"]),ie=se(r["courseEmnu"]),ve=se(r["suggestionType"]),be=se(r["scoreType"]);function se(e){var l=[];for(var a in e)l.push({label:e[a],value:a});return l}var fe=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(u["a"])(l,2),r=a[0],n=a[1],o={};if(e&&e.length){var c,i=Object(t["a"])(e);try{for(i.s();!(c=i.n()).done;){var v=c.value;o[v[r]]=v[n]}}catch(b){i.e(b)}finally{i.f()}}return o}},b17c:function(e,l,a){"use strict";a("72a1")},d736:function(e,l,a){"use strict";a.r(l);var t=function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"服务器主机名",prop:"hostName",rules:[{required:!0,message:"请输入服务器主机名"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{placeholder:"请输服务器主机名"},model:{value:e.form.hostName,callback:function(l){e.$set(e.form,"hostName",l)},expression:"form.hostName"}})],1)],1),e._v(" "),a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"服务器端口号",prop:"smtpPort",rules:[{required:!0,message:"请输入服务器端口号"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{placeholder:"请输入服务器端口号"},model:{value:e.form.smtpPort,callback:function(l){e.$set(e.form,"smtpPort",l)},expression:"form.smtpPort"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"服务器用户名",prop:"userName",rules:[{required:!0,message:"请输入服务器用户名"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{placeholder:"请输入服务器用户名"},model:{value:e.form.userName,callback:function(l){e.$set(e.form,"userName",l)},expression:"form.userName"}})],1)],1),e._v(" "),a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"服务器密码",prop:"password",rules:[{required:!0,message:"请输入服务器密码"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{"show-password":"",placeholder:"请输入服务器密码"},model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"邮箱",prop:"from",rules:[{required:!0,message:"请输入邮箱"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{placeholder:"请输入邮箱"},model:{value:e.form.from,callback:function(l){e.$set(e.form,"from",l)},expression:"form.from"}})],1)],1),e._v(" "),a("el-col",{staticStyle:{width:"395px"}},[a("el-form-item",{attrs:{label:"落款名称",prop:"fromName",rules:[{required:!0,message:"请输入落款名称"}]}},[a("el-input",{staticStyle:{width:"355px !important"},attrs:{placeholder:"请输入落款名称"},model:{value:e.form.fromName,callback:function(l){e.$set(e.form,"fromName",l)},expression:"form.fromName"}})],1)],1)],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysEmail/update",expression:"'sysEmail/update'"}],attrs:{type:"primary"},on:{click:e.setEmil}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)])},u=[function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 邮件服务配置\n ")])}],r=a("c7eb"),n=a("5530"),o=(a("96cf"),a("1da1")),c=a("829b"),i=function(e){return Object(c["a"])({url:"/api-web/sysEmail/query",params:e,method:"get"})},v=function(e){return Object(c["a"])({url:"/api-web/sysEmail/update",data:e,method:"post"})},b=a("92e3"),s=(a("ed08"),{data:function(){return{couponTypeList:b["q"],coupontypeDetail:b["r"],form:{id:1,hostName:null,smtpPort:null,userName:null,password:null,from:null,fromName:null,tenantId:-1}}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(){var l;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i({tenantId:-1});case 3:l=e.sent,l.data&&(this.form=Object(n["a"])({},l.data),this.activeRow=Object(n["a"])({},l.data)),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function l(){return e.apply(this,arguments)}return l}(),resetForm:function(){this.$refs.form.resetFields(),this.activeRow&&(this.form=Object(n["a"])({},this.activeRow))},setEmil:function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(){var l=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(a){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a&&l.$confirm("是否保存邮件配置?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(Object(r["a"])().mark((function e(){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v(Object(n["a"])(Object(n["a"])({},l.form),{},{tenantId:-1}));case 3:e.sent,l.$message.success("保存成功"),l.getList(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).catch((function(){}));case 1:case"end":return e.stop()}}),e)})));return function(l){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function l(){return e.apply(this,arguments)}return l}()}}),f=s,d=(a("b17c"),a("2877")),p=Object(d["a"])(f,t,u,!1,null,"4e6cb810",null);l["default"]=p.exports}}]);
|