diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js index 15d780fa0..c6ad35a77 100644 --- a/src/api/trainingManage.js +++ b/src/api/trainingManage.js @@ -95,3 +95,11 @@ export function updateTrainingMaplocation(data) { data }); } + +/** 获取实训表达式条件素材 */ +export function getTrainingMaterials() { + return request({ + url: `/api/v2/draft/training/expression/materials`, + method: 'get' + }); +} diff --git a/src/i18n/langs/en/trainingManage.js b/src/i18n/langs/en/trainingManage.js index 38782c98f..587cb1803 100644 --- a/src/i18n/langs/en/trainingManage.js +++ b/src/i18n/langs/en/trainingManage.js @@ -24,5 +24,7 @@ export default { roleSelect: 'role choices', triggerCondition: 'triggering condition', operateCondition: 'operating conditions', - completionCondition: 'completion conditions' + completionCondition: 'completion conditions', + editCompletionCondition: 'Edit completion conditions', + editOperationCondition: 'Edit operation condition' }; diff --git a/src/i18n/langs/zh/trainingManage.js b/src/i18n/langs/zh/trainingManage.js index bf0de14c1..64a63fe7f 100644 --- a/src/i18n/langs/zh/trainingManage.js +++ b/src/i18n/langs/zh/trainingManage.js @@ -24,5 +24,7 @@ export default { roleSelect: '角色选择', triggerCondition: '触发条件', operateCondition: '操作条件', - completionCondition: '完成条件' + completionCondition: '完成条件', + editCompletionCondition: '编辑完成条件', + editOperationCondition: '编辑运算条件' }; diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index 373696a28..3ad10509c 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -264,6 +264,32 @@ export default { {value:'DOWN_OUT_STATION', label:'下行出站'}, {value:'UP_OUT_STATION', label:'上行出站'}, {value:'BOTH_WAY_STATION', label:'双向'} + ], + conditionList: [ + { label: '标识状态', value: 'S' }, + { label: '表达式', value: 'E' }, + { label: '代表值', value: 'V' } + ], + operationList: [ + { label: '与', value: 'AND' }, + { label: '或', value: 'OR' }, + { label: '非', value: 'NOT' }, + { label: '是', value: 'IS' }, + { label: '等于', value: 'EQ' }, + { label: '不等于', value: 'NEQ' }, + { label: '大于', value: 'GT' }, + { label: '大于等于', value: 'GTOE' }, + { label: '小于', value: 'LT' }, + { label: '小于等于', value: 'LTOE' } + ], + operationDeviceList: [ + { label: '区段', value: 'Section' }, + { label: '道岔', value: 'Switch' }, + { label: '信号机', value: 'Signal' }, + { label: '站台', value: 'Stand' }, + { label: '车站', value: 'Station' }, + {label:'进路', value:'Route'}, + { label: '列车', value: 'Train' } ] } }; diff --git a/src/views/trainingManage/editCondition.vue b/src/views/trainingManage/editCondition.vue new file mode 100644 index 000000000..1ba2dd3a9 --- /dev/null +++ b/src/views/trainingManage/editCondition.vue @@ -0,0 +1,243 @@ + + + + diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index 9c19473ca..5d76b0927 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -8,7 +8,54 @@
新增步骤 - + + + + + + + + + + + + + + + + + + + + +
{{ $t('trainingManage.mapLocation') }} @@ -16,18 +63,22 @@ {{ $t('trainingManage.saveStepData') }}
+ +