From 546029e4ad7e6518c6ce6c9528e70c9696a65958 Mon Sep 17 00:00:00 2001
From: dong <58670809@qq.com>
Date: Tue, 23 Aug 2022 15:17:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E7=BC=96=E5=88=B6=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/trainingManage.js | 25 +-
.../QueryListPage/QueryListPage.vue | 3 +
src/i18n/langs/en/trainingManage.js | 13 +-
src/i18n/langs/zh/trainingManage.js | 13 +-
src/scripts/ConstConfig.js | 4 +-
src/views/trainingManage/EditContent.vue | 231 ++++++++++++------
src/views/trainingManage/demonMenu.vue | 12 +-
src/views/trainingManage/trainingList.vue | 1 -
8 files changed, 222 insertions(+), 80 deletions(-)
diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js
index 3d03fe652..1f6da9c1a 100644
--- a/src/api/trainingManage.js
+++ b/src/api/trainingManage.js
@@ -32,10 +32,17 @@ export function updateTraining(data) {
data
});
}
+/** 查询步骤列表 */
+export function getTrainingStepList(trainingId) {
+ return request({
+ url: `/api/v2/draft/training/${trainingId}/step/list`,
+ method: 'get'
+ });
+}
/** 修改实训所有步骤 */
export function updateTrainingStep(id, data) {
return request({
- url: ` /api/v2/draft/training/${id}/step/update`,
+ url: `/api/v2/draft/training/${id}/step/update`,
method: 'put',
data: data
});
@@ -71,3 +78,19 @@ export function getTrainingAll(trainingId) {
method: 'get'
});
}
+/** 单独更新当前用户的某个实训草稿的初始背景 */
+export function updateTrainingBackgroud(data) {
+ return request({
+ url: `/api/v2/draft/training/update/content/backgroud`,
+ method: 'post',
+ data
+ });
+}
+/** 更新当前用户实训草稿定位 */
+export function updateTrainingMaplocation(data) {
+ return request({
+ url: `/api/v2/draft/training/update/content/maplocation`,
+ method: 'post',
+ data
+ });
+}
diff --git a/src/components/QueryListPage/QueryListPage.vue b/src/components/QueryListPage/QueryListPage.vue
index ffc413e88..43b60a9e0 100644
--- a/src/components/QueryListPage/QueryListPage.vue
+++ b/src/components/QueryListPage/QueryListPage.vue
@@ -657,4 +657,7 @@ export default {
margin-left: 8px;
}
.pageContainerView{text-align: center; margin: 10px 0; height: 40px;}
+.hideOutContent {
+ min-height: 12px;
+}
diff --git a/src/i18n/langs/en/trainingManage.js b/src/i18n/langs/en/trainingManage.js
index b354b8476..4c414f914 100644
--- a/src/i18n/langs/en/trainingManage.js
+++ b/src/i18n/langs/en/trainingManage.js
@@ -10,5 +10,16 @@ export default {
modify: 'modify',
delete: 'delete',
publish: 'publish',
- preview: 'preview'
+ preview: 'preview',
+ mapLocation: 'Save map positioning',
+ saveBackground: 'Save Background',
+ saveData: 'Save Data',
+ stepNum: 'Step number',
+ stepDescription: 'Steps describe',
+ rulesId: 'Please enter the step number',
+ rulesDescription: 'Enter the prompt information',
+ createStepInfo: 'Creating Procedure Information',
+ editStepInfo: 'Modifying Step Information',
+ saveStepData: 'Save Step Information',
+ roleSelect: 'role choices'
};
diff --git a/src/i18n/langs/zh/trainingManage.js b/src/i18n/langs/zh/trainingManage.js
index 17c66bf3b..b84cbb897 100644
--- a/src/i18n/langs/zh/trainingManage.js
+++ b/src/i18n/langs/zh/trainingManage.js
@@ -10,5 +10,16 @@ export default {
modify: '修改',
delete: '删除',
publish: '发布',
- preview: '预览'
+ preview: '预览',
+ mapLocation: '保存地图定位',
+ saveBackground: '保存背景',
+ saveData: '保存数据',
+ stepNum: '步骤序号',
+ stepDescription: '步骤描述',
+ rulesId: '请输入步骤序号',
+ rulesDescription: '请输入步骤提示信息',
+ createStepInfo: '创建步骤信息',
+ editStepInfo: '修改步骤信息',
+ saveStepData: '保存步骤',
+ roleSelect: '角色选择'
};
diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js
index d0c665bf2..373696a28 100644
--- a/src/scripts/ConstConfig.js
+++ b/src/scripts/ConstConfig.js
@@ -255,8 +255,8 @@ export default {
{ label: 'SD', value: 'SD' }
],
trainingType: [ // 实训类型
- { enlabel: 'single operation', label: '单操', value: 'single'},
- { enlabel: 'scene operation', label: '场景', value: 'scene'}
+ { enlabel: 'single operation', label: '单操', value: 'SINGLE'},
+ { enlabel: 'scene operation', label: '场景', value: 'SCENE'}
],
ioDirectionList:[ // 出入口类型
{value:'DOWN_IN_STATION', label:'下行进站'},
diff --git a/src/views/trainingManage/EditContent.vue b/src/views/trainingManage/EditContent.vue
index 7cfb29c14..685390074 100644
--- a/src/views/trainingManage/EditContent.vue
+++ b/src/views/trainingManage/EditContent.vue
@@ -5,115 +5,194 @@
{{ $t('trainingManage.editTagTitle') }}
-
-
+
+
+ 新增步骤
+
+