diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java index 5ac86ab0a..85d6d0b5a 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java @@ -35,6 +35,7 @@ import com.jero.modules.project.util.WordUtil; import com.jero.modules.split.common.ReadExcel; import com.jero.modules.system.entity.SysDictItem; import com.jero.modules.system.service.ISysDictItemService; +import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.apache.poi.hssf.util.HSSFColor; @@ -762,21 +763,21 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl allParamsInfoList = queryForExportCustom(paramsReportDetailVO); - Map params = allParamsInfoList.get(0); - List> imgListAll = (List>) allParamsInfoList.get(1).get("imgListAll"); - - String templateUrl = ""; - ParamsExportTemplateEO paramsExportTemplateEO = paramsExportTemplateEOService.getById(paramsReportDetailVO.getExportTemplateId()); - List ossFiles = ossFileService.getFileInfosByConnectId(paramsExportTemplateEO.getFileConnectId()); - if (CollectionUtil.isNotEmpty(ossFiles)) { - templateUrl = ossFiles.get(0).getUrl(); - } - // 替换模板中的占位符 try { + // 查询导出数据 + List allParamsInfoList = queryForExportCustom(paramsReportDetailVO); + Map params = allParamsInfoList.get(0); + List> imgListAll = (List>) allParamsInfoList.get(1).get("imgListAll"); + + String templateUrl = ""; + ParamsExportTemplateEO paramsExportTemplateEO = paramsExportTemplateEOService.getById(paramsReportDetailVO.getExportTemplateId()); + List ossFiles = ossFileService.getFileInfosByConnectId(paramsExportTemplateEO.getFileConnectId()); + if (CollectionUtil.isNotEmpty(ossFiles)) { + templateUrl = ossFiles.get(0).getUrl(); + } + // 拿取模板 String repFileName = fileName.replaceAll("/","_"); wordOS = new FileOutputStream(fileNowPath + File.separator + repFileName); @@ -788,16 +789,36 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl> fileListAll = (List>) allParamsInfoList.get(2).get("fileListAll"); if (fileListAll != null && !fileListAll.isEmpty()) { - Map paramsAfterFilter = WordUtil.filterParams(wordMLPackage, params); + Map paramsAfterFilter = WordUtil.filterParams(wordMLPackage, params); // 过滤出需要导出的参数项 if (CollectionUtil.isNotEmpty(paramsAfterFilter)) { List nioNumberList = paramsAfterFilter.keySet().stream().collect(Collectors.toList()); List allRelevFileList = new ArrayList<>(); + // 判断文件是否重复 for (Map fileMap : fileListAll) { for (Map.Entry map : fileMap.entrySet()) { String key = (String) map.getKey(); List fileList = (List) map.getValue(); + if (nioNumberList.contains(key)) { - allRelevFileList.addAll(fileList); + String newFileName = isRepeat(allRelevFileList, fileList.get(0)); + if (!"".equals(newFileName) && !"old".equals(newFileName)) { // 文件名称重复 且文件内容不同 + String configDataStr = params.get(key); + if (StringUtils.isNotEmpty(configDataStr)) { + if (configDataStr.contains("#")) { + String newConfigDataStr = configDataStr.substring(0, configDataStr.lastIndexOf("#")) + newFileName; + params.put(key, newConfigDataStr); + } else { + params.put(key, newFileName); + } + } + + fileList.get(0).setFileName(newFileName); + allRelevFileList.addAll(fileList); + + } else if ("".equals(newFileName)) { // 文件名称不重复 + allRelevFileList.addAll(fileList); + + } } } } @@ -893,21 +914,21 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl allParamsInfoList = queryForExportCustom(paramsReportDetailVO); - HashMap params = (HashMap) allParamsInfoList.get(0); - List> imgListAll = (List>) allParamsInfoList.get(1).get("imgListAll"); - - String templateUrl = ""; - ParamsExportTemplateEO paramsExportTemplateEO = paramsExportTemplateEOService.getById(paramsReportDetailVO.getExportTemplateId()); - List ossFiles = ossFileService.getFileInfosByConnectId(paramsExportTemplateEO.getFileConnectId()); - if (CollectionUtil.isNotEmpty(ossFiles)) { - templateUrl = ossFiles.get(0).getUrl(); - } - // 替换模板中的占位符 try { + // 查询导出数据 + List allParamsInfoList = queryForExportCustom(paramsReportDetailVO); + HashMap params = (HashMap) allParamsInfoList.get(0); + List> imgListAll = (List>) allParamsInfoList.get(1).get("imgListAll"); + + String templateUrl = ""; + ParamsExportTemplateEO paramsExportTemplateEO = paramsExportTemplateEOService.getById(paramsReportDetailVO.getExportTemplateId()); + List ossFiles = ossFileService.getFileInfosByConnectId(paramsExportTemplateEO.getFileConnectId()); + if (CollectionUtil.isNotEmpty(ossFiles)) { + templateUrl = ossFiles.get(0).getUrl(); + } + // 拿取模板 String repFileName = fileName.replaceAll("/","_"); wordOS = new FileOutputStream(fileNowPath + File.separator + repFileName); @@ -931,7 +952,25 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl fileList = (List) map.getValue(); if (nioNumberList.contains(key)) { - allRelevFileList.addAll(fileList); + String newFileName = isRepeat(allRelevFileList, fileList.get(0)); + if (!"".equals(newFileName) && !"old".equals(newFileName)) { // 文件名称重复 且文件内容不同 + String configDataStr = params.get(key); + if (StringUtils.isNotEmpty(configDataStr)) { + if (configDataStr.contains("#")) { + String newConfigDataStr = configDataStr.substring(0, configDataStr.lastIndexOf("#")) + newFileName; + params.put(key, newConfigDataStr); + } else { + params.put(key, newFileName); + } + } + + fileList.get(0).setFileName(newFileName); + allRelevFileList.addAll(fileList); + + } else if ("".equals(newFileName)) { // 文件名称不重复 + allRelevFileList.addAll(fileList); + + } } } } @@ -1064,7 +1103,7 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl> queryForExportNormal(ParamsReportDetailVO paramsReportDetailVO) { + private List> queryForExportNormal(ParamsReportDetailVO paramsReportDetailVO) throws IOException { List idList = new ArrayList<>(); if (StringUtils.isNotEmpty(paramsReportDetailVO.getIds())) { idList = Arrays.asList(paramsReportDetailVO.getIds().split(",")); @@ -1074,6 +1113,7 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl paramsConfigEOList = paramsReportConfigEOService.queryList(paramsReportDetailVO.getParamsManifestId()); // 查询所有配置列 + List fileListAll = new ArrayList<>(); // 仅用于校验文件是否重复 // 查询配置列数据 for (Map record1 : dataList) { @@ -1086,7 +1126,7 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImplconfigIdList.contains(e.getId())).collect(Collectors.toList()); // 过滤出要导出的配置列 - paramsConfigEOList.forEach(paramsConfigEO -> { // 参数配置 + for (ParamsConfigEO paramsConfigEO : paramsConfigEOList) { // 参数配置 if (ControlTypeEnum.Title.getValue().equals(controlType)) { record1.put(paramsConfigEO.getId(), titleDefaultValue); @@ -1103,9 +1143,24 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl ossFileList = ossFileService.getFileInfosByConnectId(paramsConfigDataEO.getFileConnectId()); if (CollectionUtil.isNotEmpty(ossFileList)) { - configDataBuilder.append(ossFileList.get(0).getFileName()).append("#"); + // 不合并导出时 验证文件名是否相同,相同进一步验证文件内容是否相同,不同时重命名文件 + String fileName = ossFileList.get(0).getFileName(); + String newFileName = isRepeat(fileListAll, ossFileList.get(0)); + if (!"".equals(newFileName) && !"old".equals(newFileName)) { // 文件名称重复 且文件内容不同 + configDataBuilder.append(newFileName).append("#"); + ossFileList.get(0).setFileName(newFileName); + fileList.addAll(ossFileList); + fileListAll.addAll(ossFileList); + + } else if ("old".equals(newFileName)) { // 文件名称重复 且文件内容相同 + configDataBuilder.append(fileName).append("#"); + fileList.addAll(ossFileList); + }else { + configDataBuilder.append(fileName).append("#"); + fileList.addAll(ossFileList); + fileListAll.addAll(ossFileList); + } - fileList.addAll(ossFileList); } } @@ -1116,7 +1171,7 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl ossFileList = ossFileService.getFileInfosByConnectId(paramsReportConfigDataEO.getFileConnectId()); if (CollectionUtil.isNotEmpty(ossFileList)) { - fileNameList.add(ossFileList.get(0).getFileName()); + // 合并导出时 验证文件名是否相同,相同进一步验证文件内容是否形同,不同时重命名文件 + String fileName = ossFileList.get(0).getFileName(); + String newFileName = isRepeat(fileListAll, ossFileList.get(0)); + if (!"".equals(newFileName) && !"old".equals(newFileName)) { // 文件名称重复 且文件内容不同 + // 判断 新文件名是不是当前参数下 配置间的 重复 + int count = (int) fileList.stream().filter(e->newFileName.equals(e.getFileName())).count(); + if (count <= 0) { // 不是 (如果是,不做任何操作) + fileNameList.add(newFileName); + ossFileList.get(0).setFileName(newFileName); + fileList.addAll(ossFileList); + fileListAll.addAll(ossFileList); + } + + } else if ("old".equals(newFileName)) { // 文件名称重复 且文件内容相同 + + // 判断这种重复是不是当前参数下 配置间的 + int count = (int) fileList.stream().filter(e->fileName.equals(e.getFileName())).count(); + if (count <= 0) { // 不是 (如果是,不做任何操作) + fileNameList.add(fileName); + fileList.addAll(ossFileList); + fileListAll.addAll(ossFileList); + } + + }else { // 文件名称不重复 + fileNameList.add(fileName); + fileList.addAll(ossFileList); + fileListAll.addAll(ossFileList); + } - fileList.addAll(ossFileList); } } } @@ -1151,7 +1232,7 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl queryForExportCustom(ParamsReportDetailVO paramsReportDetailVO) { + private List queryForExportCustom(ParamsReportDetailVO paramsReportDetailVO) throws IOException { paramsReportDetailVO.setSeparator("*"); // 设置分隔符 List idList = new ArrayList<>(); @@ -1194,8 +1275,8 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl fileList = new ArrayList<>(); - List imgFileList = new ArrayList<>(); + List fileList = new ArrayList<>(); // 存放当前编号下的非图片文件 + List imgFileList = new ArrayList<>(); // 存放当前编号下的图片文件 // 合并配置数据 String configData = ""; @@ -1208,7 +1289,8 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl fileNameList = new ArrayList<>(); - for (ParamsReportConfigDataEO paramsReportConfigDataEO : paramsReportConfigDataEOS) { // 获取”导出文件夹“下的文件 + if (CollectionUtil.isNotEmpty(paramsReportConfigDataEOS)) { + ParamsReportConfigDataEO paramsReportConfigDataEO = paramsReportConfigDataEOS.get(0); // 获取”导出文件夹“下的文件 if (StringUtils.isNotEmpty(paramsReportConfigDataEO.getFileConnectId())) { List ossFileList = ossFileService.getFileInfosByConnectId(paramsReportConfigDataEO.getFileConnectId()); if (CollectionUtil.isNotEmpty(ossFileList)) { @@ -1561,6 +1643,73 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl fileList, OSSFile ossFile) throws IOException { + String fileName = ossFile.getFileName(); + String currentFileUrl = ossFile.getUrl(); + + List result = fileList.stream().filter(e-> fileName.equals(e.getFileName())).collect(Collectors.toList()); + if (result.size() > 0) { // 文件名重复 + String fileUrl = result.get(0).getUrl(); + if (!compareFileContent(currentFileUrl, fileUrl)) { // 文件内容不同 + List sameFileList = fileList.stream().filter(e-> compareFileName(fileName, e.getFileName())).collect(Collectors.toList()); + int count = sameFileList.size(); + if (count > 0) { + // 判断 和重命名的文件 内容是否相同 + for (OSSFile file : sameFileList) { + if (compareFileContent(currentFileUrl, file.getUrl())) { + return file.getFileName(); + } + } + // 遍历完 没相同的 再重命名 + String newFileName = fileName.substring(0, fileName.lastIndexOf(".")) + (count + 1) + fileName.substring(fileName.lastIndexOf(".")); + return newFileName; + + } else { + String newFileName = fileName.substring(0, fileName.lastIndexOf(".")) + (count + 1) + fileName.substring(fileName.lastIndexOf(".")); + return newFileName; + } + + } else { // 文件内容相同 + return "old"; + } + + } else { // 文件名不重复 + return ""; + } + } + + // 比较文件名,如 currentFileName: 文件.pdf ; fileName: 文件1.pdf + private boolean compareFileName(String currentFileName, String fileName) { + StringBuilder sb = new StringBuilder(); + sb.append(fileName.substring(0, fileName.lastIndexOf(".") - 1)); + sb.append(fileName.substring(fileName.lastIndexOf("."), fileName.length())); + if (currentFileName.equals(sb.toString())) { + return true; + } else { // 当 currentFileName = fileName 时 也返回false + return false; + } + } + /** * 实体对象转成Map * @param obj 实体对象 diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/controller/ParamsInfoEOController.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/controller/ParamsInfoEOController.java index 7723c44be..bad589083 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/controller/ParamsInfoEOController.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/controller/ParamsInfoEOController.java @@ -137,8 +137,7 @@ public class ParamsInfoEOController extends JeroController add(@Validated @RequestBody ParamsInfoEO paramsInfoEO) { - if (StringUtils.isEmpty(paramsInfoEO.getCertCategory()) - && !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) { + if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) { return Result.error("认证类别不能为空!"); } boolean isSuccess = paramsInfoEOService.add(paramsInfoEO); @@ -160,8 +159,7 @@ public class ParamsInfoEOController extends JeroController edit(@Validated @RequestBody ParamsInfoEO paramsInfoEO) { - if (StringUtils.isEmpty(paramsInfoEO.getCertCategory()) - && !ControlTypeEnum.Title.getValue().equals(paramsInfoEO.getControlType())) { + if (StringUtils.isEmpty(paramsInfoEO.getCertCategory())) { return Result.error("认证类别不能为空!"); } boolean isSuccess = paramsInfoEOService.editById(paramsInfoEO); diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java index b2dadc5c4..e88b4368f 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java @@ -1311,6 +1311,13 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl @@ -191,12 +192,14 @@ - + {{$t('yes')}} {{$t('not')}} - + @@ -748,4 +751,10 @@ ::v-deep .ant-modal-body{ overflow-y: visible!important; } + .item-input{ + height: 38px; + } + ::v-deep .ant-select{ + height: 38px; + } \ No newline at end of file diff --git a/jero-web/src/mixins/JeroListMixin.js b/jero-web/src/mixins/JeroListMixin.js index a63723895..a5ddfabce 100644 --- a/jero-web/src/mixins/JeroListMixin.js +++ b/jero-web/src/mixins/JeroListMixin.js @@ -87,6 +87,10 @@ export const JeroListMixin = { getAction(this.url.list, params).then((res) => { if (res.success) { //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ + if (res.result.current > 1 && res.result.records.length == 0) { + this.loadData(1) + return + } this.dataSource = res.result.records||res.result; if(res.result.total) { diff --git a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue index d24754c0c..fe5a2a79f 100644 --- a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue +++ b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue @@ -261,6 +261,11 @@ this.loading = true getAction(this.url.list, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.dataSource = res.result.records || [] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardList.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardList.vue index 5ab1f05dc..bbab9da1b 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardList.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardList.vue @@ -126,6 +126,11 @@ this.loading = true getAction(this.url.getInfoList, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.conList = res.result.records this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue index 335d28489..ef8eccc3b 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue @@ -241,6 +241,11 @@ this.loading = true getAction(this.url.list, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.dataSource = res.result.records || [] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue index e8efb5c01..4e5f366ef 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue @@ -183,6 +183,11 @@ this.loading = true getAction(this.url.getInfoList, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.conList = res.result.records if (this.conList && this.conList.length > 0) { this.conList.forEach(val => { diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue index 674d582b4..f752ef697 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue @@ -131,6 +131,11 @@ this.loading = true getAction(this.url.getInfoList, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.conList = res.result.records if (this.conList && this.conList.length > 0) { this.conList.forEach(val => { diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue index 16c344de0..d002831c3 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue @@ -206,7 +206,7 @@ getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue index ed6094a76..ff3d45cfd 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue @@ -194,7 +194,7 @@ getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/businessSupport/technologyAssessment/index.vue b/jero-web/src/views/businessSupport/technologyAssessment/index.vue index 8e83798ae..14d71ee58 100644 --- a/jero-web/src/views/businessSupport/technologyAssessment/index.vue +++ b/jero-web/src/views/businessSupport/technologyAssessment/index.vue @@ -331,6 +331,11 @@ this.loading = true getAction(this.url.list, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.dataSource = res.result.records || [] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/documentManage/collection/index.vue b/jero-web/src/views/documentManage/collection/index.vue index ab4f0e675..9c27a5711 100644 --- a/jero-web/src/views/documentManage/collection/index.vue +++ b/jero-web/src/views/documentManage/collection/index.vue @@ -164,6 +164,11 @@ this.loading = true postAction(`collection/onlCgformCollection/page`, params).then(res => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.queryParams.pageNo = 1 + this.loadData() + return + } this.tableData = [...res.result.records] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue index 5c9a49c3b..dc02a0bb9 100644 --- a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue +++ b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue @@ -1324,6 +1324,18 @@ border: 1px #00B3BE solid; color: #00B3BE; } + + ::v-deep .ant-select-tree { + width: auto; + height: 300px; + overflow: auto; + position: absolute; + /*background: #fff;*/ + } + + ::v-deep .ant-select-tree-dropdown { + min-height: 320px; + } \ No newline at end of file diff --git a/jero-web/src/views/documentTools/documentTranslation/index.vue b/jero-web/src/views/documentTools/documentTranslation/index.vue index 5b1458226..2111503b6 100644 --- a/jero-web/src/views/documentTools/documentTranslation/index.vue +++ b/jero-web/src/views/documentTools/documentTranslation/index.vue @@ -276,6 +276,11 @@ this.loading = true getAction(this.url.list, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.dataSource = res.result.records || [] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/documentTools/virtualList/index.vue b/jero-web/src/views/documentTools/virtualList/index.vue index 9df85be2d..3c4cbfda3 100644 --- a/jero-web/src/views/documentTools/virtualList/index.vue +++ b/jero-web/src/views/documentTools/virtualList/index.vue @@ -413,7 +413,7 @@ getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/parameter/ParameterTemplate/index.vue b/jero-web/src/views/parameter/ParameterTemplate/index.vue index 1d08acb9a..e29fd17b3 100644 --- a/jero-web/src/views/parameter/ParameterTemplate/index.vue +++ b/jero-web/src/views/parameter/ParameterTemplate/index.vue @@ -364,7 +364,7 @@ export default { getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/parameter/escalationlibrary/index.vue b/jero-web/src/views/parameter/escalationlibrary/index.vue index e039f52ea..dbb9e4a8a 100644 --- a/jero-web/src/views/parameter/escalationlibrary/index.vue +++ b/jero-web/src/views/parameter/escalationlibrary/index.vue @@ -236,7 +236,7 @@ getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/parameter/managementdetails/index.vue b/jero-web/src/views/parameter/managementdetails/index.vue index aa785af22..92c247e1b 100644 --- a/jero-web/src/views/parameter/managementdetails/index.vue +++ b/jero-web/src/views/parameter/managementdetails/index.vue @@ -363,7 +363,7 @@ export default { getAction(this.url.tableList, params).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getTableList() return } diff --git a/jero-web/src/views/parameter/parameterexport/index.vue b/jero-web/src/views/parameter/parameterexport/index.vue index da66a2fcd..dd2a91bbe 100644 --- a/jero-web/src/views/parameter/parameterexport/index.vue +++ b/jero-web/src/views/parameter/parameterexport/index.vue @@ -339,7 +339,7 @@ export default { getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/parameter/parameterlist/components/addModel.vue b/jero-web/src/views/parameter/parameterlist/components/addModel.vue index 4635092ce..5d5bd090f 100644 --- a/jero-web/src/views/parameter/parameterlist/components/addModel.vue +++ b/jero-web/src/views/parameter/parameterlist/components/addModel.vue @@ -134,7 +134,8 @@ - + +
@@ -248,8 +249,9 @@
+ - + @@ -470,11 +472,11 @@ export default { }, controlTypeChange(value){ this.$refs.ruleForm.clearValidate(['controlVerify','titleDefaultValue','controlValues']) - if(value == 11){ - this.required = false - }else { - this.required = true - } + // if(value == 11){ + // this.required = false + // }else { + // this.required = true + // } }, uploadSuccess(data) { let attIdList = [] @@ -645,11 +647,11 @@ export default { // value.technologyTerritory = value.technologyTerritory.split(',') // } this.formInline = value - if(this.formInline.controlType == 11){ - this.required = false - }else{ - this.required = true - } + // if(this.formInline.controlType == 11){ + // this.required = false + // }else{ + // this.required = true + // } this.title = this.$t('edit') this.flag = 0 // 获取认证类别 @@ -674,7 +676,8 @@ export default { this.$refs['ruleForm'].resetFields() }, handleSubmit() { - if(this.formInline.certCategory == undefined && this.formInline.controlType != 11) { + // && this.formInline.controlType != 11 + if(this.formInline.certCategory == undefined ) { this.$message.warning(this.$t('certificationCategory')+this.$t('cannotEmpty')) return } @@ -736,12 +739,12 @@ export default { }) let querycontentList = JSON.parse(JSON.stringify(this.contentList)) query.certCategoryParamsInfoEOList = querycontentList - if(this.formInline.controlType == 11){ - query.certCategoryParamsInfoEOList = [] - query.certCategory = '' - }else{ - query.titleDefaultValue = '' - } + // if(this.formInline.controlType == 11){ + // query.certCategoryParamsInfoEOList = [] + // query.certCategory = '' + // }else{ + // query.titleDefaultValue = '' + // } this.confirmLoading = true Action(url, query).then((res) => { if (res.success) { diff --git a/jero-web/src/views/parameter/parameterlist/index.vue b/jero-web/src/views/parameter/parameterlist/index.vue index 61397d9ca..68c210b30 100644 --- a/jero-web/src/views/parameter/parameterlist/index.vue +++ b/jero-web/src/views/parameter/parameterlist/index.vue @@ -390,7 +390,7 @@ export default { getAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue b/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue index 68a37617b..20843f030 100644 --- a/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue +++ b/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue @@ -79,10 +79,14 @@ + + {{text ? text : '--'}} +
@@ -193,6 +197,14 @@ align: 'center', width: 180, scopedSlots: { customRender: 'complianceResults' } + }, + { + title: this.$t('sponsorFeedback'), + dataIndex: 'sponsorFeedback', + align: 'center', + width: 180, + ellipsis: true, + scopedSlots: { customRender: 'sponsorFeedbackIndex' } } ], columnsThree: [ diff --git a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue index 755c66c3a..1468194df 100644 --- a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue +++ b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue @@ -112,7 +112,7 @@ {{$t('edit')}} - + {{$t('regulatoryEngineer')}} @@ -218,6 +218,7 @@ { this.formInline = JSON.parse(JSON.stringify(item)) + if (!(this.dictOptionsValue.some(val => val.certificationEngineer == this.formInline.certificationEngineer))) { + this.formInline.certificationEngineer = undefined + } this.$refs.ruleForm.clearValidate() }) }, @@ -642,11 +646,12 @@ height: 38px; /*margin-top: 2px;*/ } + .drawer-bootom-button { position: absolute; bottom: 0; width: 100%; - z-index:100; + z-index: 100; border-top: 1px solid #e8e8e8; padding: 10px 16px; text-align: right; diff --git a/jero-web/src/views/projectManagement/projectLibrary/index.vue b/jero-web/src/views/projectManagement/projectLibrary/index.vue index b314f466d..89c1b78a8 100644 --- a/jero-web/src/views/projectManagement/projectLibrary/index.vue +++ b/jero-web/src/views/projectManagement/projectLibrary/index.vue @@ -353,7 +353,7 @@ postAction(this.url.list, query).then((res) => { if (res.success) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } diff --git a/jero-web/src/views/projectManagement/projectNonConformance/index.vue b/jero-web/src/views/projectManagement/projectNonConformance/index.vue index a2e1e0a74..3c58f2543 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/index.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/index.vue @@ -342,6 +342,11 @@ this.loading = true getAction(this.url.page, query).then((res) => { if (res.success) { + if (res.result.current > 1 && res.result.records.length == 0) { + this.pageNo = 1 + this.getList() + return + } this.dataSource = res.result.records || [] this.total = res.result.total this.loading = false diff --git a/jero-web/src/views/regulationsKanban/index.vue b/jero-web/src/views/regulationsKanban/index.vue index 5112ee0ac..b7366a734 100644 --- a/jero-web/src/views/regulationsKanban/index.vue +++ b/jero-web/src/views/regulationsKanban/index.vue @@ -359,13 +359,11 @@ export default { postAction(this.url.list, query).then((res) => { if (res) { if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = res.result.current - 1 + this.pageNo = 1 this.getList() return } - console.log(res.result) this.dataSource = res.result.records || [] - this.total = res.result.total this.loading = false } else {