diff --git a/core/core-backend/src/main/java/io/dataease/template/dao/auto/entity/VisualizationTemplateCategory.java b/core/core-backend/src/main/java/io/dataease/template/dao/auto/entity/VisualizationTemplateCategory.java index e7b5ceb0b2..e3569062c6 100644 --- a/core/core-backend/src/main/java/io/dataease/template/dao/auto/entity/VisualizationTemplateCategory.java +++ b/core/core-backend/src/main/java/io/dataease/template/dao/auto/entity/VisualizationTemplateCategory.java @@ -37,7 +37,7 @@ public class VisualizationTemplateCategory implements Serializable { private Integer level; /** - * 模版种类 dataV or dashboard 目录或者文件夹 + * 模板种类 dataV or dashboard 目录或者文件夹 */ private String dvType; diff --git a/core/core-backend/src/main/java/io/dataease/template/service/TemplateManageService.java b/core/core-backend/src/main/java/io/dataease/template/service/TemplateManageService.java index b679119b93..1c33765e08 100644 --- a/core/core-backend/src/main/java/io/dataease/template/service/TemplateManageService.java +++ b/core/core-backend/src/main/java/io/dataease/template/service/TemplateManageService.java @@ -102,7 +102,7 @@ public class TemplateManageService implements TemplateManageApi { } else {//模板插入 同名的模板进行覆盖(先删除) // 分类映射删除 extTemplateMapper.deleteCategoryMapByTemplate(request.getName(),null); - // 模版删除 + // 模板删除 QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq("name", request.getName()); templateMapper.delete(wrapper); @@ -157,7 +157,7 @@ public class TemplateManageService implements TemplateManageApi { return templateManageDTO; } - //模版名称检查 + //模板名称检查 public String nameCheck(String optType, String name, String id) { QueryWrapper wrapper = new QueryWrapper<>(); if (CommonConstants.OPT_TYPE.INSERT.equals(optType)) { @@ -174,7 +174,7 @@ public class TemplateManageService implements TemplateManageApi { } } - //分类下模版名称检查 + //分类下模板名称检查 @Override public String categoryTemplateNameCheck(TemplateManageRequest request) { Long result = extTemplateMapper.checkCategoryTemplateName(request.getName(), request.getCategories()); @@ -215,7 +215,7 @@ public class TemplateManageService implements TemplateManageApi { queryWrapper.eq("template_id", id); queryWrapper.eq("category_id", categoryId); categoryMapMapper.delete(queryWrapper); - // 如何是最后一个 则实际模版需要删除 + // 如何是最后一个 则实际模板需要删除 Long result = extTemplateMapper.checkRepeatTemplateId(categoryId, id); if (result == 0) { templateMapper.deleteById(id); @@ -225,7 +225,7 @@ public class TemplateManageService implements TemplateManageApi { @Override public String deleteCategory(String id) { Assert.notNull(id, "id cannot be null"); - // 该分类下是否有其他分类公用的模版 + // 该分类下是否有其他分类公用的模板 Long checkResult = extTemplateMapper.checkCategoryMap(id); if (checkResult == 0) { @@ -287,7 +287,7 @@ public class TemplateManageService implements TemplateManageApi { queryWrapper.eq("template_id", templateId); queryWrapper.eq("category_id", categoryId); categoryMapMapper.delete(queryWrapper); - // 如何是最后一个 则实际模版需要删除 + // 如何是最后一个 则实际模板需要删除 Long result = extTemplateMapper.checkRepeatTemplateId(categoryId, templateId); if (result == 0) { templateMapper.deleteById(templateId); diff --git a/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql b/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql index b31c9f69e5..19b4d70bac 100644 --- a/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql +++ b/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql @@ -4,12 +4,12 @@ CREATE TABLE `visualization_template` ( `name` varchar(255) DEFAULT NULL COMMENT '名称', `pid` varchar(255) DEFAULT NULL COMMENT '父级id', `level` int DEFAULT NULL COMMENT '层级', - `dv_type` varchar(255) DEFAULT NULL COMMENT '模版种类 dataV or dashboard 目录或者文件夹', + `dv_type` varchar(255) DEFAULT NULL COMMENT '模板种类 dataV or dashboard 目录或者文件夹', `node_type` varchar(255) DEFAULT NULL COMMENT '节点类型 folder or panel 目录或者文件夹', `create_by` varchar(255) DEFAULT NULL COMMENT '创建人', `create_time` bigint DEFAULT NULL COMMENT '创建时间', `snapshot` longtext COMMENT '缩略图', - `template_type` varchar(255) DEFAULT NULL COMMENT '模版类型 system 系统内置 self 用户自建 ', + `template_type` varchar(255) DEFAULT NULL COMMENT '模板类型 system 系统内置 self 用户自建 ', `template_style` longtext COMMENT 'template 样式', `template_data` longtext COMMENT 'template 数据', `dynamic_data` longtext COMMENT '预存数据', @@ -25,7 +25,7 @@ CREATE TABLE `visualization_template_category` ( `name` varchar(255) DEFAULT NULL COMMENT '名称', `pid` varchar(255) DEFAULT NULL COMMENT '父级id', `level` int DEFAULT NULL COMMENT '层级', - `dv_type` varchar(255) DEFAULT NULL COMMENT '模版种类 dataV or dashboard 目录或者文件夹', + `dv_type` varchar(255) DEFAULT NULL COMMENT '模板种类 dataV or dashboard 目录或者文件夹', `node_type` varchar(255) DEFAULT NULL COMMENT '节点类型 folder or panel 目录或者文件夹', `create_by` varchar(255) DEFAULT NULL COMMENT '创建人', `create_time` bigint DEFAULT NULL COMMENT '创建时间', diff --git a/core/core-backend/src/main/resources/db/migration/V2.1__ddl.sql b/core/core-backend/src/main/resources/db/migration/V2.1__ddl.sql index b749961120..276ae4a776 100644 --- a/core/core-backend/src/main/resources/db/migration/V2.1__ddl.sql +++ b/core/core-backend/src/main/resources/db/migration/V2.1__ddl.sql @@ -4,12 +4,12 @@ CREATE TABLE `visualization_template` ( `name` varchar(255) DEFAULT NULL COMMENT '名称', `pid` varchar(255) DEFAULT NULL COMMENT '父级id', `level` int DEFAULT NULL COMMENT '层级', - `dv_type` varchar(255) DEFAULT NULL COMMENT '模版种类 dataV or dashboard 目录或者文件夹', + `dv_type` varchar(255) DEFAULT NULL COMMENT '模板种类 dataV or dashboard 目录或者文件夹', `node_type` varchar(255) DEFAULT NULL COMMENT '节点类型 folder or panel 目录或者文件夹', `create_by` varchar(255) DEFAULT NULL COMMENT '创建人', `create_time` bigint DEFAULT NULL COMMENT '创建时间', `snapshot` longtext COMMENT '缩略图', - `template_type` varchar(255) DEFAULT NULL COMMENT '模版类型 system 系统内置 self 用户自建 ', + `template_type` varchar(255) DEFAULT NULL COMMENT '模板类型 system 系统内置 self 用户自建 ', `template_style` longtext COMMENT 'template 样式', `template_data` longtext COMMENT 'template 数据', `dynamic_data` longtext COMMENT '预存数据', @@ -25,7 +25,7 @@ CREATE TABLE `visualization_template_category` ( `name` varchar(255) DEFAULT NULL COMMENT '名称', `pid` varchar(255) DEFAULT NULL COMMENT '父级id', `level` int DEFAULT NULL COMMENT '层级', - `dv_type` varchar(255) DEFAULT NULL COMMENT '模版种类 dataV or dashboard 目录或者文件夹', + `dv_type` varchar(255) DEFAULT NULL COMMENT '模板种类 dataV or dashboard 目录或者文件夹', `node_type` varchar(255) DEFAULT NULL COMMENT '节点类型 folder or panel 目录或者文件夹', `create_by` varchar(255) DEFAULT NULL COMMENT '创建人', `create_time` bigint DEFAULT NULL COMMENT '创建时间', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index d80592a571..6c4ea522a5 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/DeTemplateImport.vue b/core/core-frontend/src/views/template/component/DeTemplateImport.vue index ae1df09219..d59cd3d154 100644 --- a/core/core-frontend/src/views/template/component/DeTemplateImport.vue +++ b/core/core-frontend/src/views/template/component/DeTemplateImport.vue @@ -9,9 +9,9 @@ >
- + 导入模版导入模板 { categoryTemplateNameCheck(nameCheckRequest).then(response => { if (response.data.indexOf('exist') > -1) { ElMessageBox.confirm('提示', { - tip: '当前分类存在相同模版名称,是否覆盖?', + tip: '当前分类存在相同模板名称,是否覆盖?', confirmButtonType: 'danger', type: 'warning', autofocus: false, diff --git a/core/core-frontend/src/views/template/index.vue b/core/core-frontend/src/views/template/index.vue index cb3a309694..2cee63c152 100644 --- a/core/core-frontend/src/views/template/index.vue +++ b/core/core-frontend/src/views/template/index.vue @@ -57,7 +57,7 @@ class="custom-position" > - 暂无模版 + 暂无模板 - 没有找到相关模版 + 没有找到相关模板
@@ -398,7 +398,7 @@ const categoryDelete = id => { getTree() } else { ElMessageBox.confirm('无法删除分类', { - tip: '请先移除该分类下所有模版再进行删除分类操作', + tip: '请先移除该分类下所有模板再进行删除分类操作', confirmButtonText: '知道了', confirmButtonType: 'default', showCancelButton: false, @@ -412,7 +412,7 @@ const categoryDelete = id => { } const templateDeleteInfo = id => { if (id) { - ElMessageBox.confirm('确定删除该模版吗?', { + ElMessageBox.confirm('确定删除该模板吗?', { tip: '', confirmButtonType: 'danger', type: 'warning', @@ -458,7 +458,7 @@ const categoryEdit = templateInfo => { const templateEdit = templateInfo => { state.templateDialog.visible = true - state.templateDialog.title = '编辑模版' + state.templateDialog.title = '编辑模板' state.templateDialog.optType = 'update' state.templateDialog.templateId = templateInfo.id } @@ -532,7 +532,7 @@ const closeEditTemplateDialog = () => { const templateImport = pid => { state.templateDialog.visible = true - state.templateDialog.title = '导入模版' + state.templateDialog.title = '导入模板' state.templateDialog.templateId = null state.templateDialog.optType = 'insert' state.templateDialog.pid = pid