chunk-bffa9478.575cfc1b.js 3.2 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bffa9478"],{"0d71":function(t,e,s){"use strict";s.d(e,"a",(function(){return a})),s.d(e,"b",(function(){return i})),s.d(e,"c",(function(){return o})),s.d(e,"d",(function(){return c})),s.d(e,"e",(function(){return r})),s.d(e,"f",(function(){return l}));var n=s("f175");const a=t=>n.a.get("/notice.notice/settingLists",{params:t}),i=t=>n.a.get("/notice.notice/detail",{params:t}),o=t=>n.a.post("/notice.notice/set",t),c=()=>n.a.get("/notice.sms_config/getConfig"),r=t=>n.a.get("/notice.sms_config/detail",{params:t}),l=t=>n.a.post("/notice.sms_config/setConfig",t)},"98e9":function(t,e,s){"use strict";s.r(e);s("14d9");var n=s("9ab4"),a=s("1b40"),i=s("0d71"),o=s("6ddb"),c=s("3c50");let r=class extends a.e{constructor(){super(...arguments),this.pager=new o.a}getNoticeList(){this.pager.request({callback:i.a,params:{recipient:1,type:1}}).catch(()=>{this.$message.error("数据请求失败,刷新重载!")})}goSetting(t){this.$router.push({path:"/sms/buyers/setting",query:{id:t.id}})}created(){this.getNoticeList()}};r=Object(n.a)([Object(a.a)({components:{LsPagination:c.a}})],r);var l=r,u=s("2877"),d=Object(u.a)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"buyers"},[s("div",{staticClass:"ls-card"},[s("div",{staticClass:"m-t-24"},[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[s("el-table-column",{attrs:{prop:"scene_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.system_notice.status?"danger":"success",effect:"plain"}},[t._v(" "+t._s(0==e.row.system_notice.status?"关闭":"启用")+" ")])]}}])}),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.sms_notice.status?"danger":"success",effect:"plain"}},[t._v(" "+t._s(0==e.row.sms_notice.status?"关闭":"启用")+" ")])]}}])}),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.oa_notice.status?"danger":"success",effect:"plain"}},[t._v(" "+t._s(0==e.row.oa_notice.status?"关闭":"启用")+" ")])]}}])}),s("el-table-column",{attrs:{prop:"login_time",label:"微信小程序","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-tag",{attrs:{type:0==e.row.mnp_notice.status?"danger":"success",effect:"plain"}},[t._v(" "+t._s(0==e.row.mnp_notice.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.row)}}},[t._v("设置 ")])]}}])})],1),s("div",{staticClass:"m-t-24 pagination"},[s("ls-pagination",{on:{change:t.getNoticeList},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)])])}),[],!1,null,"08b49ba8",null);e.default=d.exports}}]);