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) }) })