From 6e25bafd373b53d345a9c5ffc72882e04504a06b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 27 Dec 2023 12:15:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=96=87=E6=A1=88=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 2 +- .../template/component/DeCategoryChange.vue | 19 +++++++++++++++++-- .../src/views/template/index.vue | 5 +++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index bbdfc77ada..d80592a571 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -631,7 +631,7 @@ export default { belong_group: '所属分组', select_group: '选择分组', name_can_not_empty: '名称不能为空', - template_can_not_empty: '请选择仪表版', + template_can_not_empty: '请导入模版', custom_count: '记录数', table_title_fontsize: '表头字体大小', table_item_fontsize: '表格字体大小', diff --git a/core/core-frontend/src/views/template/component/DeCategoryChange.vue b/core/core-frontend/src/views/template/component/DeCategoryChange.vue index 23264445a0..ca850a0b50 100644 --- a/core/core-frontend/src/views/template/component/DeCategoryChange.vue +++ b/core/core-frontend/src/views/template/component/DeCategoryChange.vue @@ -8,7 +8,12 @@ label-position="top" > - + { templateIds: props.templateIds, categories: state.templateInfo.categories } + if (!state.templateInfo.categories.length) { + ElMessage.warning('请选择分类') + return false + } batchUpdate(params).then(rsp => { + ElMessage({ + message: '修改成功', + type: 'success', + showClose: true + }) emits('refresh') emits('closeBatchEditTemplateDialog') }) diff --git a/core/core-frontend/src/views/template/index.vue b/core/core-frontend/src/views/template/index.vue index 257572116d..cb3a309694 100644 --- a/core/core-frontend/src/views/template/index.vue +++ b/core/core-frontend/src/views/template/index.vue @@ -283,6 +283,11 @@ const batchPreDelete = () => { categories: [state.currentTemplateId] } batchDelete(params).then(rsp => { + ElMessage({ + message: t('commons.delete_success'), + type: 'success', + showClose: true + }) showCurrentTemplate(state.currentTemplateId, state.currentTemplateLabel) }) })