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
3.1 KiB
1 line
3.1 KiB
2 months ago
|
webpackJsonp([87],{"90Pc":function(e,t){},y6lP:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),s=r.n(a),c=r("Xxa5"),n=r.n(c),i=r("exGp"),o=r.n(i),m={data:function(){return{subForm:{dynamic_status:1,dynamic_check:1,dynamic_comment_check:1},subFormRules:{dynamic_status:{required:!0,type:"number",message:"请选择",trigger:"blur"},dynamic_check:{required:!0,type:"number",message:"请选择",trigger:"blur"},dynamic_comment_check:{required:!0,type:"number",message:"请选择",trigger:"blur"}}}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var e=this;return o()(n.a.mark(function t(){var r,a,s,c;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$api.system.configInfoSchedule();case 2:if(r=t.sent,a=r.code,s=r.data,200===a){t.next=7;break}return t.abrupt("return");case 7:for(c in e.subForm)e.subForm[c]=s[c];case 8:case"end":return t.stop()}},t,e)}))()},submitForm:function(){var e=this;this.$refs.subForm.validate(function(t){if(t){var r=JSON.parse(s()(e.subForm));e.$api.system.configUpdateSchedule(r).then(function(t){200===t.code&&e.$message.success(e.$t("tips.successSub"))})}})}}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"lb-dynamic-set"},[r("top-nav"),e._v(" "),r("div",{staticClass:"page-main"},[r("el-form",{ref:"subForm",staticClass:"submit-form",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{label:"是否开启动态发布",prop:"dynamic_status"}},[r("el-radio-group",{model:{value:e.subForm.dynamic_status,callback:function(t){e.$set(e.subForm,"dynamic_status",t)},expression:"subForm.dynamic_status"}},[r("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("action.ON")))]),e._v(" "),r("el-radio",{attrs:{label:0}},[e._v(e._s(e.$t("action.OFF")))])],1),e._v(" "),r("lb-tool-tips",[e._v("关闭后,手机端将不再展示动态发布相关内容")])],1),e._v(" "),e.subForm.dynamic_status?r("block",[r("el-form-item",{attrs:{label:"动态审核方式",prop:"dynamic_check"}},[r("el-radio-group",{model:{value:e.subForm.dynamic_check,callback:function(t){e.$set(e.subForm,"dynamic_check",t)},expression:"subForm.dynamic_check"}},[r("el-radio",{attrs:{label:1}},[e._v("人工审核")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("自动审核")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"评论审核方式",prop:"dynamic_comment_check"}},[r("el-radio-group",{model:{value:e.subForm.dynamic_comment_check,callback:function(t){e.$set(e.subForm,"dynamic_comment_check",t)},expression:"subForm.dynamic_comment_check"}},[r("el-radio",{attrs:{label:1}},[e._v("人工审核")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("自动审核")])],1)],1)],1):e._e(),e._v(" "),r("el-form-item",[r("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(e._s(e.$t("action.submit")))])],1)],1)],1)],1)},staticRenderFns:[]};var l=r("VU/8")(m,u,!1,function(e){r("90Pc")},"data-v-2e0684d6",null);t.default=l.exports}});
|