(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22d608"],{f6df:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[t.config.id?o("div",{staticClass:"app-form"},[o("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[o("div",{staticClass:"app-form-group"},[o("div",{staticClass:"app-form-ti"},[t._v("基本设置")]),o("div",{staticClass:"padding-top-lg"},[o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[o("el-radio",{attrs:{label:1}},[t._v("开启")]),o("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?[o("el-form-item",{attrs:{label:"展示类型",prop:"mode"}},[o("el-radio-group",{model:{value:t.form.mode,callback:function(e){t.$set(t.form,"mode",e)},expression:"form.mode"}},[o("el-radio",{attrs:{label:0}},[t._v("重叠展示")]),o("el-radio",{attrs:{label:1}},[t._v("轮播展示")])],1)],1),o("el-form-item",{attrs:{label:"单页宽度",prop:"width"}},[o("el-input",{staticClass:"form-input",model:{value:t.form.width,callback:function(e){t.$set(t.form,"width",t._n(e))},expression:"form.width"}},[o("template",{slot:"append"},[t._v("%")])],2)],1),o("el-form-item",{attrs:{label:"单页高度",prop:"height"}},[o("el-input",{staticClass:"form-input",model:{value:t.form.height,callback:function(e){t.$set(t.form,"height",t._n(e))},expression:"form.height"}},[o("template",{slot:"append"},[t._v("%")])],2),o("el-alert",{attrs:{title:"单位为屏幕宽度的百分比",type:"error"}})],1)]:t._e()],2)]),o("div",{staticClass:"padding-top-lg flex justify-center"},[o("el-button",{on:{click:t.onBack}},[t._v("返回")]),o("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1):t._e(),o("copyright")],1)},i=[],s=o("7f70"),r=o("8327"),l={name:"Apopup",components:{},data:function(){return{activeIndex:"1",rules:{},form:{}}},computed:Object(s["a"])({},Object(r["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("apopup/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.config;t.apopup&&(this.form=this.$util.restJson(t.apopup))}}},n=l,p=o("3d7a"),c=Object(p["a"])(n,a,i,!1,null,null,null);e["default"]=c.exports}}]);