(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7b7035c4"],{"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 o})),a.d(e,"f",(function(){return i})),a.d(e,"h",(function(){return r})),a.d(e,"j",(function(){return u})),a.d(e,"l",(function(){return s})),a.d(e,"d",(function(){return d})),a.d(e,"a",(function(){return p})),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),o=t=>n.a.post("/channel.official_account_menu/save",t),i=t=>n.a.get("/channel.official_account_menu/detail",{data:t}),r=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),d=t=>n.a.get("/channel.official_account_reply/lists",{params:t}),p=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)},e98a: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/follow_talk_edit",query:{id:t}})},jumpAdd(){this.$router.push("/channel/wechat_app/follow_talk_add")},handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(n.d)({page_no:e,reply_type:1,page_size:10}).then(t=>{this.table.currentPage=e,this.table.total=t.count,this.table.data=t.lists})}},mounted(){this.getData(10,1)}},c=a("2877"),o=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:"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:"content",label:"回复内容"}}),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)],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=o.exports}}]);