Commit 77821934 by liuchenxi

update: build

parent 40a1d05a
.w180[data-v-2e39c34c]{width:180px}.w90[data-v-2e39c34c]{width:90px}.content[data-v-2e39c34c]{margin-top:26px}.content .send_sms[data-v-2e39c34c]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-2e39c34c]{font-size:14px;color:#606266;line-height:20px}.tip[data-v-2e39c34c],.tips[data-v-2e39c34c]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}.tip.tip[data-v-2e39c34c],.tips.tip[data-v-2e39c34c]{margin-left:0}.bottom.bottom[data-v-d2467e82],.top.bottom[data-v-d2467e82]{margin-top:30px}.bottom .title[data-v-d2467e82],.top .title[data-v-d2467e82]{background:#f7f8fa}.bottom .title h2[data-v-d2467e82],.top .title h2[data-v-d2467e82]{padding-left:22px;font-size:14px;font-weight:600;color:#303133;height:40px;line-height:40px;position:relative}.bottom .title h2[data-v-d2467e82]:before,.top .title h2[data-v-d2467e82]:before{content:"";width:3px;height:14px;background:#1890ff;position:absolute;left:11px;top:13px}
\ No newline at end of file
.w180[data-v-e02c6b50]{width:180px}.w90[data-v-e02c6b50]{width:90px}.content[data-v-e02c6b50]{margin-top:26px}.content .send_sms[data-v-e02c6b50]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-e02c6b50]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-e02c6b50]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}.bottom.bottom[data-v-d2467e82],.top.bottom[data-v-d2467e82]{margin-top:30px}.bottom .title[data-v-d2467e82],.top .title[data-v-d2467e82]{background:#f7f8fa}.bottom .title h2[data-v-d2467e82],.top .title h2[data-v-d2467e82]{padding-left:22px;font-size:14px;font-weight:600;color:#303133;height:40px;line-height:40px;position:relative}.bottom .title h2[data-v-d2467e82]:before,.top .title h2[data-v-d2467e82]:before{content:"";width:3px;height:14px;background:#1890ff;position:absolute;left:11px;top:13px}
\ No newline at end of file
.w180[data-v-2e39c34c]{width:180px}.w90[data-v-2e39c34c]{width:90px}.content[data-v-2e39c34c]{margin-top:26px}.content .send_sms[data-v-2e39c34c]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-2e39c34c]{font-size:14px;color:#606266;line-height:20px}.tip[data-v-2e39c34c],.tips[data-v-2e39c34c]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}.tip.tip[data-v-2e39c34c],.tips.tip[data-v-2e39c34c]{margin-left:0}
\ No newline at end of file
.w148[data-v-aa5d6232]{width:148px}.top[data-v-aa5d6232]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.icon[data-v-aa5d6232]{color:#2f54eb;margin-left:6px}.choose_tip[data-v-aa5d6232]{margin-left:10px}
\ No newline at end of file
.w180[data-v-e02c6b50]{width:180px}.w90[data-v-e02c6b50]{width:90px}.content[data-v-e02c6b50]{margin-top:26px}.content .send_sms[data-v-e02c6b50]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-e02c6b50]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-e02c6b50]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}
\ No newline at end of file
i[data-v-0e49dd11]{margin-left:5px;font-size:13px;color:#909399}.tip-popover[data-v-0e49dd11]{max-width:400px;color:#fff}.w148[data-v-38b7165e]{width:148px}.top[data-v-38b7165e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.icon[data-v-38b7165e]{color:#2f54eb;margin-left:6px}.choose_tip[data-v-38b7165e]{margin-left:10px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/gic-marketing-operation/favicon2.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index.css><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.68.css><title>实施运维</title><link href=/gic-marketing-operation/css/chunk-3c8e61f9.91919a21.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-6f23b302.9047e57f.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-8916006a.f206fe9a.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-b7c8f616.db8bd264.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0456e508.77db1453.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3c8e61f9.5c74978c.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-69e3f14c.25e98613.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-6f23b302.cd68b1ca.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-74ea1fe8.d7bb983d.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-8916006a.0a461d03.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-b7c8f616.730c49e5.js rel=prefetch><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=preload as=style><link href=/gic-marketing-operation/js/app.f379be0e.js rel=preload as=script><link href=/gic-marketing-operation/js/chunk-vendors.539762da.js rel=preload as=script><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/step.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=/gic-marketing-operation/js/chunk-vendors.539762da.js></script><script src=/gic-marketing-operation/js/app.f379be0e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/gic-marketing-operation/favicon2.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index.css><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.68.css><title>实施运维</title><link href=/gic-marketing-operation/css/chunk-3c8e61f9.91919a21.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-4214ed74.7f71813f.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-70148dc4.46ae99b6.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-ffe3134c.e10ebadf.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0456e508.77db1453.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3c8e61f9.5c74978c.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-4214ed74.a9418c60.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-69e3f14c.25e98613.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-70148dc4.89e29fd9.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-74ea1fe8.d7bb983d.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-ffe3134c.d377bcc2.js rel=prefetch><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=preload as=style><link href=/gic-marketing-operation/js/app.bc9d7aba.js rel=preload as=script><link href=/gic-marketing-operation/js/chunk-vendors.539762da.js rel=preload as=script><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/step.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=/gic-marketing-operation/js/chunk-vendors.539762da.js></script><script src=/gic-marketing-operation/js/app.bc9d7aba.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4214ed74"],{"0cc1":function(e,t,n){},"24ca":function(e,t,n){"use strict";n("0cc1")},"80f9":function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"短信签名ID",prop:"smsSignId"}},[n("el-input",{staticClass:"w180",attrs:{disabled:e.disabledSmsSignId},model:{value:e.form.smsSignId,callback:function(t){e.$set(e.form,"smsSignId",t)},expression:"form.smsSignId"}}),n("p",{staticClass:"mt10 tip"},[e._v("保存后不可编辑,请谨慎填写;如需变更,请提交数据工单处理")])],1),n("el-form-item",{attrs:{label:"短信签名",prop:"smsSignText"}},[n("el-input",{staticClass:"w180",attrs:{disabled:e.disabledSignText},model:{value:e.form.smsSignText,callback:function(t){e.$set(e.form,"smsSignText",t)},expression:"form.smsSignText"}}),n("p",{staticClass:"mt10 tip"},[e._v("保存后不可编辑,请谨慎填写;如需变更,请提交数据工单处理")])],1),n("el-form-item",{attrs:{label:"签名应用通道",prop:"channelSignList"}},[n("el-checkbox-group",{model:{value:e.form.channelSignList,callback:function(t){e.$set(e.form,"channelSignList",t)},expression:"form.channelSignList"}},e._l(e.channelList,(function(t){return n("el-checkbox",{key:t.channelId,attrs:{label:t.channelId,disabled:e.disabledCheckBox.includes(t.channelId)}},[e._v(e._s(t.channelName))])})),1),n("p",{staticClass:"mt10 tip"},[e._v("请完善短信通道的短信签名后再勾选")])],1),n("el-form-item",{attrs:{label:"短信模板数量",prop:"maxTemplateCount"}},[n("el-input-number",{staticClass:"w90",attrs:{"controls-position":"right",min:e.form.useTemplateCount},model:{value:e.form.maxTemplateCount,callback:function(t){e.$set(e.form,"maxTemplateCount",t)},expression:"form.maxTemplateCount"}}),n("p",{staticClass:"mt10 tip"},[e._v("该商户最多可创建的短信模板数量")])],1),n("el-form-item",{attrs:{label:"短信发送优先级",prop:"sendSmsType"}},[n("el-radio-group",{model:{value:e.form.sendSmsType,callback:function(t){e.$set(e.form,"sendSmsType",t)},expression:"form.sendSmsType"}},[n("p",{staticClass:"send_sms"},[n("el-radio",{attrs:{label:0}},[e._v("多通道")]),n("span",{staticClass:"channels"},[e._v(e._s(e.channelSortRes))])],1),n("el-radio",{attrs:{label:1}},[e._v("\n 指定通道\n "),e.form.sendSmsType?n("el-radio-group",{staticClass:"ml20",staticStyle:{"vertical-align":"top"},model:{value:e.form.appointChannel,callback:function(t){e.$set(e.form,"appointChannel",t)},expression:"form.appointChannel"}},e._l(e.channelList,(function(t){return n("el-radio",{key:t.channelId,attrs:{label:t.channelId}},[e._v(e._s(t.channelName))])})),1):e._e()],1)],1),n("p",{staticClass:"mt10 tip"},[e._v("商户选择多通道后,系统会优先使用高优先级的通道进行发送,若短信提交失败,则换用低优先级的通道,直到所有通道都尝试过。(应用场景:短信营销,智能营销,观云台,会员小程序验证码)")]),n("p",{staticClass:"mt10 tip"},[e._v("商户选择指定通道后,只会通过该通道发送。")])],1),n("el-form-item",{attrs:{label:"短信AppID",prop:"smsAppid"}},[n("span",[e._v(e._s(e.form.smsAppid))]),n("p",{staticClass:"mt10 tip"},[e._v("短信AppID由系统自动匹配")])]),n("el-form-item",{attrs:{label:""}},[n("el-button",{staticStyle:{"margin-top":"30px"},attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)],1)],1)},a=[],i=(n("7514"),n("6b54"),n("ac6a"),n("28a5"),n("96cf"),n("1da1")),r=n("c356"),l=r["a"].getAllChannel,o=r["a"].getSmsSetting,c=r["a"].updateSms,m=r["a"].getAppid,u={data:function(){var e=this,t=function(t,n,s){1!==n||e.form.appointChannel||s(new Error("请选择指定通道")),s()};return{isEcho:!1,channelList:[],disabledCheckBox:[],disabledSignText:!1,disabledSmsSignId:!1,form:{enterpriseSmsSettingId:"",enterpriseId:"",smsSignId:"",smsSignText:"",channelSignList:[],maxTemplateCount:0,useTemplateCount:0,sendSmsType:0,appointChannel:null,smsAppid:"",channelSort:"",channelSortRes:""},rules:{smsSignId:{required:!0,message:"请输入签名Id",trigger:"blur"},smsSignText:{required:!0,message:"请输入短信签名",trigger:"blur"},channelSignList:{required:!0,message:"请选择签名应用通道",trigger:"blur"},maxTemplateCount:{required:!0,message:"请输短信模板数量",trigger:"blur"},sendSmsType:{validator:t,trigger:"change"}}}},created:function(){this.getChannelList()},methods:{getDetail:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o({enterpriseId:this.$route.query.id});case 2:t=e.sent,t=t.result||{},e.t0=regeneratorRuntime.keys(t);case 5:if((e.t1=e.t0()).done){e.next=22;break}if(n=e.t1.value,!this.form.hasOwnProperty(n)){e.next=20;break}if(this.form[n]=t[n]||this.form[n],"channelSignList"==n&&"string"==typeof this.form[n]&&(this.form[n]=this.form[n].split(",").map((function(e){return+e})),this.disabledCheckBox=this.form[n]),"sendSmsType"==n&&0!=this.form[n]?(this.form["appointChannel"]=this.form[n],this.form[n]=1,this.$emit("getTableChannelType",this.form["appointChannel"])):"sendSmsType"==n&&0==this.form[n]&&this.$emit("getTableChannelType",0),"smsAppid"!=n||this.form[n]){e.next=17;break}return e.next=14,m();case 14:s=e.sent,a=s.result,this.form[n]=a;case 17:"channelSort"==n&&this.form[n]&&(this.channelSortRes=this.channelSort(this.form[n])),"smsSignId"==n&&this.form[n]?this.disabledSmsSignId=!0:"smsSignId"!=n||this.form[n]||(this.disabledSmsSignId=!1),"smsSignText"==n&&this.form[n]?this.disabledSignText=!0:"smsSignText"!=n||this.form[n]||(this.disabledSignText=!1);case 20:e.next=5;break;case 22:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChannelList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:t=e.sent,n=t.result,this.channelList=n||[],this.getDetail();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=13;break}return s=Object.assign({},e.form),1==s.sendSmsType&&(s.sendSmsType=s.appointChannel),s.channelSignList=s.channelSignList.toString(),delete s.appointChannel,delete s.channelSort,delete s.channelSortRes,delete s.useTemplateCount,t.next=10,c(s);case 10:delete t.sent,e.$message.success("保存成功"),e.getDetail();case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},channelSort:function(e){var t=this,n=e.split(","),s=n.map((function(e){var n=t.channelList.find((function(t){return t.channelId==e}));return n?n.channelName:null})).filter((function(e){return!!e}));return s.join(" > ")}}},p=u,d=(n("fef9"),n("2877")),f=Object(d["a"])(p,s,a,!1,null,"2e39c34c",null);t["default"]=f.exports},b9d0:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container right_content"},[n("div",{staticClass:"top"},[e._m(0),n("detail-form",{on:{getTableChannelType:function(t){return e.tableChannelType=t}}})],1),n("div",{staticClass:"bottom"},[e._m(1),n("detail-table",{attrs:{"table-channel-type":e.tableChannelType}})],1)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("h2",[e._v("基本信息")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title mb20"},[n("h2",[e._v("短信模板列表")])])}],i=n("80f9"),r=n("1f3d"),l={components:{detailForm:i["default"],detailTable:r["default"]},data:function(){return{tableChannelType:null}}},o=l,c=(n("24ca"),n("2877")),m=Object(c["a"])(o,s,a,!1,null,"d2467e82",null);t["default"]=m.exports},cab0:function(e,t,n){},fef9:function(e,t,n){"use strict";n("cab0")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f23b302"],{"0cc1":function(e,t,n){},"24ca":function(e,t,n){"use strict";n("0cc1")},3609:function(e,t,n){},"4a75":function(e,t,n){"use strict";n("3609")},"80f9":function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"短信签名ID",prop:"smsSignId"}},[n("el-input",{staticClass:"w180",attrs:{disabled:""},model:{value:e.form.smsSignId,callback:function(t){e.$set(e.form,"smsSignId",t)},expression:"form.smsSignId"}})],1),n("el-form-item",{attrs:{label:"短信签名",prop:"smsSignText"}},[n("el-input",{staticClass:"w180",attrs:{disabled:""},model:{value:e.form.smsSignText,callback:function(t){e.$set(e.form,"smsSignText",t)},expression:"form.smsSignText"}})],1),n("el-form-item",{attrs:{label:"签名应用通道",prop:"channelSignList"}},[n("el-checkbox-group",{model:{value:e.form.channelSignList,callback:function(t){e.$set(e.form,"channelSignList",t)},expression:"form.channelSignList"}},e._l(e.channelList,(function(t){return n("el-checkbox",{key:t.channelId,attrs:{label:t.channelId,disabled:e.disabledCheckBox.includes(t.channelId)}},[e._v(e._s(t.channelName))])})),1)],1),n("el-form-item",{attrs:{label:"短信模板数量",prop:"maxTemplateCount"}},[n("el-input-number",{staticClass:"w90",attrs:{"controls-position":"right",min:e.form.useTemplateCount},model:{value:e.form.maxTemplateCount,callback:function(t){e.$set(e.form,"maxTemplateCount",t)},expression:"form.maxTemplateCount"}}),n("span",{staticClass:"tips"},[e._v("该商户在商户后台看到的短信模板数量")])],1),n("el-form-item",{attrs:{label:"短信发送优先级",prop:"sendSmsType"}},[n("el-radio-group",{model:{value:e.form.sendSmsType,callback:function(t){e.$set(e.form,"sendSmsType",t)},expression:"form.sendSmsType"}},[n("p",{staticClass:"send_sms"},[n("el-radio",{attrs:{label:0}},[e._v("多通道")]),n("span",{staticClass:"channels"},[e._v(e._s(e.channelSortRes))])],1),n("el-radio",{attrs:{label:1}},[e._v("\n 指定通道\n "),e.form.sendSmsType?n("el-radio-group",{staticClass:"ml20",staticStyle:{"vertical-align":"top"},model:{value:e.form.appointChannel,callback:function(t){e.$set(e.form,"appointChannel",t)},expression:"form.appointChannel"}},e._l(e.channelList,(function(t){return n("el-radio",{key:t.channelId,attrs:{label:t.channelId}},[e._v(e._s(t.channelName))])})),1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"短信AppID",prop:"smsAppid"}},[e._v("\n "+e._s(e.form.smsAppid)+"\n ")]),n("el-form-item",{attrs:{label:""}},[n("el-button",{staticStyle:{"margin-top":"30px"},attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)],1)],1)},a=[],r=(n("7514"),n("6b54"),n("ac6a"),n("28a5"),n("96cf"),n("1da1")),i=n("c356"),l=i["a"].getAllChannel,o=i["a"].getSmsSetting,c=i["a"].updateSms,m=i["a"].getAppid,u={data:function(){var e=this,t=function(t,n,s){1!==n||e.form.appointChannel||s(new Error("请选择指定通道")),s()};return{channelList:[],disabledCheckBox:[],form:{enterpriseSmsSettingId:"",enterpriseId:"",smsSignId:"",smsSignText:"",channelSignList:[],maxTemplateCount:0,useTemplateCount:0,sendSmsType:0,appointChannel:null,smsAppid:"",channelSort:"",channelSortRes:""},rules:{smsSignId:{required:!0,message:"请输入签名Id",trigger:"blur"},smsSignText:{required:!0,message:"请输入短信签名",trigger:"blur"},channelSignList:{required:!0,message:"请选择签名应用通道",trigger:"blur"},maxTemplateCount:{required:!0,message:"请输短信模板数量",trigger:"blur"},sendSmsType:{validator:t,trigger:"change"}}}},created:function(){this.getChannelList()},methods:{getDetail:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o({enterpriseId:this.$route.query.id});case 2:t=e.sent,t=t.result||{},e.t0=regeneratorRuntime.keys(t);case 5:if((e.t1=e.t0()).done){e.next=20;break}if(n=e.t1.value,!this.form.hasOwnProperty(n)){e.next=18;break}if(this.form[n]=t[n]||this.form[n],"channelSignList"==n&&"string"==typeof this.form[n]&&(this.form[n]=this.form[n].split(",").map((function(e){return+e})),this.disabledCheckBox=this.form[n]),"sendSmsType"==n&&0!=this.form[n]?(this.form["appointChannel"]=this.form[n],this.form[n]=1,this.$emit("getTableChannelType",this.form["appointChannel"])):"sendSmsType"==n&&0==this.form[n]&&this.$emit("getTableChannelType",0),"smsAppid"!=n||this.form[n]){e.next=17;break}return e.next=14,m();case 14:s=e.sent,a=s.result,this.form[n]=a;case 17:"channelSort"==n&&this.form[n]&&(this.channelSortRes=this.channelSort(this.form[n]));case 18:e.next=5;break;case 20:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChannelList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:t=e.sent,n=t.result,this.channelList=n||[],this.getDetail();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=13;break}return s=Object.assign({},e.form),1==s.sendSmsType&&(s.sendSmsType=s.appointChannel),s.channelSignList=s.channelSignList.toString(),delete s.appointChannel,delete s.channelSort,delete s.channelSortRes,delete s.useTemplateCount,t.next=10,c(s);case 10:delete t.sent,e.$message.success("保存成功"),e.getDetail();case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},channelSort:function(e){var t=this,n=e.split(","),s=n.map((function(e){var n=t.channelList.find((function(t){return t.channelId==e}));return n?n.channelName:null})).filter((function(e){return!!e}));return s.join(" > ")}}},p=u,f=(n("4a75"),n("2877")),h=Object(f["a"])(p,s,a,!1,null,"e02c6b50",null);t["default"]=h.exports},b9d0:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container right_content"},[n("div",{staticClass:"top"},[e._m(0),n("detail-form",{on:{getTableChannelType:function(t){return e.tableChannelType=t}}})],1),n("div",{staticClass:"bottom"},[e._m(1),n("detail-table",{attrs:{"table-channel-type":e.tableChannelType}})],1)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("h2",[e._v("基本信息")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title mb20"},[n("h2",[e._v("短信模板列表")])])}],r=n("80f9"),i=n("1f3d"),l={components:{detailForm:r["default"],detailTable:i["default"]},data:function(){return{tableChannelType:null}}},o=l,c=(n("24ca"),n("2877")),m=Object(c["a"])(o,s,a,!1,null,"d2467e82",null);t["default"]=m.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment