This commit is contained in:
fan 2020-04-16 17:27:49 +08:00
commit 64c5e743e5

View File

@ -67,6 +67,10 @@
<el-form-item label="是否向右:" prop="right"> <el-form-item label="是否向右:" prop="right">
<el-checkbox v-model="addModel.right" /> <el-checkbox v-model="addModel.right" />
</el-form-item> </el-form-item>
<el-form-item label="站间距离:" prop="distance">
<el-input-number v-model="addModel.distance" :min="0" />
<span>m</span>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" size="small" style="margin-top: 10px" @click="generateLevel">生成等级</el-button> <el-button type="primary" size="small" style="margin-top: 10px" @click="generateLevel">生成等级</el-button>
@ -209,6 +213,7 @@ export default {
startSectionCode: '', // code startSectionCode: '', // code
startStationCode: '', // code startStationCode: '', // code
right: false, // right: false, //
distance: 0, // , m
l1: 0, // (s) l1: 0, // (s)
l2: 0, // (s) l2: 0, // (s)
l3: 0, // (s) l3: 0, // (s)
@ -227,6 +232,9 @@ export default {
], ],
endSectionCode: [ endSectionCode: [
{ required: true, message: '请选择末端区段', trigger: 'change' } { required: true, message: '请选择末端区段', trigger: 'change' }
],
distance: [
{ required: true, message: '请输入站间距离', trigger: 'blur' }
] ]
} }
}; };
@ -318,6 +326,7 @@ export default {
startSectionCode: '', startSectionCode: '',
startStationCode: '', startStationCode: '',
right: false, right: false,
distance: '',
l1: 0, l1: 0,
l2: 0, l2: 0,
l3: 0, l3: 0,