(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-427690f4"],{"0971":function(t,e,s){"use strict";s.r(e);var n=s("9ab4"),i=s("1b40"),a=s("0d71"),c=s("b6c4");let r=class extends i.e{constructor(){super(...arguments),this.smsData=[],this.hasSmsPlugin=!1}getSmsList(){Object(a.d)().then(t=>{try{t.dxb={},t.dxb.name="短信宝";var e=null;e=this.hasSmsPlugin?[{...t.ali},{...t.tencent},{...t.dxb}]:[{...t.ali},{...t.tencent}],this.smsData=e}catch(t){}}).catch(()=>{this.$message.error("数据请求失败，刷新重载!")})}getHasSmsPlugin(){Object(c.h)().then(t=>{Array.isArray(t.plugin_list)&&-1!=t.plugin_list.indexOf("dxb")?this.hasSmsPlugin=!0:this.hasSmsPlugin=!1})}goSetting(t){var e="";e=0==t?"ali":1==t?"tencent":"dxb",this.$router.push({path:"/setting/sms/sms_edit",query:{id:e}})}created(){this.getSmsList(),this.getHasSmsPlugin()}};r=Object(n.a)([i.a],r);var l=r,u=s("2877"),o=Object(u.a)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sms"},[s("div",{staticClass:"ls-card"},[s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.smsData,size:"mini"}},[s("el-table-column",{attrs:{prop:"name",label:"短信通道","min-width":"180"}}),s("el-table-column",{attrs:{label:"状态","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-tag",{attrs:{type:0==e.row.status?"danger":"success",effect:"plain"}},[t._v(" "+t._s(0==e.row.status?"关闭":"启用")+" ")])]}}])}),s("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(s){return t.goSetting(e.$index)}}},[t._v("设置 ")])]}}])})],1)],1)])}),[],!1,null,"f7fcc182",null);e.default=o.exports},"0d71":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return c})),s.d(e,"d",(function(){return r})),s.d(e,"e",(function(){return l})),s.d(e,"f",(function(){return u}));var n=s("f175");const i=t=>n.a.get("/notice.notice/settingLists",{params:t}),a=t=>n.a.get("/notice.notice/detail",{params:t}),c=t=>n.a.post("/notice.notice/set",t),r=()=>n.a.get("/notice.sms_config/getConfig"),l=t=>n.a.get("/notice.sms_config/detail",{params:t}),u=t=>n.a.post("/notice.sms_config/setConfig",t)}}]);