(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4853e7a5"],{"0d71":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"e",(function(){return c})),i.d(t,"f",(function(){return o}));var a=i("f175");const s=e=>a.a.get("/notice.notice/settingLists",{params:e}),l=e=>a.a.get("/notice.notice/detail",{params:e}),n=e=>a.a.post("/notice.notice/set",e),r=()=>a.a.get("/notice.sms_config/getConfig"),c=e=>a.a.get("/notice.sms_config/detail",{params:e}),o=e=>a.a.post("/notice.sms_config/setConfig",e)},"2a58":function(e,t,i){"use strict";i.r(t);var a=i("9ab4"),s=i("1b40"),l=i("0d71");let n=class extends s.e{constructor(){super(...arguments),this.type=1,this.detail={name:"",app_key:"",status:1,sign:"",secret_id:"",app_id:"",secret_key:""}}onSubmit(){Object(l.f)({...this.detail,type:this.type}).then(e=>{this.$router.go(-1),this.$message.success("保存成功!")}).catch(()=>{this.$message.error("数据请求失败，刷新重载!")})}getNoticeDetail(){Object(l.e)({type:this.type}).then(e=>{"dxb"==this.type&&(e.name="短信宝"),e.status=parseInt(e.status),this.detail=e}).catch(()=>{})}created(){this.type=this.$route.query.id,this.type&&this.getNoticeDetail()}};n=Object(a.a)([s.a],n);var r=n,c=i("2877"),o=Object(c.a)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sms_edit p-b-60"},[i("div",{staticClass:"ls-card"},[i("el-page-header",{attrs:{content:"短信设置"},on:{back:function(t){return e.$router.go(-1)}}})],1),i("div",{staticClass:"ls-card m-t-24"},[i("el-form",{ref:"form",attrs:{"label-width":"135px"}},[i("el-form-item",{attrs:{label:"短信渠道"}},[e._v(" "+e._s(e.detail.name)+" ")]),i("el-form-item",{attrs:{label:"开启状态",required:""}},[i("el-radio",{attrs:{label:0},model:{value:e.detail.status,callback:function(t){e.$set(e.detail,"status",t)},expression:"detail.status"}},[e._v("关闭")]),i("el-radio",{attrs:{label:1},model:{value:e.detail.status,callback:function(t){e.$set(e.detail,"status",t)},expression:"detail.status"}},[e._v("开启")])],1),i("el-form-item",{attrs:{label:"短信签名",size:"mini",required:""}},[i("el-input",{model:{value:e.detail.sign,callback:function(t){e.$set(e.detail,"sign",t)},expression:"detail.sign"}})],1),"tencent"==e.type?i("el-form-item",{attrs:{label:"APP_ID",size:"mini",required:""}},[i("el-input",{model:{value:e.detail.app_id,callback:function(t){e.$set(e.detail,"app_id",t)},expression:"detail.app_id"}})],1):e._e(),"ali"==e.type?i("el-form-item",{attrs:{label:"APP_KEY",size:"mini",required:""}},[i("el-input",{model:{value:e.detail.app_key,callback:function(t){e.$set(e.detail,"app_key",t)},expression:"detail.app_key"}})],1):e._e(),"tencent"==e.type?i("el-form-item",{attrs:{label:"SECRET_ID",size:"mini",required:""}},[i("el-input",{model:{value:e.detail.secret_id,callback:function(t){e.$set(e.detail,"secret_id",t)},expression:"detail.secret_id"}})],1):e._e(),i("el-form-item",{attrs:{label:"SECRET_KEY",size:"mini",required:""}},[i("el-input",{model:{value:e.detail.secret_key,callback:function(t){e.$set(e.detail,"secret_key",t)},expression:"detail.secret_key"}})],1)],1)],1),i("div",{staticClass:"bg-white flex row-center ls-fixed-footer"},[i("div",{staticClass:"row-center flex"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.onSubmit("form")}}},[e._v("保存")])],1)])])}),[],!1,null,"12306559",null);t.default=o.exports}}]);