绘图相关调整_(国际化调整&列车所在方向非必传)

This commit is contained in:
fan 2019-12-03 18:15:30 +08:00
parent bb10c4c234
commit 72746ba261
3 changed files with 8 additions and 9 deletions

View File

@ -558,4 +558,5 @@ export default {
chargeStationList:'Managed station list', chargeStationList:'Managed station list',
createModel: 'Create model:', createModel: 'Create model:',
startingPoint: 'Starting point:', startingPoint: 'Starting point:',
endingPoint: 'Ending point:'
}; };

View File

@ -551,5 +551,6 @@ export default {
rightAssociatedSection: '右关联区段:', rightAssociatedSection: '右关联区段:',
chargeStationList:'管理车站列表', chargeStationList:'管理车站列表',
createModel: '创建方式:', createModel: '创建方式:',
startingPoint: '起点:' startingPoint: '起点:',
endingPoint: '终点:'
}; };

View File

@ -29,7 +29,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<div v-if="createModel.type == '01'" class="coordinate"> <div v-if="createModel.type == '01'" class="coordinate">
<span class="title" style="width: 120px">起点:</span> <span class="title" style="width: 120px">{{ this.$t('map.startingPoint') }}</span>
<div class="listWidth"> <div class="listWidth">
<el-form-item label="x" prop="startPoint.x" label-width="25px"> <el-form-item label="x" prop="startPoint.x" label-width="25px">
<el-input-number v-model="createModel.startPoint.x" /> <el-input-number v-model="createModel.startPoint.x" />
@ -42,7 +42,7 @@
</div> </div>
</div> </div>
<div v-if="createModel.type == '01'" class="coordinate"> <div v-if="createModel.type == '01'" class="coordinate">
<span class="title" style="width: 120px">终点:</span> <span class="title" style="width: 120px">{{ this.$t('map.endingPoint') }}</span>
<div class="listWidth"> <div class="listWidth">
<el-form-item label="x" prop="endPoint.x" label-width="25px"> <el-form-item label="x" prop="endPoint.x" label-width="25px">
<el-input-number v-model="createModel.endPoint.x" /> <el-input-number v-model="createModel.endPoint.x" />
@ -54,7 +54,7 @@
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<el-form-item v-if="createModel.type == '02'" label="左关联区段:" prop="leftSectionCode"> <el-form-item v-if="createModel.type == '02'" :label="$t('map.leftAssociatedSection')" prop="leftSectionCode">
<el-select v-model="createModel.leftSectionCode" filterable> <el-select v-model="createModel.leftSectionCode" filterable>
<el-option <el-option
v-for="item in PhysicalSectionList" v-for="item in PhysicalSectionList"
@ -69,7 +69,7 @@
@click="hover('getSectionStart')" @click="hover('getSectionStart')"
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button>
</el-form-item> </el-form-item>
<el-form-item v-if="createModel.type == '02'" label="右关联区段:" prop="rightSectionCode"> <el-form-item v-if="createModel.type == '02'" :label="$t('map.rightAssociatedSection')" prop="rightSectionCode">
<el-select v-model="createModel.rightSectionCode" filterable> <el-select v-model="createModel.rightSectionCode" filterable>
<el-option <el-option
v-for="item in PhysicalSectionList" v-for="item in PhysicalSectionList"
@ -89,7 +89,7 @@
</div> </div>
<div class="button_box"> <div class="button_box">
<el-button-group class="map-draft-group"> <el-button-group class="map-draft-group">
<el-button type="primary" size="small" @click="create">新建</el-button> <el-button type="primary" size="small" @click="create">{{ this.$t('map.newConstruction') }}</el-button>
</el-button-group> </el-button-group>
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -518,9 +518,6 @@ export default {
relSwitchCode: [ relSwitchCode: [
{ required: true, message: this.$t('rules.sectionRelSwitchCode'), trigger: 'change' } { required: true, message: this.$t('rules.sectionRelSwitchCode'), trigger: 'change' }
], ],
trainPosType: [
{ required: true, message: this.$t('rules.pleaseSelectTrainDir'), trigger: 'change' }
],
leftSectionCode: [ leftSectionCode: [
{ validator: validateLeftSection, trigger: 'change' } { validator: validateLeftSection, trigger: 'change' }
], ],