(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-088518a1"],{"62c8":function(t,e,a){"use strict";a.r(e);var n=a("ea4a"),l={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"),s=Object(i.a)(l,(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=s.exports},ea4a:function(t,e,a){"use strict";a.d(e,"b",(function(){return l})),a.d(e,"e",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"d",(function(){return r})),a.d(e,"a",(function(){return c}));a("f175");var n=a("6b2d");const l=t=>n.a.post("/audit.word/add",t),i=t=>n.a.get("/audit.word/list",{params:t}),s=t=>n.a.post("/audit.word/del",t),r=t=>n.a.post("/audit.word/delAll",t),c=t=>n.a.get("/audit.audit/list",{params:t})}}]);