调整操作指令新增字段
This commit is contained in:
parent
baffbf36c8
commit
0f6090c576
@ -169,8 +169,8 @@ export default {
|
||||
ControlConvertMenu: {enlabel: 'Control mode training', label:'控制模式实训'},
|
||||
LimitControl: {enlabel: 'Control mode limit', label:'全线限速实训'},
|
||||
TrainWindow: {enlabel: 'TrainWindow training', label:'车次窗实训'},
|
||||
Driver:{enlabel: 'Driver training', label:'司机实训'},
|
||||
DirectionRod:{enlabel: 'Direction rod training', label:'方向杆实训'}
|
||||
Driver: {enlabel: 'Driver training', label:'司机实训'},
|
||||
DirectionRod: {enlabel: 'Direction rod training', label:'方向杆实训'}
|
||||
},
|
||||
interfaceErrorConfig: {
|
||||
'500000': { type: '权限错误:', message: '您尚未有该操作权限!'},
|
||||
|
@ -11,6 +11,9 @@
|
||||
<script>
|
||||
import { postTrainingRulesData, putTrainingRulesData, getPlaceholderList } from '@/api/management/operation';
|
||||
import { getPublishMapListOnline } from '@/api/jmap/map';
|
||||
import ConstConfig from '@/scripts/ConstConfig';
|
||||
import Cookies from 'js-cookie';
|
||||
import { getTrainingOperateTypeMap } from '@/scripts/ConstDic';
|
||||
|
||||
export default {
|
||||
name: 'TrainingEdit',
|
||||
@ -102,13 +105,9 @@ export default {
|
||||
created() {
|
||||
this.init();
|
||||
},
|
||||
// beforeupdate(data) {
|
||||
// this.$refs.dataform.clearValidate();
|
||||
// },
|
||||
methods: {
|
||||
init() {
|
||||
// 获取地图列表
|
||||
// this.$refs.dataform.resetForm();
|
||||
this.mapIdList = [];
|
||||
this.productTypesList = [{ value:'01', label:'现地'}, {value:'02', label:'行调'}];
|
||||
getPublishMapListOnline().then(response => {
|
||||
@ -122,73 +121,13 @@ export default {
|
||||
|
||||
// 获取实训类型
|
||||
this.trainingTypeList = [];
|
||||
this.$Dictionary.trainingType().then(list => {
|
||||
this.trainingTypeList = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
});
|
||||
});
|
||||
// 获取实训操作类型
|
||||
this.trainingOperateTypeMap = {};
|
||||
this.$Dictionary.stationControl().then(list => {
|
||||
this.trainingOperateTypeMap['01'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 控制权实训
|
||||
});
|
||||
this.$Dictionary.signalOperation().then(list => {
|
||||
this.trainingOperateTypeMap['02'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 信号机实训
|
||||
});
|
||||
this.$Dictionary.switchOperation().then(list => {
|
||||
this.trainingOperateTypeMap['03'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 道岔实训
|
||||
});
|
||||
this.$Dictionary.sectionOperation().then(list => {
|
||||
this.trainingOperateTypeMap['04'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 区段实训
|
||||
});
|
||||
this.$Dictionary.stationStandOperation().then(list => {
|
||||
this.trainingOperateTypeMap['05'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 站台实训
|
||||
});
|
||||
this.$Dictionary.trainPlanOperation().then(list => {
|
||||
this.trainingOperateTypeMap['06'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 行车计划实训
|
||||
});
|
||||
this.$Dictionary.trainOperation().then(list => {
|
||||
this.trainingOperateTypeMap['07'] = list.map(item => {
|
||||
const params = {};
|
||||
params.label = item.name;
|
||||
params.value = item.code;
|
||||
return params;
|
||||
}); // 列车实训
|
||||
});
|
||||
const trainingDeviceTypeList = ConstConfig.ConstSelect.trainingDeviceType || {};
|
||||
for (const val in trainingDeviceTypeList) {
|
||||
this.trainingTypeList.push({value: val, label: Cookies.get('user_lang') == 'en' ? trainingDeviceTypeList[val].enlabel : trainingDeviceTypeList[val].label});
|
||||
}
|
||||
|
||||
// 获取实训操作类型
|
||||
this.trainingOperateTypeMap = getTrainingOperateTypeMap();
|
||||
},
|
||||
async show(data) {
|
||||
this.loading = false;
|
||||
@ -210,9 +149,6 @@ export default {
|
||||
};
|
||||
} else {
|
||||
this.formModel.mapId = this.$route.query.mapId;
|
||||
// this.formModel = {
|
||||
// mapId: this.$route.query.mapId
|
||||
// };
|
||||
}
|
||||
},
|
||||
repliceName(fieldValue, enumList) {
|
||||
@ -307,7 +243,6 @@ export default {
|
||||
productTypes:[]
|
||||
};
|
||||
this.$refs.dataform.resetForm();
|
||||
// this.$refs.dataform.clearValidate();
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user