| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7e08956f"],{d5f5:function(t,e,a){"use strict";a.r(e);a("14d9");var i=a("9ab4"),l=a("1b40"),n=a("f7b7"),s=a("4201"),c=a("6ddb"),r=a("0a6d"),o=a("3c50");let p=class extends l.e{constructor(){super(...arguments),this.pager=new c.a,this.reply_type="1"}getMpWeChatReplyLists(){this.pager.request({callback:n.j,params:{reply_type:this.reply_type}}).catch(()=>{})}onReplyAdd(){this.$router.push({path:"/channel/mp_wechat/reply/reply_edit",query:{mode:s.g.ADD,replyType:this.reply_type}})}onReplyEdit(t){this.$router.push({path:"/channel/mp_wechat/reply/reply_edit",query:{mode:s.g.EDIT,id:t.id,replyType:this.reply_type}})}putMpWeChatReplyStatus(t){Object(n.k)({id:t.id}).then(()=>{this.getMpWeChatReplyLists()}).catch(()=>{this.$message.error("修改失败")})}onMpWeChatReplyDelete(t){Object(n.g)({id:t.id}).then(()=>{this.getMpWeChatReplyLists()}).catch(()=>{})}created(){this.getMpWeChatReplyLists()}};p=Object(i.a)([Object(l.a)({components:{LsDialog:r.a,LsPagination:o.a}})],p);var u=p,d=a("2877"),f=Object(d.a)(u,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"default-reply"},[e("div",{staticClass:"ls-card"},[e("el-alert",{staticClass:"xxl",attrs:{title:"温馨提示:1.粉丝关注公众号时,会自动发送启用的关注回复;2.同时只能启用一个关注回复。",type:"info",closable:!1,"show-icon":""}})],1),e("div",{staticClass:"ls-user__grade ls-card m-t-20"},[e("div",{staticClass:"list-header"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onReplyAdd()}}},[t._v("新增关注回复")])],1),e("div",{staticClass:"list-table m-t-16"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticStyle:{width:"100%"},attrs:{data:t.pager.lists,"default-sort":{prop:"level",order:"ascending"},"header-cell-style":{background:"#f5f8ff"},size:"mini"}},[e("el-table-column",{attrs:{prop:"name",label:"规则名称","min-width":"100px"}}),e("el-table-column",{attrs:{prop:"content_type_desc",label:"回复类型","min-width":"100px"}}),e("el-table-column",{attrs:{prop:"status",label:"启用状态","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},on:{change:function(e){return t.putMpWeChatReplyStatus(a.row)}},model:{value:a.row.status,callback:function(e){t.$set(a.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{fixed:"right",label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.onReplyEdit(a.row)}}},[t._v("编辑")]),e("ls-dialog",{staticClass:"m-l-10 inline",on:{confirm:function(e){return t.onMpWeChatReplyDelete(a.row)}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("删除")])],1)]}}])})],1)],1),e("div",{staticClass:"flex row-right m-t-16 row-right"},[e("ls-pagination",{on:{change:function(e){return t.getMpWeChatReplyLists()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)])])}),[],!1,null,"20d96e6b",null);e.default=f.exports},f7b7:function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"e",(function(){return c})),a.d(e,"d",(function(){return r})),a.d(e,"f",(function(){return o})),a.d(e,"i",(function(){return p})),a.d(e,"h",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"j",(function(){return f})),a.d(e,"k",(function(){return h}));var i=a("f175");const l=()=>i.a.get("/wechat.official_account_setting/getConfig"),n=t=>i.a.post("/wechat.official_account_setting/setConfig",t),s=()=>i.a.get("/wechat.official_account_menu/detail"),c=t=>i.a.post("/wechat.official_account_menu/save",t),r=t=>i.a.post("/wechat.official_account_menu/saveAndPublish",t),o=t=>i.a.post("/wechat.official_account_reply/add",t),p=t=>i.a.post("/wechat.official_account_reply/edit",t),u=t=>i.a.get("/wechat.official_account_reply/detail",{params:t}),d=t=>i.a.post("/wechat.official_account_reply/delete",t),f=t=>i.a.get("/wechat.official_account_reply/lists",{params:t}),h=t=>i.a.post("/wechat.official_account_reply/status",t)}}]);
|