You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c47d255"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,o){return e/=o/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=a(),c=e-i,s=20,d=0;t="undefined"===typeof t?500:t;var u=function e(){d+=s;var a=Math.easeInOutQuad(d,i,c,t);r(a),d<t?o(e):n&&"function"===typeof n&&n()};u()}},"0bf9":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sensitive_word_page"},[n("div",{staticClass:"head"},[n("el-form",{ref:"formPage",attrs:{action:"",model:e.formPage,inline:""}},[n("el-form-item",{attrs:{label:"关键词"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.formPage.keyword,callback:function(t){e.$set(e.formPage,"keyword",t)},expression:"formPage.keyword"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.fetch}},[e._v("查询")]),n("el-button",{attrs:{size:"mini"},on:{click:e.reset}},[e._v("重置")])],1)],1)],1),n("div",{staticClass:"setting"},[n("el-form",{ref:"form",attrs:{model:e.form,inline:""}},[n("el-form-item",{attrs:{label:"状态"}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:e.changeItem},model:{value:e.form.enabled,callback:function(t){e.$set(e.form,"enabled",t)},expression:"form.enabled"}})],1),n("el-form-item",{attrs:{label:"处理措施"}},[n("el-radio-group",{on:{change:e.changeItem},model:{value:e.form.action,callback:function(t){e.$set(e.form,"action",t)},expression:"form.action"}},[n("el-radio",{attrs:{label:1}},[e._v("禁止发布")]),n("el-radio",{attrs:{label:2}},[e._v("需审核")])],1)],1)],1)],1),n("div",{staticClass:"content"},[n("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",size:"mini"},on:{click:e.addSensitiveKeyword}},[e._v("新增")]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.sensitiveKeywordList,border:""}},[n("el-table-column",{attrs:{type:"index",width:"100",label:"序号"}}),n("el-table-column",{attrs:{prop:"sensitiveKeyword",label:"敏感词"}}),n("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.edit(t.row)}}},[e._v(" 修改 ")]),n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.deletes(t.row.id)}}},[e._v(" 删除 ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formPage.pageSize,page:e.formPage.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formPage,"pageSize",t)},"update:page":function(t){return e.$set(e.formPage,"pageIndex",t)},pagination:e.fetch}})],1),n("Dialog",{attrs:{title:e.dialog.title,visible:e.dialog.visible,fullscreen:!1,"before-close":e.close,width:"30%"},on:{"update:visible":function(t){return e.$set(e.dialog,"visible",t)}}},[e.dialog.visible?n("add",{attrs:{dialog:e.dialog},on:{add:e.add,close:e.close}}):e._e()],1)],1)},r=[],a=(n("4160"),n("b64b"),n("159b"),n("96cf"),n("1da1")),i=n("f56f"),c=n("333d"),s=n("5c96"),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"add_page"},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,required:"","label-width":"100px"}},[n("el-form-item",{attrs:{prop:"sensitiveKeyword",label:"敏感词"}},[n("el-input",{model:{value:e.form.sensitiveKeyword,callback:function(t){e.