|
@@ -7,11 +7,11 @@
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
>
|
|
|
<div slot="title">
|
|
<div slot="title">
|
|
|
- <z-title :title="(type==0?'新增':'编辑')+'宴会类型'"></z-title>
|
|
|
|
|
|
|
+ <z-title :title="(type==0?'新增':'编辑')+'场地类型'"></z-title>
|
|
|
</div>
|
|
</div>
|
|
|
<el-form :model="info" :rules="rules" ref="ruleForm" class="rulefrom">
|
|
<el-form :model="info" :rules="rules" ref="ruleForm" class="rulefrom">
|
|
|
<el-form-item label="名 称" prop="houseTypeName" label-width="80px">
|
|
<el-form-item label="名 称" prop="houseTypeName" label-width="80px">
|
|
|
- <el-input maxlength="16" v-model="info.houseTypeName" placeholder="请输入宴会类型"></el-input>
|
|
|
|
|
|
|
+ <el-input maxlength="16" v-model="info.houseTypeName" placeholder="请输入场地类型"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="状 态" prop="houseTypeState" label-width="80px">
|
|
<el-form-item label="状 态" prop="houseTypeState" label-width="80px">
|
|
|
<el-radio-group v-model="info.houseTypeState">
|
|
<el-radio-group v-model="info.houseTypeState">
|
|
@@ -68,7 +68,7 @@
|
|
|
methods:{
|
|
methods:{
|
|
|
getData(){
|
|
getData(){
|
|
|
this.$axios.get('/houseType/houseTypeById/'+this.id).then(res=>{
|
|
this.$axios.get('/houseType/houseTypeById/'+this.id).then(res=>{
|
|
|
- console.log('宴会类型',res.data)
|
|
|
|
|
|
|
+ console.log('场地类型',res.data)
|
|
|
this.loading=false;
|
|
this.loading=false;
|
|
|
var info=res.data;
|
|
var info=res.data;
|
|
|
this.info=info;
|
|
this.info=info;
|
|
@@ -85,7 +85,7 @@
|
|
|
houseTypeState:info.houseTypeState,
|
|
houseTypeState:info.houseTypeState,
|
|
|
houseTypeName: info.houseTypeName
|
|
houseTypeName: info.houseTypeName
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
- this.$message.success('新增宴会类型成功!');
|
|
|
|
|
|
|
+ this.$message.success('新增场地类型成功!');
|
|
|
this.resetForm();
|
|
this.resetForm();
|
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
|
this.loading=false;
|
|
this.loading=false;
|
|
@@ -101,7 +101,7 @@
|
|
|
houseTypeState:info.houseTypeState,
|
|
houseTypeState:info.houseTypeState,
|
|
|
houseTypeName: info.houseTypeName
|
|
houseTypeName: info.houseTypeName
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
- this.$message.success('编辑宴会类型成功!');
|
|
|
|
|
|
|
+ this.$message.success('编辑场地类型成功!');
|
|
|
this.resetForm();
|
|
this.resetForm();
|
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
|
this.loading=false;
|
|
this.loading=false;
|