From 0237a53ecff321f740b42ab82e8d6fec0f571fcd Mon Sep 17 00:00:00 2001 From: qinoy Date: Fri, 30 Sep 2022 17:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=BD=AC=E6=8D=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/repository/RepositoryList.vue | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryList.vue b/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryList.vue index 745dda4..4982630 100644 --- a/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryList.vue +++ b/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryList.vue @@ -292,7 +292,7 @@ 移动至 创建副本 - 模型转换 + 模型转换 导出 删除 取消 @@ -372,7 +372,7 @@ :visible.sync="modelConvertDialog.visible" :title="modelConvertDialog.title">
- {{ modelConvertDialog.content }} +
请选择要转换的模型类型:
@@ -537,7 +537,8 @@ content: '', repositoryIds: [], type: '', // single / batch - loading: false + loading: false, + footerBtnVisible: false } } }, @@ -642,19 +643,20 @@ awsuiAxios.post(data).then(function (ro) { if(ro.result == 'ok') { that.modelConvertDialog.loading = false; - console.log('重名校验',ro); + // console.log('重名校验',ro); if (ro.data.duplicateName) { that.modelConvertDialog.title = '提示'; that.modelConvertDialog.isSameName = true; if (that.modelConvertDialog.type === 'single') { - that.modelConvertDialog.content = `【${ro.data.repositoryName}】名称已经存在,是否继续转换生成新的副本`; + that.modelConvertDialog.content = `文件【${ro.data.repositoryName}】已经存在,是否继续转换生成新的副本`; }else if (that.modelConvertDialog.type === 'batch') { let repositoryNames = ro.data.repositoryNames; - console.log('重名',repositoryNames); - let content = ''; + // console.log('重名',repositoryNames); + let content = `文件
`; repositoryNames.forEach(item => { - content = `文件【${item}】\n`; + content += `【${item}】
`; }); + content += '已经存在,是否继续转换生成新的副本'; that.modelConvertDialog.content = content; } that.modelConvertDialog.duplicateName = ro.data.duplicateName; @@ -1001,12 +1003,20 @@ let checkedCount = val.length; that.modelConvertDialog.repositoryIds = []; if (checkedCount > 0) { + let flag = false; val.forEach(item => { if (that.modelConvertDialog.repositoryIds.indexOf(item.id) === -1){ that.modelConvertDialog.repositoryIds.push(item.id); } + if (item.methodId !== 'process.epc'){ + flag = true; + } }); - console.log('======',that.modelConvertDialog.repositoryIds); + if (flag){ + that.modelConvertDialog.footerBtnVisible = false; + }else { + that.modelConvertDialog.footerBtnVisible = true; + } that.showFooter = true; //控制多选选中后不隐藏 for (let i = 0; i < checkedCount; i++) {