|  |  |  | 
|---|
|  |  |  | <el-input v-model="form.code" placeholder="请输入房间编号" v-trim /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="是否招商" prop="isInvestment"> | 
|---|
|  |  |  | <el-switch v-model="form.isInvestment" active-value="1" inactive-value="0"> | 
|---|
|  |  |  | <el-switch v-model="form.isInvestment" :active-value="1" :inactive-value="0"> | 
|---|
|  |  |  | </el-switch> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="建筑面积(m²)" prop="area"> | 
|---|
|  |  |  | 
|---|
|  |  |  | imgurl: '', | 
|---|
|  |  |  | code: '', | 
|---|
|  |  |  | roomNum: '', | 
|---|
|  |  |  | isInvestment: '0', | 
|---|
|  |  |  | isInvestment: 0, | 
|---|
|  |  |  | area: '', | 
|---|
|  |  |  | feeArea: '', | 
|---|
|  |  |  | rentArea: '', | 
|---|
|  |  |  | 
|---|
|  |  |  | this.getDetail(target.id) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | confirm () { | 
|---|
|  |  |  | if(!this.form.feeArea){ | 
|---|
|  |  |  | this.form.feeArea = this.form.rentArea | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.form.id == null || this.form.id === '') { | 
|---|
|  |  |  | this.__confirmCreate() | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.__confirmEdit() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getDetail(id) { | 
|---|
|  |  |  | detailById(id).then(res => { | 
|---|
|  |  |  | this.form = res || {} | 
|---|