(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e20a4188"],{"62c8":function(t,e,a){"use strict";a.r(e);var n=a("ea4a"),s={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null},lines:"",ids:[]}),methods:{delAll(){this.$confirm("此操作将清空所有内容, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(n.d)({}).then(t=>{this.getData(1),this.$message.success("清空完成!")})}).catch(()=>{})},del(){this.$confirm("此操作将删除选择的内容, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{for(var t=[],e=0;e<this.ids.length;e++)t.push(this.ids[e].id);Object(n.c)({ids:t}).then(t=>{this.getData(1),this.$message.success("删除成功!")})}).catch(()=>{})},add(){var t;t=this.lines.split("\n"),Object(n.b)({words:t}).then(t=>{this.getData(1),this.$message.success("增加成功!")})},handleSizeChange(t){},handleCurrentChange(t){this.getData(t)},getData(t){Object(n.e)({page:t}).then(e=>{this.table.currentPage=t,this.table.total=e.data.total,this.table.pageSizes=[e.data.per_page],this.table.data=e.data.data})},handleSelectionChange(t){this.ids=t}},mounted(){this.getData(1)}},i=a("2877"),r=Object(i.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-input",{attrs:{type:"textarea",rows:10,placeholder:"请输入内容"},model:{value:t.lines,callback:function(e){t.lines=e},expression:"lines"}}),a("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("批量增加")]),a("el-button",{attrs:{type:"primary"},on:{click:t.del}},[t._v("批量删除")]),a("el-button",{attrs:{type:"primary"},on:{click:t.delAll}},[t._v("清空")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"word",label:"关键词"}}),a("el-table-column",{attrs:{prop:"create_time",label:"时间",width:"180"}})],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},"6b2d":function(t,e,a){"use strict";var n=a("0613"),s=a("bc3a"),i=a.n(s),r=a("d70b"),l=a("afbc"),c=a("5c96"),o=a("6ddb");const d={baseURL:r.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},u=(Object(o.g)(()=>(n.a.commit("setToken",""),n.a.commit("setUserInfo",{}),n.a.commit("setPermission",{}),l.b.push("/account/login"),Promise.reject())),i.a.create(d));u.interceptors.request.use(t=>{const e=n.a.getters.token;return e&&(t.headers.token=e),t.headers.version=r.a.version,t},t=>Promise.reject(t)),u.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=u},ea4a:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"e",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return l})),a.d(e,"a",(function(){return c}));a("f175");var n=a("6b2d");const s=t=>n.a.post("/audit.word/add",t),i=t=>n.a.get("/audit.word/list",{params:t}),r=t=>n.a.post("/audit.word/del",t),l=t=>n.a.post("/audit.word/delAll",t),c=t=>n.a.get("/audit.audit/list",{params:t})}}]);