(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3581a6be"],{"17a3":function(t,e,a){"use strict";a.d(e,"i",(function(){return l})),a.d(e,"k",(function(){return c})),a.d(e,"g",(function(){return r})),a.d(e,"f",(function(){return o})),a.d(e,"h",(function(){return i})),a.d(e,"j",(function(){return u})),a.d(e,"l",(function(){return s})),a.d(e,"d",(function(){return p})),a.d(e,"a",(function(){return d})),a.d(e,"e",(function(){return f})),a.d(e,"c",(function(){return h})),a.d(e,"b",(function(){return _}));var n=a("f175");const l=()=>n.a.get("/wechat.mini_program_setting/getConfig"),c=t=>n.a.post("/wechat.mini_program_setting/setConfig",t),r=t=>n.a.post("/channel.official_account_menu/save",t),o=t=>n.a.get("/channel.official_account_menu/detail",{data:t}),i=t=>n.a.post("/channel.official_account_menu/saveAndPublish",t),u=()=>n.a.get("/channel.official_account_setting/getConfig"),s=t=>n.a.post("/channel.official_account_setting/setConfig",t),p=t=>n.a.get("/channel.official_account_reply/lists",{params:t}),d=t=>n.a.post("/channel.official_account_reply/add",t),f=t=>n.a.post("/channel.official_account_reply/edit",t),h=t=>n.a.get("/channel.official_account_reply/detail",{params:t}),_=t=>n.a.post("/channel.official_account_reply/delete",t)},d1f9:function(t,e,a){"use strict";a.r(e);var n=a("17a3"),l={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:[]}}),methods:{delItem(t){this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(n.b)({id:t}).then(t=>{this.getData(10,this.table.currentPage)})}).catch(()=>{})},jumpEdit(t){this.$router.push({path:"/channel/wechat_app/keyword_talk_edit",query:{id:t}})},handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(n.d)({page_no:e,reply_type:2,page_size:10}).then(t=>{this.table.currentPage=e,this.table.total=t.count,this.table.data=t.lists})},jumpAdd(){this.$router.push({path:"/channel/wechat_app/keyword_talk_add",query:{}})}},mounted(){this.getData(10,1)}},c=a("2877"),r=Object(c.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card m-b-12"},[a("el-alert",{attrs:{title:"温馨提示：1.粉丝在公众号发送内容时，通过关键词可触发关键词回复；2.同时可启用多个关键词回复，有多条关键词匹配时优选选择排序靠前的一条",type:"info","show-icon":"",closable:!1}})],1),a("div",{staticClass:"ls-card m-b-12"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.jumpAdd()}}},[t._v("新增")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"name",label:"规则名称",width:"180"}}),a("el-table-column",{attrs:{prop:"keyword",label:"关键词",width:"180"}}),a("el-table-column",{attrs:{prop:"matching_type",label:"匹配方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(1==e.row.matching_type?"全匹配":e.row.reply_type)+" "+t._s(2==e.row.matching_type?"模糊匹配":e.row.reply_type)+" ")]}}])}),a("el-table-column",{attrs:{prop:"content_type",label:"回复类型",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(1==e.row.content_type?"文本":e.row.content_type)+" ")]}}])}),a("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:"","active-value":1,"inactive-value":0},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{prop:"sort",label:"排序"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.jumpEdit(e.row.id)}}},[t._v("编辑")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){return t.delItem(e.row.id)}}},[t._v("删除")])]}}])})],1),a("el-pagination",{attrs:{"current-page":t.table.currentPage,"page-sizes":t.table.pageSizes,"page-size":10,layout:"total, sizes, prev, pager, next, jumper",total:t.table.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,null,null);e.default=r.exports}}]);