From d0c5536cfbc0cf4a599acc87137dc67da651363e Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 27 Dec 2023 12:00:26 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A8=A1=E7=89=88=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=96=87=E6=A1=88=E7=AD=89=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/component/DeTemplateImport.vue | 42 ++++++++++++++++--- .../template/component/DeTemplateList.vue | 3 +- .../src/views/template/index.vue | 11 ++++- 3 files changed, 47 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/views/template/component/DeTemplateImport.vue b/core/core-frontend/src/views/template/component/DeTemplateImport.vue index e5360331a5..ae1df09219 100644 --- a/core/core-frontend/src/views/template/component/DeTemplateImport.vue +++ b/core/core-frontend/src/views/template/component/DeTemplateImport.vue @@ -9,10 +9,10 @@ >
- - {{ - t('visualization.upload_template') - }} + + 导入模版 - + +
+ 暂无可选分类 +
{ } categoryTemplateNameCheck(nameCheckRequest).then(response => { if (response.data.indexOf('exist') > -1) { - ElMessageBox.confirm('提示?', { + ElMessageBox.confirm('提示', { tip: '当前分类存在相同模版名称,是否覆盖?', confirmButtonType: 'danger', type: 'warning', @@ -301,4 +310,25 @@ if (props.templateId) { height: 1px; background-color: rgba(31, 35, 41, 0.15); } + +.custom-category-empty { + .ed-scrollbar { + display: inherit !important; + } + + .custom-dropdown__empty { + display: inherit !important; + } + + .ed-select-dropdown__empty { + display: none !important; + } +} + +.custom-dropdown__empty { + display: none; + margin-left: 12px; + font-size: 14px; + color: rgba(143, 149, 158, 1); +} diff --git a/core/core-frontend/src/views/template/component/DeTemplateList.vue b/core/core-frontend/src/views/template/component/DeTemplateList.vue index 21f770b083..0ee0720322 100644 --- a/core/core-frontend/src/views/template/component/DeTemplateList.vue +++ b/core/core-frontend/src/views/template/component/DeTemplateList.vue @@ -105,8 +105,9 @@ const add = () => { } const categoryDelete = template => { ElMessageBox.confirm('确定删除该分类吗?', { - tip: '', + tip: '删除后不可恢复,是否继续?', confirmButtonType: 'danger', + confirmButtonText: t('common.delete'), type: 'warning', autofocus: false, showClose: false diff --git a/core/core-frontend/src/views/template/index.vue b/core/core-frontend/src/views/template/index.vue index cd1ebd4067..257572116d 100644 --- a/core/core-frontend/src/views/template/index.vue +++ b/core/core-frontend/src/views/template/index.vue @@ -392,8 +392,8 @@ const categoryDelete = id => { }) getTree() } else { - ElMessageBox.confirm('无法删除分类?', { - tip: '请移除该分类下所有模版再进行删除分类操作', + ElMessageBox.confirm('无法删除分类', { + tip: '请先移除该分类下所有模版再进行删除分类操作', confirmButtonText: '知道了', confirmButtonType: 'default', showCancelButton: false, @@ -411,6 +411,7 @@ const templateDeleteInfo = id => { tip: '', confirmButtonType: 'danger', type: 'warning', + confirmButtonText: t('common.delete'), autofocus: false, showClose: false }).then(() => { @@ -466,6 +467,11 @@ const saveTemplateEdit = templateEditForm => { if (valid) { save({ ...templateEditForm }).then(response => { state.currentTemplateLabel = templateEditForm.name + ElMessage({ + message: '添加成功', + type: 'success', + showClose: true + }) getTree() close() }) @@ -521,6 +527,7 @@ const closeEditTemplateDialog = () => { const templateImport = pid => { state.templateDialog.visible = true + state.templateDialog.title = '导入模版' state.templateDialog.templateId = null state.templateDialog.optType = 'insert' state.templateDialog.pid = pid