1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c8214ff8"],{"0de3":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container bgHeight"},[a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"planTitle"},[e._v("基础信息")])]),e._v(" "),a("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"}},[a("el-form-item",{attrs:{label:"所属项目",prop:"community_name"}},[a("el-input",{attrs:{disabled:e.disabled},model:{value:e.community_name,callback:function(t){e.community_name=t},expression:"community_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"管理区名称",prop:"name"}},[a("el-input",{model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",disabled:e.disabledBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("立即创建")]),e._v(" "),a("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=a("2b74"),i={name:"addAreaManage",data:function(){return{disabled:!0,disabledBtn:!1,community_name:"",ruleForm:{name:""},rules:{name:[{required:!0,message:"管理区名称不能为空",trigger:"blur"}]}}},created:function(){this.community_name=this.$store.state.community_name},methods:{submitForm:function(e){var t=this;this.ruleForm.projectUuid=this.$store.state.community_uuid,this.ruleForm.updaterName=this.$store.state.user.userInfo.memberName,this.ruleForm.createBy=this.$store.state.user.userInfo.memberId,this.$refs[e].validate((function(e){if(!e)return!1;t.disabledBtn=!0,Object(n["c"])(t.ruleForm).then((function(e){0===e.code&&(t.$message({message:"创建成功",type:"success"}),t.disabledBtn=!1,t.$store.commit("UPDATE_ACTIVE_NAME","area"),t.$router.replace({path:"/propertySMG/basicManagement/communityBasicsInfo"}))}))}))},returnPage:function(){this.$store.commit("UPDATE_ACTIVE_NAME","area"),this.$router.replace({path:"/propertySMG/basicManagement/communityBasicsInfo"})}}},o=i,m=(a("2bbe"),a("829d")),u=Object(m["a"])(o,r,s,!1,null,"71c2a3be",null);t["default"]=u.exports},"2bbe":function(e,t,a){"use strict";a("dde5")},dde5:function(e,t,a){}}]); |