chunk-ee109ea0.e2b018b9.js 4.7 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ee109ea0"],{6962:function(t,e,a){"use strict";a.r(e);a("14d9");var l=a("9ab4"),i=a("1b40"),s=a("f7b7"),n=a("4201"),r=a("6ddb"),c=a("0a6d"),o=a("3c50");let p=class extends i.e{constructor(){super(...arguments),this.pager=new r.a,this.reply_type="2"}getMpWeChatReplyLists(){this.pager.request({callback:s.j,params:{reply_type:this.reply_type}}).catch(()=>{this.$message.error("数据请求失败,刷新重载!")})}onReplyAdd(){this.$router.push({path:"/channel/mp_wechat/reply/reply_edit",query:{mode:n.g.ADD,replyType:this.reply_type}})}onReplyEdit(t){this.$router.push({path:"/channel/mp_wechat/reply/reply_edit",query:{mode:n.g.EDIT,id:t.id,replyType:this.reply_type}})}putMpWeChatReplyStatus(t){Object(s.k)({id:t.id}).then(()=>{this.getMpWeChatReplyLists()}).catch(()=>{})}onMpWeChatReplyDelete(t){Object(s.g)({id:t.id}).then(()=>{this.getMpWeChatReplyLists(),this.$message.success("删除成功!")}).catch(()=>{this.$message.error("删除失败")})}created(){this.getMpWeChatReplyLists()}};p=Object(l.a)([Object(i.a)({components:{LsDialog:c.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:"keyword",label:"关键词","min-width":"100px"}}),e("el-table-column",{attrs:{prop:"matching_type_desc",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:{prop:"sort",label:"排序","min-width":"100px"}}),e("el-table-column",{attrs:{fixed:"right",label:"操作","min-width":"120"},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,"c9ff7ade",null);e.default=f.exports},f7b7:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"e",(function(){return r})),a.d(e,"d",(function(){return c})),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 l=a("f175");const i=()=>l.a.get("/wechat.official_account_setting/getConfig"),s=t=>l.a.post("/wechat.official_account_setting/setConfig",t),n=()=>l.a.get("/wechat.official_account_menu/detail"),r=t=>l.a.post("/wechat.official_account_menu/save",t),c=t=>l.a.post("/wechat.official_account_menu/saveAndPublish",t),o=t=>l.a.post("/wechat.official_account_reply/add",t),p=t=>l.a.post("/wechat.official_account_reply/edit",t),u=t=>l.a.get("/wechat.official_account_reply/detail",{params:t}),d=t=>l.a.post("/wechat.official_account_reply/delete",t),f=t=>l.a.get("/wechat.official_account_reply/lists",{params:t}),h=t=>l.a.post("/wechat.official_account_reply/status",t)}}]);