|
@@ -5,8 +5,8 @@
|
|
|
<el-form-item label="id" prop="id">
|
|
|
<el-input class="inputs" v-model="form.id" autocomplete="off" :disabled="!idAdd ? true : false"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="编码" prop="code">
|
|
|
- <el-input class="inputs" v-model.trim="form.code" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="编码" prop="nemCode">
|
|
|
+ <el-input class="inputs" v-model.trim="form.nemCode" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
@@ -18,11 +18,11 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
|
- <el-form-item label="容量" prop="powerproduction">
|
|
|
- <el-input class="inputs" v-model.trim="form.powerproduction" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="容量" prop="powerProduction">
|
|
|
+ <el-input class="inputs" v-model.trim="form.powerProduction" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="厂商编号" prop="windturbinemanufacturerid">
|
|
|
- <el-input class="inputs" v-model.trim="form.windturbinemanufacturerid" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="厂商编号" prop="windturbineManufacturerId">
|
|
|
+ <el-input class="inputs" v-model.trim="form.windturbineManufacturerId" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
@@ -35,26 +35,32 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
|
- <el-form-item label="切入风速" prop="cutinwindspeed">
|
|
|
- <el-input class="inputs" v-model="form.cutinwindspeed" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="切入风速" prop="cutinwindSpeed">
|
|
|
+ <el-input class="inputs" v-model="form.cutinwindSpeed" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="额定风速" prop="ratedwindspeed">
|
|
|
- <el-input class="inputs" v-model.trim="form.ratedwindspeed" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="额定风速" prop="ratedwindSpeed">
|
|
|
+ <el-input class="inputs" v-model.trim="form.ratedwindSpeed" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
|
- <el-form-item label="切出风速" prop="cutoutwindspeed">
|
|
|
- <el-input class="inputs" v-model="form.cutoutwindspeed" autocomplete="off">
|
|
|
+ <el-form-item label="切出风速" prop="cutoutwindSpeed">
|
|
|
+ <el-input class="inputs" v-model="form.cutoutwindSpeed" autocomplete="off">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="叶片切入面积" prop="sweptarea">
|
|
|
- <el-input class="inputs" v-model.trim="form.sweptarea" autocomplete="off"></el-input>
|
|
|
+ <el-form-item label="叶片切入面积" prop="sweptArea">
|
|
|
+ <el-input class="inputs" v-model.trim="form.sweptArea" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lists">
|
|
|
- <el-form-item label="设备类别" prop="equipmentcategory">
|
|
|
- <el-input class="inputs" v-model="form.equipmentcategory" autocomplete="off">
|
|
|
- </el-input>
|
|
|
+ <el-form-item label="设备类别" prop="equipmentCategory">
|
|
|
+ <el-select v-model="form.equipmentCategory" placeholder="请选择" style="width:200px">
|
|
|
+ <el-option
|
|
|
+ v-for="item in equipmentCategoryOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -82,35 +88,40 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ equipmentCategoryOptions: [
|
|
|
+ {id: 0, name: "风机"},
|
|
|
+ {id: 1, name: "集中"},
|
|
|
+ {id: 2, name: "组串"},
|
|
|
+ ],
|
|
|
form: {
|
|
|
id: '',
|
|
|
- code: '',
|
|
|
+ nemCode: '',
|
|
|
name: '',
|
|
|
description: '',
|
|
|
- powerproduction: '',
|
|
|
- windturbinemanufacturerid: '',
|
|
|
+ powerProduction: '',
|
|
|
+ windturbineManufacturerId: '',
|
|
|
photo: '',
|
|
|
unit: '',
|
|
|
- cutinwindspeed: '',
|
|
|
- ratedwindspeed: '',
|
|
|
- cutoutwindspeed: '',
|
|
|
- sweptarea: '',
|
|
|
- equipmentcategory: '',
|
|
|
+ cutinwindSpeed: '',
|
|
|
+ ratedwindSpeed: '',
|
|
|
+ cutoutwindSpeed: '',
|
|
|
+ sweptArea: '',
|
|
|
+ equipmentCategory: '',
|
|
|
},
|
|
|
rules: {
|
|
|
id: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
code: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
name: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
description: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- powerproduction: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- windturbinemanufacturerid: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ powerProduction: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ windturbineManufacturerId: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
photo: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
unit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- cutinwindspeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- ratedwindspeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- cutoutwindspeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- sweptarea: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- equipmentcategory: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ cutinwindSpeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ ratedwindSpeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ cutoutwindSpeed: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ sweptArea: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ equipmentCategory: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
},
|
|
|
title: '',
|
|
|
dialogFormVisible: false,
|