webpackJsonp([56],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:a.a}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("qQHY")},"data-v-2fb3a450",null);e.default=l.exports},qQHY:function(t,e){}});