Files
wysite/hc-pos.sqygj.cn/static/js/chunk-3680f210.0035d473.js

1 line
2.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3680f210"],{"30ac":function(e,t,r){},3505:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container bgHeight"},[r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"planTitle"},[e._v("基础信息")])]),e._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"30%","padding-top":"15px"},attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理区编号",prop:"pass"}},[r("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleForm.codeNumber,callback:function(t){e.$set(e.ruleForm,"codeNumber",t)},expression:"ruleForm.codeNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属项目",prop:"pass"}},[r("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleForm.community_name,callback:function(t){e.$set(e.ruleForm,"community_name",t)},expression:"ruleForm.community_name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"管理区名称",prop:"name"}},[r("el-input",{model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")]),e._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.returnPage()}}},[e._v("返回")])],1)],1)],1)],1)},s=[],n=r("2b74"),o={name:"addAreaManage",data:function(){return{disabled:!0,ruleForm:{name:"",codeNumber:"",community_name:""},rules:{name:[{required:!0,message:"管理区名称不能为空",trigger:"blur"}]}}},created:function(){this.ruleForm=this.$route.query.data,this.ruleForm.community_name=this.$store.state.community_name},methods:{submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;var r={id:t.ruleForm.id,name:t.ruleForm.name,updaterName:t.$store.state.user.userInfo.memberName};Object(n["e"])(r).then((function(e){0===e.code&&(t.$message({message:"编辑成功",type:"success"}),t.$router.replace({path:"/propertySMG/basicManagement/communityBasicsInfo"}))}))}))},returnPage:function(){this.$router.go(-1)}}},i=o,m=(r("eaf3"),r("829d")),u=Object(m["a"])(i,a,s,!1,null,"6b8a925c",null);t["default"]=u.exports},eaf3:function(e,t,r){"use strict";r("30ac")}}]);