Commit b0e4205e by liuchenxi

update: build

parent b885ab95
.w180[data-v-151523de]{width:180px}.w90[data-v-151523de]{width:90px}.content[data-v-151523de]{margin-top:26px}.content .send_sms[data-v-151523de]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-151523de]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-151523de]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}
\ No newline at end of file
.w180[data-v-7f8e9bba]{width:180px}.w90[data-v-7f8e9bba]{width:90px}.content[data-v-7f8e9bba]{margin-top:26px}.content .send_sms[data-v-7f8e9bba]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-7f8e9bba]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-7f8e9bba]{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-151523de]{width:180px}.w90[data-v-151523de]{width:90px}.content[data-v-151523de]{margin-top:26px}.content .send_sms[data-v-151523de]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-151523de]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-151523de]{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-7f8e9bba]{width:180px}.w90[data-v-7f8e9bba]{width:90px}.content[data-v-7f8e9bba]{margin-top:26px}.content .send_sms[data-v-7f8e9bba]{height:32px;margin-bottom:28px;padding-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.content .channels[data-v-7f8e9bba]{font-size:14px;color:#606266;line-height:20px}.tips[data-v-7f8e9bba]{margin-left:14px;font-size:12px;color:#909399;line-height:17px}
\ 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-3e306e81.738e1eb1.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-75293cbc.bc0d108f.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-7a6f5131.75319be5.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0456e508.a3519880.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3c8e61f9.5c74978c.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3e306e81.a2950c1e.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-69e3f14c.25e98613.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-74ea1fe8.d7bb983d.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-75293cbc.e0604f18.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7a6f5131.01c96678.js rel=prefetch><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=preload as=style><link href=/gic-marketing-operation/js/app.00d1c694.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.00d1c694.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-15ca9472.46a627c9.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-25030db7.e4398c1a.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-3c8e61f9.91919a21.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-7a6f5131.75319be5.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0456e508.a3519880.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-15ca9472.4e7834f1.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-25030db7.382785b7.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-74ea1fe8.d7bb983d.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7a6f5131.01c96678.js rel=prefetch><link href=/gic-marketing-operation/css/app.3ed4aba6.css rel=preload as=style><link href=/gic-marketing-operation/js/app.92b8efde.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.92b8efde.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25030db7"],{"0cc1":function(e,t,n){},"24ca":function(e,t,n){"use strict";n("0cc1")},"2f21":function(e,t,n){"use strict";var a=n("79e5");e.exports=function(e,t){return!!e&&a((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"55dd":function(e,t,n){"use strict";var a=n("5ca1"),s=n("d8e8"),r=n("4bf8"),i=n("79e5"),l=[].sort,o=[1,2,3];a(a.P+a.F*(i((function(){o.sort(void 0)}))||!i((function(){o.sort(null)}))||!n("2f21")(l)),"Array",{sort:function(e){return void 0===e?l.call(r(this)):l.call(r(this),s(e))}})},"80f9":function(e,t,n){"use strict";n.r(t);var a=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",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",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.limitTemplateCount},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.channelSort))])],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)},s=[],r=(n("55dd"),n("2909")),i=(n("6b54"),n("ac6a"),n("28a5"),n("96cf"),n("1da1")),l=n("c356"),o=l["a"].getAllChannel,c=l["a"].getSmsSetting,m=l["a"].updateSms,u=l["a"].getAppid,f={data:function(){var e=this,t=function(t,n,a){1!==n||e.form.appointChannel||a(new Error("请选择指定通道")),a()};return{channelList:[],disabledCheckBox:[],form:{enterpriseSmsSettingId:"",enterpriseId:"",smsSignId:"",smsSignText:"",channelSignList:[],maxTemplateCount:0,limitTemplateCount:0,sendSmsType:0,appointChannel:null,smsAppid:""},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(),this.getDetail()},methods:{getDetail:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c({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=23;break}if(n=e.t1.value,!this.form.hasOwnProperty(n)){e.next=21;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]),"maxTemplateCount"==n&&(this.form["limitTemplateCount"]=this.form[n]||0),"sendSmsType"==n&&0!=this.form[n]&&(this.form["appointChannel"]=this.form[n],this.form[n]=1),"smsAppid"!=n||this.form[n]){e.next=20;break}return e.next=17,u();case 17:a=e.sent,s=a.result,this.form[n]=s;case 20:case 21:e.next=5;break;case 23: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,o();case 2:t=e.sent,n=t.result,this.channelList=n||[];case 5: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 a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=9;break}return a=Object.assign({},e.form),1==a.sendSmsType&&(a.sendSmsType=a.appointChannel),a.channelSignList=a.channelSignList.toString(),delete a.appointChannel,delete a.limitTemplateCount,t.next=8,m(a);case 8:e.$message.success("保存成功");case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},computed:{channelSort:function(){var e="",t=Object(r["a"])(this.channelList);return t.sort((function(e,t){return t-e})).forEach((function(t,n,a){e+=(n>0?" > ":"")+t.channelName})),e}},watch:{"form.sendSmsType":{handler:function(e){0==e&&this.$emit("getTableChannelType",e)},immediate:!0},"form.appointChannel":{handler:function(e){this.$emit("getTableChannelType",e)}}}},p=f,d=(n("9f92"),n("2877")),h=Object(d["a"])(p,a,s,!1,null,"151523de",null);t["default"]=h.exports},"9f92":function(e,t,n){"use strict";n("d097")},b9d0:function(e,t,n){"use strict";n.r(t);var a=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)])},s=[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,a,s,!1,null,"d2467e82",null);t["default"]=m.exports},d097:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e306e81"],{"0cc1":function(e,t,n){},"13cc":function(e,t,n){},"24ca":function(e,t,n){"use strict";n("0cc1")},"2f21":function(e,t,n){"use strict";var a=n("79e5");e.exports=function(e,t){return!!e&&a((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"55dd":function(e,t,n){"use strict";var a=n("5ca1"),r=n("d8e8"),s=n("4bf8"),i=n("79e5"),l=[].sort,o=[1,2,3];a(a.P+a.F*(i((function(){o.sort(void 0)}))||!i((function(){o.sort(null)}))||!n("2f21")(l)),"Array",{sort:function(e){return void 0===e?l.call(s(this)):l.call(s(this),r(e))}})},"80f9":function(e,t,n){"use strict";n.r(t);var a=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",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",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}},[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.limitTemplateCount},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.channelSort))])],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)},r=[],s=(n("55dd"),n("2909")),i=(n("6b54"),n("ac6a"),n("28a5"),n("96cf"),n("1da1")),l=n("c356"),o=l["a"].getAllChannel,c=l["a"].getSmsSetting,m=l["a"].updateSms,u=l["a"].getAppid,p={data:function(){var e=this,t=function(t,n,a){1!==n||e.form.appointChannel||a(new Error("请选择指定通道")),a()};return{channelList:[],form:{enterpriseSmsSettingId:"",enterpriseId:"",smsSignId:"",smsSignText:"",channelSignList:[],maxTemplateCount:0,limitTemplateCount:0,sendSmsType:0,appointChannel:null,smsAppid:""},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(),this.getDetail()},methods:{getDetail:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c({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&&this.form[n]&&(this.form[n]=this.form[n].split(",").map((function(e){return+e}))),"maxTemplateCount"==n&&(this.form["limitTemplateCount"]=this.form[n]||0),"sendSmsType"==n&&0!=this.form[n]&&(this.form["appointChannel"]=this.form[n],this.form[n]=1),"smsAppid"!=n||this.form[n]){e.next=19;break}return e.next=16,u();case 16:a=e.sent,r=a.result,this.form[n]=r;case 19: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,o();case 2:t=e.sent,n=t.result,this.channelList=n||[];case 5: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 a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=9;break}return a=Object.assign({},e.form),1==a.sendSmsType&&(a.sendSmsType=a.appointChannel),a.channelSignList=a.channelSignList.toString(),delete a.appointChannel,delete a.limitTemplateCount,t.next=8,m(a);case 8:e.$message.success("保存成功");case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},computed:{channelSort:function(){var e="",t=Object(s["a"])(this.channelList);return t.sort((function(e,t){return t-e})).forEach((function(t,n,a){e+=(n>0?" > ":"")+t.channelName})),e}},watch:{"form.sendSmsType":{handler:function(e){0==e&&this.$emit("getTableChannelType",e)},immediate:!0},"form.appointChannel":{handler:function(e){this.$emit("getTableChannelType",e)}}}},f=p,h=(n("d49e"),n("2877")),d=Object(h["a"])(f,a,r,!1,null,"7f8e9bba",null);t["default"]=d.exports},b9d0:function(e,t,n){"use strict";n.r(t);var a=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)])},r=[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("短信模板列表")])])}],s=n("80f9"),i=n("1f3d"),l={components:{detailForm:s["default"],detailTable:i["default"]},data:function(){return{tableChannelType:null}}},o=l,c=(n("24ca"),n("2877")),m=Object(c["a"])(o,a,r,!1,null,"d2467e82",null);t["default"]=m.exports},d49e:function(e,t,n){"use strict";n("13cc")}}]);
\ 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