(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1622477e"],{"4eac":function(t,e,s){},"59bf":function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),i=s("1b40"),l=s("b3ad"),n=s("e5f0");let r=class extends i.e{constructor(){super(...arguments),this.form={min_word_len_ellipsis:0,max_word_len_ellipsis:0}}getSetting(){Object(n.a)().then(t=>{this.form=t}).catch(()=>{this.$message.error("数据请求失败!")})}setSetting(){Object(n.b)(this.form).then(t=>{this.getSetting(),this.$message.success("保存成功!")}).catch(()=>{this.$message.error("保存失败!")})}created(){this.getSetting()}};r=Object(a.a)([Object(i.a)({components:{MaterialSelect:l.a}})],r);var c=r,o=(s("e209"),s("2877")),m=Object(o.a)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-goods"},[s("el-form",{ref:"goodsSettingsRef",attrs:{model:t.form,"label-width":"120px",size:"small"}},[s("div",{staticClass:"ls-card"},[s("div",{staticClass:"card-title"},[t._v("回帖设置")]),s("div",{staticClass:"card-content m-t-24"},[s("el-form-item",{attrs:{label:"超过"}},[s("el-input",{staticStyle:{width:"70px"},attrs:{placeholder:"多少字"},model:{value:t.form.max_word_len_ellipsis,callback:function(e){t.$set(t.form,"max_word_len_ellipsis",e)},expression:"form.max_word_len_ellipsis"}}),s("span",{staticStyle:{"margin-left":"10px"}},[t._v("字后触发省略")])],1),s("el-form-item",{attrs:{label:"省略后显示"}},[s("el-input",{staticStyle:{width:"70px"},attrs:{placeholder:"多少字"},model:{value:t.form.min_word_len_ellipsis,callback:function(e){t.$set(t.form,"min_word_len_ellipsis",e)},expression:"form.min_word_len_ellipsis"}}),s("span",{staticStyle:{"margin-left":"10px"}},[t._v("字")])],1)],1),s("div",{staticClass:"card-content m-t-24"},[s("el-form-item",{attrs:{label:"评论奖励积分"}},[s("el-input",{model:{value:t.form.send_comment_get_integral,callback:function(e){t.$set(t.form,"send_comment_get_integral",e)},expression:"form.send_comment_get_integral"}})],1)],1),s("div",{staticClass:"card-content m-t-24"},[s("el-form-item",{attrs:{label:"每日最大评论数量"}},[s("el-input",{model:{value:t.form.send_comment_limit_day,callback:function(e){t.$set(t.form,"send_comment_limit_day",e)},expression:"form.send_comment_limit_day"}})],1)],1)])]),s("div",{staticClass:"bg-white ls-fixed-footer"},[s("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.setSetting()}}},[t._v("保存")])],1)])],1)}),[],!1,null,"276ba5b8",null);e.default=m.exports},e209:function(t,e,s){"use strict";s("4eac")},e5f0:function(t,e,s){"use strict";s.d(e,"a",(function(){return l})),s.d(e,"c",(function(){return n})),s.d(e,"f",(function(){return r})),s.d(e,"d",(function(){return c})),s.d(e,"e",(function(){return o})),s.d(e,"b",(function(){return m}));var a=s("f175"),i=s("6b2d");const l=()=>a.a.get("settings.article.article/getConfig"),n=t=>i.a.post("articleRandImage/add",t),r=t=>i.a.get("articleRandImage/list",{params:t}),c=t=>i.a.get("articleRandImage/del",{params:t}),o=t=>i.a.get("articleRandImage/delAll",{params:t}),m=t=>a.a.post("settings.article.article/setConfig",t)}}]);