From ba81b37ca083bd9adc9d28824a2b3db7bece9035 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 22 Aug 2022 13:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trainingManage.js | 4 +- src/i18n/langs/en/index.js | 4 +- src/i18n/langs/en/trainingManage.js | 14 ++++ src/i18n/langs/zh/index.js | 4 +- src/i18n/langs/zh/trainingManage.js | 14 ++++ .../{editBlob.vue => EditContent.vue} | 73 ++++++++++++++++--- src/views/trainingManage/demonMenu.vue | 10 ++- src/views/trainingManage/trainingList.vue | 47 +++++++----- 8 files changed, 134 insertions(+), 36 deletions(-) create mode 100644 src/i18n/langs/en/trainingManage.js create mode 100644 src/i18n/langs/zh/trainingManage.js rename src/views/trainingManage/{editBlob.vue => EditContent.vue} (61%) diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js index 63c99781b..3d03fe652 100644 --- a/src/api/trainingManage.js +++ b/src/api/trainingManage.js @@ -57,9 +57,9 @@ export function publishTraining(data) { }); } /** 更新当前用户的某个实训草稿的大字段信息 */ -export function updateTrainingBlob(data) { +export function updateTrainingContent(data) { return request({ - url: `/api/v2/draft/training/update/blob`, + url: `/api/v2/draft/training/update/content`, method: 'post', data }); diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js index 6b247f001..1687a124b 100644 --- a/src/i18n/langs/en/index.js +++ b/src/i18n/langs/en/index.js @@ -28,6 +28,7 @@ import approval from './approval'; import systemGenerate from './systemGenerate'; import login from './login'; import designPlatform from './designPlatform'; +import trainingManage from './trainingManage'; export default { enLocale, @@ -59,5 +60,6 @@ export default { approval, systemGenerate, login, - designPlatform + designPlatform, + trainingManage }; diff --git a/src/i18n/langs/en/trainingManage.js b/src/i18n/langs/en/trainingManage.js new file mode 100644 index 000000000..b354b8476 --- /dev/null +++ b/src/i18n/langs/en/trainingManage.js @@ -0,0 +1,14 @@ +export default { + create: 'create', + editTagTitle: 'Training establishment', + name: 'The name of the training', + description: 'description', + type: 'type', + labelJson: 'tag', + operate: 'operate', + record: 'record', + modify: 'modify', + delete: 'delete', + publish: 'publish', + preview: 'preview' +}; diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js index 3974061e3..36de12e12 100644 --- a/src/i18n/langs/zh/index.js +++ b/src/i18n/langs/zh/index.js @@ -28,6 +28,7 @@ import approval from './approval'; import systemGenerate from './systemGenerate'; import login from './login'; import designPlatform from './designPlatform'; +import trainingManage from './trainingManage'; export default { cnLocale, @@ -59,5 +60,6 @@ export default { approval, systemGenerate, login, - designPlatform + designPlatform, + trainingManage }; diff --git a/src/i18n/langs/zh/trainingManage.js b/src/i18n/langs/zh/trainingManage.js new file mode 100644 index 000000000..17c66bf3b --- /dev/null +++ b/src/i18n/langs/zh/trainingManage.js @@ -0,0 +1,14 @@ +export default { + create: '创建', + editTagTitle: '实训编制', + name: '实训名称', + description: '描述', + type: '类型', + labelJson: '标签', + operate: '操作', + record: '编制', + modify: '修改', + delete: '删除', + publish: '发布', + preview: '预览' +}; diff --git a/src/views/trainingManage/editBlob.vue b/src/views/trainingManage/EditContent.vue similarity index 61% rename from src/views/trainingManage/editBlob.vue rename to src/views/trainingManage/EditContent.vue index ac7c160d5..7cfb29c14 100644 --- a/src/views/trainingManage/editBlob.vue +++ b/src/views/trainingManage/EditContent.vue @@ -1,23 +1,44 @@ - - - - {{ $t('global.confirm') }} - {{ $t('global.cancel') }} - - + + + + {{ $t('trainingManage.editTagTitle') }} + + + + + + {{ $t('global.confirm') }} + {{ $t('global.cancel') }} + + +