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 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76ce43f3"],{"09bd":function(e,t,n){},"0bf9":function(e,t,n){"use strict";n.r(t);var a=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)},o=[],r=(n("5cff"),n("5e68"),n("dcd4"),n("6a61"),n("2e91")),i=n("f56f"),c=n("333d"),s=n("e1fd"),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.$set(e.form,"sensitiveKeyword",t)},expression:"form.sensitiveKeyword"}})],1)],1),n("div",{staticClass:"btn_list"},[n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确定")]),n("el-button",{staticClass:"delete",on:{click:e.cancel}},[e._v("取消")])],1)],1)},u=[],l={props:{dialog:{type:Object,default:function(){}}},data:function(){return{form:{sensitiveKeyword:this.dialog.info.sensitiveKeyword||""},rules:{sensitiveKeyword:[{required:!0,message:"请输入敏感词",trigger:"blur"}]}}},methods:{confirm:function(){var e=this;e.$refs.form.validate((function(t){t&&e.$emit("add",e.form)}))},cancel:function(){this.$emit("close")}}},f=l,m=(n("2e4fa"),n("5d22")),p=Object(m["a"])(f,d,u,!1,null,"3bb1b3dc",null),g=p.exports,h={components:{Pagination:c["a"],Dialog:s["Dialog"],add:g},data:function(){return{form:{enabled:0,action:1},formPage:{keyword:"",pagesize:10,pageSize:10,pageIndex:1},tableData:{},dialog:{}}},created:function(){this.getSensitiveKeywordList()},methods:{getSensitiveKeywordList:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].getSensitiveKeywordList(e.formPage);case 2:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data,Object.keys(e.form).forEach((function(t){a.data.sensitiveKeywordList[0]&&void 0!==a.data.sensitiveKeywordList[0][t]&&(e.form[t]=a.data.sensitiveKeywordList[0][t])})));case 5:case"end":return t.stop()}}),t)})))()},changeItem:function(){var e=this;i["a"].setSensitiveKeyword(this.form).then((function(t){0===t.data.code&&e.getSensitiveKeywordList()}))},addSensitiveKeyword:function(){this.dialog={title:"新增",visible:!0,info:{}}},add:function(e){var t=this,n=t.dialog.edit?"editSensitiveKeyword":"addSensitiveKeyword";t.dialog.edit&&(e.id=t.dialog.info.id),i["a"][n](Object.assign({},t.form,e)).then((function(e){0===e.data.code&&(t.getSensitiveKeywordList(),t.$message.success("".concat(t.dialog.edit?"修改":"新增","成功")),t.close())}))},close:function(){this.dialog={}},fetch:function(){this.getSensitiveKeywordList()},reset:function(){this.formPage.keyword=""},edit:function(e){this.dialog={title:"修改",visible:!0,edit:!0,info:e}},deletes:function(e){var t=this;t.$confirm("确定要删除该条敏感词","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].deleteSensitiveKeyword({id:e}).then((function(e){0===e.data.code&&(t.$message.success("删除成功"),t.getSensitiveKeywordList())}))}))}}},v=h,y=(n("abcc"),Object(m["a"])(v,a,o,!1,null,"6ac5c5be",null));t["default"]=y.exports},"208b":function(e,t,n){},"2da9":function(e,t,n){(function(n){var a,o;(function(t,n){e.exports=n(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var r,i=n.Base64,c="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e.charAt(n)]=n;return t}(s),u=String.fromCharCode,l=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(e){return e.replace(f,l)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[s.charAt(n>>>18),s.charAt(n>>>12&63),t>=2?"=":s.charAt(n>>>6&63),t>=1?"=":s.charAt(63&n)];return a.join("")},g=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},h=function(e){return g(m(String(e)))},v=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},y=function(e,t){return t?v(h(e)):h(e)},b=function(e){return y(e,!0)};n.Uint8Array&&(r=function(e,t){for(var n="",a=0,o=e.length;a<o;a+=3){var r=e[a],i=e[a+1],c=e[a+2],d=r<<16|i<<8|c;n+=s.charAt(d>>>18)+s.charAt(d>>>12&63)+("undefined"!=typeof i?s.charAt(d>>>6&63):"=")+("undefined"!=typeof c?s.charAt(63&d):"=")}return t?v(n):n});var w,S=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,K=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return u(55296+(n>>>10))+u(56320+(1023&n));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=function(e){return e.replace(S,K)},O=function(e){var t=e.length,n=t%4,a=(t>0?d[e.charAt(0)]<<18:0)|(t>1?d[e.charAt(1)]<<12:0)|(t>2?d[e.charAt(2)]<<6:0)|(t>3?d[e.charAt(3)]:0),o=[u(a>>>16),u(a>>>8&255),u(255&a)];return o.length-=[0,0,2,1][n],o.join("")},x=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,O)},A=function(e){return x(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(e){return C(x(e))},j=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},T=function(e){return P(j(e))};n.Uint8Array&&(w=function(e){return Uint8Array.from(A(j(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:c,atob:A,btoa:g,fromBase64:T,toBase64:y,utob:m,encode:y,encodeURI:b,btou:C,decode:T,noConflict:k,fromUint8Array:r,toUint8Array:w},"function"===typeof Object.defineProperty){var B=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",B((function(){return T(this)}))),Object.defineProperty(String.prototype,"toBase64",B((function(e){return y(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",B((function(){return y(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(a=[],o=function(){return n.Base64}.apply(t,a),void 0===o||(e.exports=o)),{Base64:n.Base64}}))}).call(this,n("2409"))},"2e4fa":function(e,t,n){"use strict";n("09bd")},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden},staticStyle:{display:"block"}},[n("el-pagination",e._b({staticStyle:{display:"block"},attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},o=[];n("65ba");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=c(),o=e-a,s=20,d=0;t="undefined"===typeof t?500:t;var u=function e(){d+=s;var c=Math.easeInOutQuad(d,a,o,t);i(c),d<t?r(e):n&&"function"===typeof n&&n()};u()}var d={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},u=d,l=(n("c602"),n("5d22")),f=Object(l["a"])(u,a,o,!1,null,"f9900da8",null);t["a"]=f.exports},9256:function(e,t,n){"use strict";n("51d7"),n("5cff"),n("4318"),n("9358"),n("4d20"),n("dcd4");var a=n("d211"),o=n("5976"),r=n.n(o),i=n("e1fd"),c=n("5657"),s=n("2da9");function d(e,t){"ECONNABORTED"===e.code?Object(i["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(i["Message"])({message:e.response.data}):e.message&&Object(i["Message"])({message:e.message}),t(e)}function u(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?i["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(e.data.msg)),t(e)}r.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],n=c["a"].get("TOKEN","");n&&t&&(e.headers.token="Bearer "+n);var a="ceres_admin_web",o="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat(s["Base64"].encode("".concat(a,":").concat(o))),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var l=function(e){var t={ts:Date.now()},n=e.method.toUpperCase(),o={method:n,url:"".concat("https://pos.admin.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(n)?o.data=e.data||{}:o.params=Object(a["a"])(Object(a["a"])({},t),e.data||{}),e.formData&&(o.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var c=new Promise((function(e,t){r()(o).then((function(t){u(t,e)})).catch((function(e){d(e,t)}))}));return c};t["a"]=l},9358:function(e,t,n){var a=n("bbcf"),o=n("df66").entries;a({target:"Object",stat:!0},{entries:function(e){return o(e)}})},abcc:function(e,t,n){"use strict";n("ca4a")},c602:function(e,t,n){"use strict";n("208b")},ca4a:function(e,t,n){},df66:function(e,t,n){var a=n("6921"),o=n("cfd0"),r=n("e855"),i=n("04fd").f,c=function(e){return function(t){var n,c=r(t),s=o(c),d=s.length,u=0,l=[];while(d>u)n=s[u++],a&&!i.call(c,n)||l.push(e?[n,c[n]]:c[n]);return l}};e.exports={entries:c(!0),values:c(!1)}},f56f:function(e,t,n){"use strict";var a=n("9256"),o={getList:"/comment/findCommentList",handleComment:"/comment/handleComment",getSensitiveKeywordList:"/comment/findSensitiveKeywordList",setSensitiveKeyword:"/comment/updateSensitiveKeywordSetting",addSensitiveKeyword:"/comment/addSensitiveKeyword",editSensitiveKeyword:"/comment/updateSensitiveKeyword",deleteSensitiveKeyword:"/comment/deleteSensitiveKeyword",getCommentKeywordList:"/comment/findCommentKeywordList",setCommentKeywordList:"/comment/updateCommentKeywordSetting",addCommentKeyword:"/comment/addCommentKeyword",editCommentKeyword:"/comment/updateCommentKeyword",deleteCommentKeyword:"/comment/deleteCommentKeyword"};t["a"]={getList:function(e){return Object(a["a"])({method:"POST",url:o.getList,data:e})},handleComment:function(e){return Object(a["a"])({method:"POST",url:o.handleComment,data:e})},getSensitiveKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getSensitiveKeywordList,data:e})},setSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.setSensitiveKeyword,data:e})},addSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addSensitiveKeyword,data:e})},editSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editSensitiveKeyword,data:e})},deleteSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteSensitiveKeyword,data:e})},getCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getCommentKeywordList,data:e})},setCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.setCommentKeywordList,data:e})},addCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addCommentKeyword,data:e})},editCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editCommentKeyword,data:e})},deleteCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteCommentKeyword,data:e})}}}}]);