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