From 75f1e249d012c1a2388b98d7f36441af4d326144 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 10:18:34 +0800
Subject: [PATCH 001/251] bug
---
.../extRepo/service/impl/ExtRepoFolderServiceImpl.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
index f9ad6ac17..5575570fa 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
@@ -268,12 +268,13 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl subFolderTree(String folder,List childTree,int level) {
int childLevel = level + 1;
List listBySupFolder = getListBySupFolder(folder);
+ ExtRepoFolder father = queryById(folder);
for (ExtRepoFolder extRepoFolder : listBySupFolder) {
ERFTreeData date = new ERFTreeData(extRepoFolder.getFolderName(), extRepoFolder.getId(), childLevel, extRepoFolder.getOrderId());
- date.setAuthManageIdsName(extRepoFolder.getAuthManageIdsName());
- date.setAuthManageIds(extRepoFolder.getAuthManageIds());
- date.setAuthViewIdsName(extRepoFolder.getAuthViewIdsName());
- date.setAuthViewIds(extRepoFolder.getAuthViewIds());
+ date.setAuthManageIdsName(father.getAuthManageIdsName());
+ date.setAuthManageIds(father.getAuthManageIds());
+ date.setAuthViewIdsName(father.getAuthViewIdsName());
+ date.setAuthViewIds(father.getAuthViewIds());
date.setChildren(subFolderTree(extRepoFolder.getId(), new ArrayList(),childLevel));
date.sortChildren();
childTree.add(date);
From 0b960424d7b4b2e0b3970c69a39b08bef1d6a1eb Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 10:55:01 +0800
Subject: [PATCH 002/251] bug
---
.../impl/ExtRepoFolderServiceImpl.java | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
index 5575570fa..6c937dc85 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
@@ -271,10 +271,21 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl(),childLevel));
date.sortChildren();
childTree.add(date);
From 747861775fb4fdf66470d16feb2a351246513129 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 14:38:54 +0800
Subject: [PATCH 003/251] bug60511
---
.../controller/ExtRepoFolderController.java | 2 +-
.../jero/modules/extRepo/entity/ERFTreeData.java | 13 +++++++++++++
.../modules/extRepo/entity/ERFTreeDataVO.java | 14 +++++++-------
.../service/impl/ExtRepoFolderServiceImpl.java | 15 ++++++++++++---
4 files changed, 33 insertions(+), 11 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
index deab4288f..9e92f4c08 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
@@ -49,7 +49,7 @@ public class ExtRepoFolderController extends JeroController queryList() {
ERFTreeDataVO dataVO = new ERFTreeDataVO();
- dataVO.setManager(extRepoFolderService.isManager());
+ //dataVO.setManager(extRepoFolderService.isManager());
dataVO.setList(extRepoFolderService.queryTreeList());
return Result.OK(dataVO);
}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
index 0b0152705..90655a61d 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
@@ -56,6 +56,19 @@ public class ERFTreeData implements Comparable {
*/
private String authManageIds = "";
+ /**
+ * 是否能点击右键
+ */
+ private boolean rightClick;
+
+ public boolean isRightClick() {
+ return rightClick;
+ }
+
+ public void setRightClick(boolean rightClick) {
+ this.rightClick = rightClick;
+ }
+
/**
* 子文件夹
*/
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeDataVO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeDataVO.java
index ba073d51e..23ca44b3b 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeDataVO.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeDataVO.java
@@ -3,19 +3,19 @@ package com.jero.modules.extRepo.entity;
import java.util.List;
public class ERFTreeDataVO {
- boolean isManager;
+// boolean isManager;
List list;
public ERFTreeDataVO() {
}
- public boolean isManager() {
- return isManager;
- }
+// public boolean isManager() {
+// return isManager;
+// }
- public void setManager(boolean manager) {
- isManager = manager;
- }
+// public void setManager(boolean manager) {
+// isManager = manager;
+// }
public List getList() {
return list;
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
index 6c937dc85..cbdc61115 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
@@ -244,11 +244,15 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl(),childLevel));
+ date.setChildren(subFolderTree(erf.getId(),new ArrayList(),childLevel,parentRightClick));
date.sortChildren();
resList.add(date);
} else {
@@ -265,12 +269,17 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl subFolderTree(String folder,List childTree,int level) {
+ private List subFolderTree(String folder,List childTree,int level,boolean parentRightClick) {
int childLevel = level + 1;
List listBySupFolder = getListBySupFolder(folder);
ExtRepoFolder father = queryById(folder);
for (ExtRepoFolder extRepoFolder : listBySupFolder) {
ERFTreeData date = new ERFTreeData(extRepoFolder.getFolderName(), extRepoFolder.getId(), childLevel, extRepoFolder.getOrderId());
+ //是否有管理权限
+ boolean childRightClick = haveManageAuth(extRepoFolder.getId());
+ if (parentRightClick||childRightClick) {
+ date.setRightClick(true);
+ }
//如果参数为空则延续父文件夹权限,反之用自己的
if (ObjectUtils.isNotEmpty(extRepoFolder.getAuthManageIds()) && ObjectUtils.isNotEmpty(extRepoFolder.getAuthManageIdsName())) {
date.setAuthManageIdsName(extRepoFolder.getAuthManageIdsName());
@@ -286,7 +295,7 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl(),childLevel));
+ date.setChildren(subFolderTree(extRepoFolder.getId(), new ArrayList(),childLevel,childRightClick));
date.sortChildren();
childTree.add(date);
}
From d944ffae03e7b754e17c08b00a5ce24cd83e6dce Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 14:43:21 +0800
Subject: [PATCH 004/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94?=
=?UTF-8?q?=E5=9B=BE=E7=89=87bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 149 ++++++------------
1 file changed, 48 insertions(+), 101 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index c13dd7034..ba903bf84 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -278,57 +278,30 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 1) {
for (int j = 0; j < leftSplit.length; j++) {
- if (j > 0) {
- Row row2 = sheet.createRow(j + i);
- if (leftSplit[j].contains(".jpg") || leftSplit[j].contains(".png")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(leftSplit[j])) {
- try (InputStream in = CosBootUtil.download(leftSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
- }
+ Row row2 = sheet.createRow(j + i);
+ if (leftSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(leftSplit[j])) {
+ try (InputStream in = CosBootUtil.download(leftSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
}
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
- }
- } else {
- row2.createCell(3).setCellValue(leftSplit[j]);
}
} else {
- if (leftSplit[j].contains(".jpg") || leftSplit[j].contains(".png")) {
- row.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(leftSplit[j])) {
- try (InputStream in = CosBootUtil.download(leftSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
- }
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
-
- }
- } else {
- row.createCell(3).setCellValue(leftSplit[j]);
- }
+ row2.createCell(3).setCellValue(leftSplit[j]);
}
}
sarFileCompareExcelMergeCell.setLeftStart(i);
@@ -357,57 +330,30 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 1) {
for (int j = 0; j < rightSplit.length; j++) {
- if (j > 0) {
- Row row2 = sheet.createRow(j + i);
- if (rightSplit[j].contains(".jpg") || rightSplit[j].contains(".png")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(rightSplit[j])) {
- try (InputStream in = CosBootUtil.download(rightSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
- }
+ Row row2 = sheet.createRow(j + i);
+ if (rightSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(rightSplit[j])) {
+ try (InputStream in = CosBootUtil.download(rightSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
}
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
- }
- } else {
- row2.createCell(3).setCellValue(rightSplit[j]);
}
} else {
- if (rightSplit[j].contains(".jpg") || rightSplit[j].contains(".png")) {
- row.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(rightSplit[j])) {
- try (InputStream in = CosBootUtil.download(rightSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
- }
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
-
- }
- } else {
- row.createCell(7).setCellValue(rightSplit[j]);
- }
+ row2.createCell(7).setCellValue(rightSplit[j]);
}
}
sarFileCompareExcelMergeCell.setRightStart(i);
@@ -443,7 +389,8 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl mergeCellSet = new HashSet<>(mergeCells);
+ for (SarFileCompareExcelMergeCell mergeCell : mergeCellSet) {
Integer leftCount = mergeCell.getLeftEnd() - mergeCell.getLeftStart() + 1;
Integer rightCount = mergeCell.getRightEnd() - mergeCell.getRightStart() + 1;
Integer start = leftCount - rightCount >= 0 ? mergeCell.getLeftStart() : mergeCell.getRightStart();
@@ -461,7 +408,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl")) {
- String txtLeft = text.substring(0, text.indexOf("<"));
- String txtRight = text.substring(text.indexOf(">") + 1);
- String img = text.substring(text.indexOf("<"), text.indexOf(">"));
- String path = img.substring(img.lastIndexOf("=") + 1, img.lastIndexOf("\""));
+ if (text.contains("
") + 3);
+ String img = text.substring(text.indexOf("
"));
+ String path = img.substring(img.lastIndexOf("=") + 1)+"g";
text = txtLeft + "---" + path + "---" + txtRight;
addImgdata(text, session);
} else {
From 222fcb8b4fbb80e1b1ba4f9f2eb1f77dbcc91614 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 15:00:53 +0800
Subject: [PATCH 005/251] =?UTF-8?q?=E5=AF=B9=E5=A4=96=E6=8A=A5=E5=91=8A?=
=?UTF-8?q?=E5=8F=B3=E9=94=AE=E7=82=B9=E5=87=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/jero/modules/extRepo/entity/ERFTreeData.java | 10 +++++-----
.../extRepo/service/impl/ExtRepoFolderServiceImpl.java | 4 ++--
jero-web/src/views/externalReports/index.vue | 3 ++-
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
index 90655a61d..04a4af70d 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ERFTreeData.java
@@ -59,14 +59,14 @@ public class ERFTreeData implements Comparable {
/**
* 是否能点击右键
*/
- private boolean rightClick;
+ private boolean isManager;
- public boolean isRightClick() {
- return rightClick;
+ public boolean isManager() {
+ return isManager;
}
- public void setRightClick(boolean rightClick) {
- this.rightClick = rightClick;
+ public void setManager(boolean manager) {
+ isManager = manager;
}
/**
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
index cbdc61115..6acafb9e0 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/service/impl/ExtRepoFolderServiceImpl.java
@@ -246,7 +246,7 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl
Date: Sat, 8 Oct 2022 15:14:16 +0800
Subject: [PATCH 006/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94?=
=?UTF-8?q?=E5=9B=BE=E7=89=87bug2.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 138 ++++++++++++------
1 file changed, 96 insertions(+), 42 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index ba903bf84..bc0fa2836 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -271,37 +271,64 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("
", "\r\n");
- BufferedImage bufferImg = null;
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
addImgdata(text,request.getSession());
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
leftSplit = rowDataAndPath.split("---");
if (leftSplit.length > 1) {
for (int j = 0; j < leftSplit.length; j++) {
- Row row2 = sheet.createRow(j + i);
- if (leftSplit[j].contains("/upFiles")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(leftSplit[j])) {
- try (InputStream in = CosBootUtil.download(leftSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ BufferedImage bufferImg = null;
+ if (j > 0) {
+ Row row2 = sheet.createRow(j + i);
+ if (leftSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(leftSplit[j])) {
+ try (InputStream in = CosBootUtil.download(leftSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row2.createCell(3).setCellValue(leftSplit[j]);
}
} else {
- row2.createCell(3).setCellValue(leftSplit[j]);
+ if (leftSplit[j].contains(".jpg") || leftSplit[j].contains(".png")) {
+ row.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(leftSplit[j])) {
+ try (InputStream in = CosBootUtil.download(leftSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
+ }
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+
+ }
+ } else {
+ row.createCell(3).setCellValue(leftSplit[j]);
+ }
}
}
sarFileCompareExcelMergeCell.setLeftStart(i);
@@ -323,37 +350,64 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
- BufferedImage bufferImg = null;
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
addImgdata(text,request.getSession());
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
rightSplit = rowDataAndPath.split("---");
if (rightSplit.length > 1) {
for (int j = 0; j < rightSplit.length; j++) {
- Row row2 = sheet.createRow(j + i);
- if (rightSplit[j].contains("/upFiles")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(rightSplit[j])) {
- try (InputStream in = CosBootUtil.download(rightSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ BufferedImage bufferImg = null;
+ if (j > 0) {
+ Row row2 = sheet.createRow(j + i);
+ if (rightSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(rightSplit[j])) {
+ try (InputStream in = CosBootUtil.download(rightSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row2.createCell(7).setCellValue(rightSplit[j]);
}
} else {
- row2.createCell(7).setCellValue(rightSplit[j]);
+ if (rightSplit[j].contains(".jpg") || rightSplit[j].contains(".png")) {
+ row.setHeight((short) 5000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(rightSplit[j])) {
+ try (InputStream in = CosBootUtil.download(rightSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
+ }
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+
+ }
+ } else {
+ row.createCell(7).setCellValue(rightSplit[j]);
+ }
}
}
sarFileCompareExcelMergeCell.setRightStart(i);
From cfed5d9e614d5dd1b123db8f0097b7e25f026359 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 16:34:37 +0800
Subject: [PATCH 007/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94?=
=?UTF-8?q?=E5=AF=BC=E5=87=BAbug3.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 184 +++++++++---------
1 file changed, 94 insertions(+), 90 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index bc0fa2836..c236f5d0b 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -271,63 +271,65 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
- ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
addImgdata(text,request.getSession());
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
leftSplit = rowDataAndPath.split("---");
if (leftSplit.length > 1) {
for (int j = 0; j < leftSplit.length; j++) {
- BufferedImage bufferImg = null;
- if (j > 0) {
- Row row2 = sheet.createRow(j + i);
- if (leftSplit[j].contains("/upFiles")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(leftSplit[j])) {
- try (InputStream in = CosBootUtil.download(leftSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ if (ObjectUtils.isNotEmpty(leftSplit[j])) {
+ ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
+ BufferedImage bufferImg = null;
+ if (j > 0) {
+ Row row2 = sheet.createRow(j + i);
+ if (leftSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 3000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(leftSplit[j])) {
+ try (InputStream in = CosBootUtil.download(leftSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row2.createCell(3).setCellValue(leftSplit[j]);
}
} else {
- row2.createCell(3).setCellValue(leftSplit[j]);
- }
- } else {
- if (leftSplit[j].contains(".jpg") || leftSplit[j].contains(".png")) {
- row.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(leftSplit[j])) {
- try (InputStream in = CosBootUtil.download(leftSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ if (leftSplit[j].contains("/upFiles")) {
+ row.setHeight((short) 3000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(leftSplit[j])) {
+ try (InputStream in = CosBootUtil.download(leftSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row.createCell(3).setCellValue(leftSplit[j]);
}
- } else {
- row.createCell(3).setCellValue(leftSplit[j]);
}
}
}
@@ -350,63 +352,65 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
- ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
addImgdata(text,request.getSession());
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
rightSplit = rowDataAndPath.split("---");
if (rightSplit.length > 1) {
for (int j = 0; j < rightSplit.length; j++) {
- BufferedImage bufferImg = null;
- if (j > 0) {
- Row row2 = sheet.createRow(j + i);
- if (rightSplit[j].contains("/upFiles")) {
- row2.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(rightSplit[j])) {
- try (InputStream in = CosBootUtil.download(rightSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ if (ObjectUtils.isNotEmpty(rightSplit[j])) {
+ ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
+ BufferedImage bufferImg = null;
+ if (j > 0) {
+ Row row2 = sheet.createRow(j + i);
+ if (rightSplit[j].contains("/upFiles")) {
+ row2.setHeight((short) 3000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(rightSplit[j])) {
+ try (InputStream in = CosBootUtil.download(rightSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row2.createCell(7).setCellValue(rightSplit[j]);
}
} else {
- row2.createCell(7).setCellValue(rightSplit[j]);
- }
- } else {
- if (rightSplit[j].contains(".jpg") || rightSplit[j].contains(".png")) {
- row.setHeight((short) 5000); //设置行高
- //先将图片下载到本地
- String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
- if (CosBootUtil.doesObjectExist(rightSplit[j])) {
- try (InputStream in = CosBootUtil.download(rightSplit[j])) {
- copyFile2(in, dir + File.separator + fileLastName);
- } catch (IOException e) {
- e.printStackTrace();
- log.error(e.getMessage(), e);
+ if (rightSplit[j].contains("/upFiles")) {
+ row.setHeight((short) 3000); //设置行高
+ //先将图片下载到本地
+ String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
+ if (CosBootUtil.doesObjectExist(rightSplit[j])) {
+ try (InputStream in = CosBootUtil.download(rightSplit[j])) {
+ copyFile2(in, dir + File.separator + fileLastName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ log.error(e.getMessage(), e);
+ }
}
- }
- File file = new File(dir + File.separator + fileLastName);
- if (file.exists()) {
- bufferImg = ImageIO.read(file);
- ImageIO.write(bufferImg, "jpg", byteArrayOut);
- //anchor主要用于设置图片的属性
- HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 3, j + i, (short) 3, j + i);
- patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ File file = new File(dir + File.separator + fileLastName);
+ if (file.exists()) {
+ bufferImg = ImageIO.read(file);
+ ImageIO.write(bufferImg, "jpg", byteArrayOut);
+ //anchor主要用于设置图片的属性
+ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) 7, j + i, (short) 7, j + i);
+ patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
+ }
+ } else {
+ row.createCell(7).setCellValue(rightSplit[j]);
}
- } else {
- row.createCell(7).setCellValue(rightSplit[j]);
}
}
}
From b8301966413f390e65ce43e6a773c22895dc42f5 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sat, 8 Oct 2022 17:21:45 +0800
Subject: [PATCH 008/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94?=
=?UTF-8?q?=E5=88=9B=E5=BB=BArow=E6=97=B6=E8=A6=86=E7=9B=96=E7=9A=84?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../impl/SarFileCompareItemCommentServiceImpl.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index c236f5d0b..071f02deb 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -280,7 +280,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) {
- Row row2 = sheet.createRow(j + i);
+ Row row2 = sheet.getRow(j + i);
+ if (ObjectUtils.isEmpty(row2)) {
+ row2 = sheet.createRow(j + i);
+ }
if (leftSplit[j].contains("/upFiles")) {
row2.setHeight((short) 3000); //设置行高
//先将图片下载到本地
@@ -361,7 +364,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) {
- Row row2 = sheet.createRow(j + i);
+ Row row2 = sheet.getRow(j + i);
+ if (ObjectUtils.isEmpty(row2)) {
+ row2 = sheet.createRow(j + i);
+ }
if (rightSplit[j].contains("/upFiles")) {
row2.setHeight((short) 3000); //设置行高
//先将图片下载到本地
From d5d39e40736b3b07cfba1773c7ea5b237f9a3d0b Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Sun, 9 Oct 2022 09:49:31 +0800
Subject: [PATCH 009/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/PersonnelSelection/index.vue | 608 ++++++++++--------
.../components/virtualNodeTree/mixin/node.js | 9 +-
.../virtualNodeTree/model/tree-store.js | 1 -
.../virtualNodeTree/tree-virtual-node.vue | 4 +-
4 files changed, 329 insertions(+), 293 deletions(-)
diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue
index 43b6f4b88..3d8bc49f8 100644
--- a/jero-web/src/components/PersonnelSelection/index.vue
+++ b/jero-web/src/components/PersonnelSelection/index.vue
@@ -32,40 +32,39 @@
v-model="searchModel" @search="onSearch"/>
{{$t('dataLoading')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ ref="virtualNodeTreeRef"
+ :keeps="40"
+ show-checkbox
+ v-model="checkboxList"
+ class="treeWrap"
+ :defaultCheckedKeys="defaultCheckedKeys"
+ :defaultExpandAll="defaultExpandAll"
+ :check-strictly="false"
+ node-key="id"
+ @check="handleCheckChange"
+ @check-change="checkChange"
+ :data.sync="gData">
+
+
+ {{ data.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('cancel')}}
@@ -107,109 +106,145 @@
defaultCheckedKeysName: [],
content: [],
dataList: [],
- defaultExpandAll: false
+ defaultExpandAll: false,
+ searchData: ''
}
},
mounted() {
},
methods: {
- // handleCheckChange(val, checked, indeterminate) {
- // if (checked) {
- // this.userName.push(val.title)
- // this.userIds.push(val.id)
- // } else {
- // for (let i = 0; i < this.userName.length; i++) {
- // if (this.userName[i] == val.title) {
- // this.userName.splice(i, 1)
- // i--
- // }
- // }
- // for (let i = 0; i < this.userIds.length; i++) {
- // if (this.userIds[i] == val.id) {
- // this.userIds.splice(i, 1)
- // i--
- // }
- // }
- // }
- // },
+ checkChange(val, checked, indeterminate) {
+ if (!checked && this.searchData) {
+ this.userName = this.userName.filter(res => {
+ return res != val.title
+ })
+ this.userIds = this.userIds.filter(res => {
+ return res != val.id
+ })
+ for (let i = 0; i < this.userIds.length; i++) {
+ if (this.userIds[i] == val.parentId) {
+ this.userIds.splice(i, 1)
+ this.userName.splice(i, 1)
+ i--
+ }
+ }
+ } else if (checked && this.searchData) {
+ this.userName.push(val.title)
+ this.userIds.push(val.id)
+ }
+ },
+ handleCheckChange(val, data, checked) {
+ if (!this.searchData) {
+ this.userName = []
+ this.userIds = []
+ if (data.checkedNodes && data.checkedNodes.length > 0) {
+ data.checkedNodes.forEach(res => {
+ this.userName.push(res.title)
+ this.userIds.push(res.id)
+ })
+ }
+ }
+ },
standardClick() {
this.treeVisible = false
- this.departId = ''
+ // this.departId = ''
this.searchModel = ''
- this.userIds = []
- this.userName = []
- this.queryDepartUserTreeList(1)
+ this.searchData = ''
+ // this.userIds = []
+ // this.userName = []
+ // this.queryDepartUserTreeList(1)
this.visible = true
- // let gData = localStorage.getItem('gData')
- // if (gData) {
- // let dataList = JSON.parse(gData)
- // if (!this.selectDepartment) {
- // dataList.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // this.dataList = this.toTree(dataList)
- // }
- // setTimeout(() => {
- // if (gData) {
- // this.gData = this.dataList
- // this.gData = [...this.gData]
- // // this.treeVisible = true
- // if (this.personneQuery[this.query.db_field_name + 'Name']) {
- // this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
- // } else if (this.personneQuery[this.query.db_field_name]) {
- // this.userName = this.personneQuery[this.query.db_field_name].split(',')
- // } else {
- // this.userName = []
- // }
- // if (this.personneQuery[this.query.db_field_name + '_id']) {
- // this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
- // } else if (this.personneQuery[this.query.db_field_name]) {
- // this.userIds = this.personneQuery[this.query.db_field_name].split(',')
- // } else {
- // this.userIds = []
- // }
- // this.defaultCheckedKeys = this.userIds
- // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- // this.defaultExpandAll = false
- // this.treeVisible = true
- // } else {
- // this.queryDepartUserTreeList(1)
- // }
- // }, 200)
+ let gData = localStorage.getItem('gData')
+ if (gData) {
+ let dataList = JSON.parse(gData)
+ if (!this.selectDepartment) {
+ dataList.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ this.dataList = this.toTree(dataList)
+ }
+ setTimeout(() => {
+ if (gData) {
+ this.gData = this.dataList
+ this.gData = [...this.gData]
+ // this.treeVisible = true
+ if (this.personneQuery[this.query.db_field_name + 'Name']) {
+ this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
+ } else if (this.personneQuery[this.query.db_field_name]) {
+ this.userName = this.personneQuery[this.query.db_field_name].split(',')
+ } else {
+ this.userName = []
+ }
+ if (this.personneQuery[this.query.db_field_name + '_id']) {
+ this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
+ } else if (this.personneQuery[this.query.db_field_name]) {
+ this.userIds = this.personneQuery[this.query.db_field_name].split(',')
+ } else {
+ this.userIds = []
+ }
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.defaultExpandAll = false
+ this.treeVisible = true
+ } else {
+ this.queryDepartUserTreeList(1)
+ }
+ }, 200)
+ },
+ deleteChildren(value, arr) {
+ let newarr = []
+ arr.forEach(element => {
+ if (element.title.indexOf(value) > -1) { // 判断条件
+ newarr.push(element)
+ } else {
+ if (element.children && element.children.length > 0) {
+ let redata = this.deleteChildren(value, element.children)
+ if (redata && redata.length > 0) {
+ let obj = {
+ ...element,
+ children: redata
+ }
+ newarr.push(obj)
+ }
+ }
+ }
+ })
+ return newarr
},
//将数据拼成树形结构
- // toTree(config) {
- // // 删除 所有 children,以防止多次调用
- // config.forEach(function(item) {
- // delete item.children
- // })
- // // 将数据存储为 以 id 为 KEY 的 map 索引数据列
- // let map = {}
- // config.forEach((item) => {
- // item.label = item.name
- // item.key = item.id
- //
- // item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
- // map[item.id] = item
- // })
- // let val = []
- // config.forEach((item) => {
- // // 以当前遍历项,的pid,去map对象中找到索引的id
- // let parent = map[item.parentId]
- // // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
- // if (parent) {
- // (parent.children || (parent.children = [])).push(item)
- // } else {
- // //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
- // val.push(item)
- // }
- // })
- // return val
- // },
+ toTree(config, num) {
+ // 删除 所有 children,以防止多次调用
+ config.forEach(function(item) {
+ delete item.children
+ })
+ // 将数据存储为 以 id 为 KEY 的 map 索引数据列
+ let map = {}
+ config.forEach((item) => {
+ item.label = item.name
+ item.key = item.id
+
+ item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
+ map[item.id] = item
+ })
+ let val = []
+ config.forEach((item) => {
+ // 以当前遍历项,的pid,去map对象中找到索引的id
+ let parent = map[item.parentId]
+
+ // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
+ if (parent) {
+ (parent.children || (parent.children = [])).push(item)
+ } else {
+ //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
+ val.push(item)
+ }
+ })
+ return val
+ },
standardDelete() {
this.$emit('input', null)
this.$forceUpdate()
@@ -220,61 +255,61 @@
// this.selectedKey = selectedKeys
// },
- onCheck(checkedKeys, info) {
- this.userIds = checkedKeys.checked
- this.userName = []
- if (this.userIds.length > 0) {
- for (let i = 0; i < this.userIds.length; i++) {
- for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
- if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
- this.userName.push(this.defaultCheckedKeysName[j].name)
- }
- }
- }
- }
- if (info.checkedNodes && info.checkedNodes.length > 0) {
- info.checkedNodes.forEach(res => {
- if (res.data.props.dataRef.key) {
- this.content.push({
- id: res.data.props.dataRef.key,
- title: res.data.props.dataRef.title
- })
- } else {
- this.content.push({
- id: res.data.props.id,
- title: res.data.props.title
- })
- }
- })
- }
- if (this.content && this.content.length > 0) {
- for (let i = 0; i < this.content.length; i++) {
- for (let j = i + 1; j < this.content.length; j++) {
- if (this.content[i].id == this.content[j].id) {
- this.content.splice(j, 1)
- j--
- }
- }
- }
- this.userIds.forEach(res => {
- this.content.forEach(val => {
- if (res == val.id) {
- this.userName.push(val.title)
- }
- })
- })
- }
- if (this.userName.length > 0) {
- for (let i = 0; i < this.userName.length; i++) {
- for (let j = i + 1; j < this.userName.length; j++) {
- if (this.userName[i] == this.userName[j]) {
- this.userName.splice(j, 1)
- j--
- }
- }
- }
- }
- },
+ // onCheck(checkedKeys, info) {
+ // this.userIds = checkedKeys.checked
+ // this.userName = []
+ // if (this.userIds.length > 0) {
+ // for (let i = 0; i < this.userIds.length; i++) {
+ // for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
+ // if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
+ // this.userName.push(this.defaultCheckedKeysName[j].name)
+ // }
+ // }
+ // }
+ // }
+ // if (info.checkedNodes && info.checkedNodes.length > 0) {
+ // info.checkedNodes.forEach(res => {
+ // if (res.data.props.dataRef.key) {
+ // this.content.push({
+ // id: res.data.props.dataRef.key,
+ // title: res.data.props.dataRef.title
+ // })
+ // } else {
+ // this.content.push({
+ // id: res.data.props.id,
+ // title: res.data.props.title
+ // })
+ // }
+ // })
+ // }
+ // if (this.content && this.content.length > 0) {
+ // for (let i = 0; i < this.content.length; i++) {
+ // for (let j = i + 1; j < this.content.length; j++) {
+ // if (this.content[i].id == this.content[j].id) {
+ // this.content.splice(j, 1)
+ // j--
+ // }
+ // }
+ // }
+ // this.userIds.forEach(res => {
+ // this.content.forEach(val => {
+ // if (res == val.id) {
+ // this.userName.push(val.title)
+ // }
+ // })
+ // })
+ // }
+ // if (this.userName.length > 0) {
+ // for (let i = 0; i < this.userName.length; i++) {
+ // for (let j = i + 1; j < this.userName.length; j++) {
+ // if (this.userName[i] == this.userName[j]) {
+ // this.userName.splice(j, 1)
+ // j--
+ // }
+ // }
+ // }
+ // }
+ // },
handleCancel() {
this.visible = false
this.treeVisible = false
@@ -289,12 +324,12 @@
}
let userIds = JSON.parse(JSON.stringify(this.userIds))
let userName = JSON.parse(JSON.stringify(this.userName))
- // userName = userName.filter(function(item, index) {
- // return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
- // })
- // userIds = userIds.filter(function(item, index) {
- // return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
- // })
+ userName = userName.filter(function(item, index) {
+ return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ })
+ userIds = userIds.filter(function(item, index) {
+ return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ })
this.$emit('input', userName.join(','))
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
this.visible = false
@@ -312,116 +347,119 @@
this.defaultCheckedKeys = []
},
onSearch(e) {
- // this.loading = true
- // this.treeVisible = false
- // let p = new Promise((resolve, reject) => {
- // resolve()
- // })
- // p.then(() => {
- // let gData = localStorage.getItem('gData')
- // let content = []
- // if (gData) {
- // if (e) {
- // JSON.parse(gData).forEach(res => {
- // if (res.type == 'User') {
- // if (res.name.includes(e)) {
- // res.color = true
- // content.push(res)
- // }
- // } else if (res.type == 'Depart') {
- // if (!this.selectDepartment) {
- // res.disabled = true
- // }
- // content.push(res)
- // }
- // })
- // this.defaultExpandAll = true
- // this.gData = this.toTree(content)
- // } else {
- // let content = JSON.parse(gData)
- // if (!this.selectDepartment) {
- // content.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // this.gData = this.toTree(content)
- // this.defaultExpandAll = false
- // }
- // }
- // this.defaultCheckedKeys = this.userIds
- // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- // this.treeVisible = true
- // this.loading = false
- // })
- this.gData = []
- this.departId = ''
- this.visibleTree = false
- if (e) {
- this.getUserAndDepart()
- } else {
- this.treeVisible = false
- this.queryDepartUserTreeList(2)
- }
- },
- getUserAndDepart() {
- getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
- if (res) {
- this.gData = res.filter(ele => ele.flag === 'DEPART')
- } else {
- this.gData = []
- }
- this.visibleTree = true
+ this.treeVisible = false
+ let p = new Promise((resolve, reject) => {
+ resolve()
})
- },
- onExpand(selectedKeys, val) {
- if (this.searchModel == '' || !this.searchModel) {
- if (val.expanded) {
- if (this.departId == val.node.value) {
+ p.then(() => {
+ this.searchData = e
+ let gData = localStorage.getItem('gData')
+ let content = []
+ if (gData) {
+ if (e) {
+ JSON.parse(gData).forEach(res => {
+ if (res.type == 'User') {
+ if (res.name.includes(e)) {
+ res.color = true
+ content.push(res)
+ }
+ }
+ // else if(res.type == 'Depart'){
+ // content.push(res)
+ // }
+ })
+ let gDataAdmin = this.toTree(content)
+ this.gData = this.deleteChildren(e, gDataAdmin)
+ this.defaultExpandAll = true
+ this.treeVisible = true
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.loading = false
} else {
- this.departId = val.node.value
- this.queryDepartUserTreeList(2)
+ let content = JSON.parse(gData)
+ if (!this.selectDepartment) {
+ content.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ this.gData = this.toTree(content)
+ this.defaultExpandAll = false
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.treeVisible = true
+ this.loading = false
}
}
- }
+ })
+ // this.gData = []
+ // this.departId = ''
+ // this.visibleTree = false
+ // if (e) {
+ // this.getUserAndDepart()
+ // } else {
+ // this.treeVisible = false
+ // this.queryDepartUserTreeList(2)
+ // }
},
+ // getUserAndDepart() {
+ // getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
+ // if (res) {
+ // this.gData = res.filter(ele => ele.flag === 'DEPART')
+ // } else {
+ // this.gData = []
+ // }
+ // this.visibleTree = true
+ // })
+ // },
+ // onExpand(selectedKeys, val) {
+ // if (this.searchModel == '' || !this.searchModel) {
+ // if (val.expanded) {
+ // if (this.departId == val.node.value) {
+ // } else {
+ // this.departId = val.node.value
+ // this.queryDepartUserTreeList(2)
+ // }
+ // }
+ // }
+ // },
queryDepartUserTreeList(num) {
- let gData = JSON.parse(JSON.stringify(this.gData))
- if (gData && gData.length > 0) {
- gData = JSON.stringify(gData)
- } else {
- gData = ''
- }
+ // let gData = JSON.parse(JSON.stringify(this.gData))
+ // if (gData && gData.length > 0) {
+ // gData = JSON.stringify(gData)
+ // } else {
+ // gData = ''
+ // }
this.confirmLoading = true
this.loading = true
//queryDepartUserTreeList
//queryUserTreeList
- postAction('sys/user/queryDepartUserTreeList', {
- departId: this.departId,
- json: gData,
- flag: '1'
+ postAction('sys/user/queryUserTreeList', {
+ // departId: this.departId,
+ // json: gData,
+ // flag: '1'
}).then((res) => {
this.confirmLoading = false
if (res.success) {
this.loading = false
// localStorage.setItem('gData', JSON.stringify(res.result))
// this.toTree(dataList)
- // let content = JSON.parse(JSON.stringify(res.result))
- // if (!this.selectDepartment) {
- // res.result.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // localStorage.removeItem('gData')
- // localStorage.setItem('gData', JSON.stringify(content))
- // this.gData = this.toTree(res.result)
- this.gData = res.result
+ let content = JSON.parse(JSON.stringify(res.result))
+ if (!this.selectDepartment) {
+ res.result.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ localStorage.removeItem('gData')
+ localStorage.setItem('gData', JSON.stringify(content))
+ this.gData = this.toTree(res.result)
+ // this.gData = res.result
this.gData = [...this.gData]
// this.gData[0].isLeaf = false
- this.defaultExpandedKeys = [this.departId]
+ // this.defaultExpandedKeys = [this.departId]
if (num == 1) {
if (this.userName && this.userName.length == 0) {
if (this.personneQuery[this.query.db_field_name + 'Name']) {
@@ -444,14 +482,14 @@
this.defaultCheckedKeys = this.userIds
this.defaultCheckedKeys = [...this.defaultCheckedKeys]
this.defaultCheckedKeysName = []
- if (this.defaultCheckedKeys.length > 0) {
- for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
- this.defaultCheckedKeysName.push({
- id: this.defaultCheckedKeys[i],
- name: this.userName[i]
- })
- }
- }
+ // if (this.defaultCheckedKeys.length > 0) {
+ // for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
+ // this.defaultCheckedKeysName.push({
+ // id: this.defaultCheckedKeys[i],
+ // name: this.userName[i]
+ // })
+ // }
+ // }
}
this.defaultExpandAll = false
this.treeVisible = true
diff --git a/jero-web/src/components/virtualNodeTree/mixin/node.js b/jero-web/src/components/virtualNodeTree/mixin/node.js
index 9c7850718..efeea4ce4 100644
--- a/jero-web/src/components/virtualNodeTree/mixin/node.js
+++ b/jero-web/src/components/virtualNodeTree/mixin/node.js
@@ -41,9 +41,8 @@ export default {
return getNodeKey(this.tree.nodeKey, node.data);
},
- handleSelectChange(checked, indeterminate) {
+ handleSelectChange(checked, indeterminate,source) {
const node = this.node || this.source;
-
if (this.oldChecked !== checked && this.oldIndeterminate !== indeterminate) {
this.tree.$emit('check-change', node.data, checked, indeterminate);
}
@@ -95,7 +94,6 @@ export default {
handleCheckChange(_, ev) {
const node = this.node || this.source;
-
node.setChecked(ev.target.checked, !this.tree.checkStrictly);
this.$nextTick(() => {
const store = this.tree.store;
@@ -103,8 +101,9 @@ export default {
checkedNodes: store.getCheckedNodes(),
checkedKeys: store.getCheckedKeys(),
halfCheckedNodes: store.getHalfCheckedNodes(),
- halfCheckedKeys: store.getHalfCheckedKeys()
- });
+ halfCheckedKeys: store.getHalfCheckedKeys(),
+ getCurrentNode:store.getCurrentNode()
+ },this.source.checked);
});
},
diff --git a/jero-web/src/components/virtualNodeTree/model/tree-store.js b/jero-web/src/components/virtualNodeTree/model/tree-store.js
index c9df39c83..760ea8980 100644
--- a/jero-web/src/components/virtualNodeTree/model/tree-store.js
+++ b/jero-web/src/components/virtualNodeTree/model/tree-store.js
@@ -57,7 +57,6 @@ export default class TreeStore {
if (node.visible && !node.isLeaf && !lazy) node.expand();
};
-
traverse(this);
}
diff --git a/jero-web/src/components/virtualNodeTree/tree-virtual-node.vue b/jero-web/src/components/virtualNodeTree/tree-virtual-node.vue
index acc2ba88e..2f0925b40 100644
--- a/jero-web/src/components/virtualNodeTree/tree-virtual-node.vue
+++ b/jero-web/src/components/virtualNodeTree/tree-virtual-node.vue
@@ -115,11 +115,11 @@
},
watch: {
'source.indeterminate'(val) {
- this.handleSelectChange(this.source.checked, val);
+ this.handleSelectChange(this.source.checked, val,this.source);
},
'source.checked'(val) {
- this.handleSelectChange(val, this.source.indeterminate);
+ this.handleSelectChange(val, this.source.indeterminate,this.source);
},
'source.expanded'(val) {
From 8f63c5a27b4b99ec8520441520f35f338f470d4e Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Sun, 9 Oct 2022 14:07:22 +0800
Subject: [PATCH 010/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/evaluationResultsList.vue | 2 +-
.../collectionOfRegulatoryOpinions/index.vue | 7 +++
.../components/feedbackInformation.vue | 45 ++++++++++---------
3 files changed, 32 insertions(+), 22 deletions(-)
diff --git a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/components/evaluationResultsList.vue b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/components/evaluationResultsList.vue
index 1e8d605e3..85e38ad5a 100644
--- a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/components/evaluationResultsList.vue
+++ b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/components/evaluationResultsList.vue
@@ -209,7 +209,7 @@
actiProcInstId: this.actiProcInstId
}
downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls',
- this.$t('evaluationResults') + '.zip', query)
+ this.$route.query.serialNumber+ ' ' +this.$t('evaluationResults') + '.zip', query)
},
getData() {
this.formInline = JSON.parse(JSON.stringify(this.$route.query))
diff --git a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue
index 42f004c5b..5ea7211b3 100644
--- a/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue
+++ b/jero-web/src/views/businessSupport/collectionOfRegulatoryOpinions/index.vue
@@ -193,6 +193,13 @@
ellipsis: true,
dataIndex: 'gatherResultShow'
},
+ {
+ title: this.$t('Sponsor'),
+ align: 'center',
+ width: 140,
+ ellipsis: true,
+ dataIndex: 'createBy'
+ },
{
title: this.$t('dateOfInitiation'),
align: 'center',
diff --git a/jero-web/src/views/processCenter/components/feedbackInformation.vue b/jero-web/src/views/processCenter/components/feedbackInformation.vue
index 3b9722099..c86a652cb 100644
--- a/jero-web/src/views/processCenter/components/feedbackInformation.vue
+++ b/jero-web/src/views/processCenter/components/feedbackInformation.vue
@@ -31,25 +31,29 @@
:rules="[{ required: true, message: $t('relevantSections') + $t('cannotEmpty'), trigger: 'blur'},
{max: 300,message: $t('relevantSections') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
}]">
-
+
+
+
+
+
- {{$t('enclosure')}}
+ {{$t('clauseContent')}}
-
-
- {{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
- item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
- }}
-
+
+
@@ -95,16 +99,15 @@
- {{$t('clauseContent')}}
+ {{$t('enclosure')}}
-
-
+
+
+ {{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
+ item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
+ }}
+
From d44f64535aecde7b731ecf1af2ffacff90882292 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sun, 9 Oct 2022 14:17:10 +0800
Subject: [PATCH 011/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94=20?=
=?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=8B=86=E5=88=86=E5=87=BA=E6=9D=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 236 ++++++++++--------
.../compare/utils/ConvertHtml2Excel.java | 231 +++++++++++++++++
.../compare/utils/CrossRangeCellMeta.java | 37 +++
3 files changed, 399 insertions(+), 105 deletions(-)
create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/ConvertHtml2Excel.java
create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/CrossRangeCellMeta.java
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index 071f02deb..0d7fbcd94 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -11,11 +11,12 @@ import com.jero.modules.compare.mapper.SarFileCompareItemCommentMapper;
import com.jero.modules.compare.service.ISarFileCompareInfoService;
import com.jero.modules.compare.service.ISarFileCompareItemCommentService;
import com.jero.modules.compare.service.ISarFileCompareItemService;
+import com.jero.modules.compare.utils.ConvertHtml2Excel;
import com.jero.modules.system.util.StringUtils;
import org.apache.commons.lang3.ObjectUtils;
-import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
-import org.apache.poi.hssf.usermodel.HSSFPatriarch;
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.common.usermodel.HyperlinkType;
+import org.apache.poi.hssf.usermodel.*;
+import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
@@ -253,6 +254,12 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl mergeCells = new ArrayList<>();
@@ -270,9 +277,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
- addImgdata(text,request.getSession());
- String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
+ String rowDataAndPath = getSplitContent(request, text);
leftSplit = rowDataAndPath.split("---");
if (leftSplit.length > 1) {
for (int j = 0; j < leftSplit.length; j++) {
@@ -284,55 +289,9 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
- addImgdata(text,request.getSession());
- String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
+ String rowDataAndPath = getSplitContent(request, text);
rightSplit = rowDataAndPath.split("---");
if (rightSplit.length > 1) {
for (int j = 0; j < rightSplit.length; j++) {
@@ -368,55 +325,9 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl") < 0) {
+ if (tableHtml.indexOf("") < 0) {
+ tableHtml = tableHtml.replaceFirst("", "
");
+ tableHtml = tableHtml.replaceFirst("", "
");
+ } else {
+ tableHtml = tableHtml.replaceFirst("", "");
+ tableHtml = tableHtml.replaceFirst("", "");
+ }
+ }
+ String cnt = "\n";
+ tableHtml = tableHtml.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt);
+ String tableSheetName = "表格" + System.currentTimeMillis();
+ ConvertHtml2Excel.table2Excel(tableHtml, (HSSFWorkbook) workbook, tableSheetName);
+ //添加超链接
+ CreationHelper createHelper = workbook.getCreationHelper();
+ Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.DOCUMENT);
+ String tableName = "#\'" + tableSheetName + "\'!A1";
+ hyperlink1.setAddress(tableName);
+ cell.setHyperlink(hyperlink1);// 链接
+ cell.setCellStyle(cellStyleLink);
+ }
+
+ /**
+ * 获取文字、图片、表格分割后的内容
+ * @param request
+ * @param text
+ * @return
+ */
+ private String getSplitContent(HttpServletRequest request, String text) {
+ text = text.replace("", "").replace("
", "\r\n");
+ //分割图片
+ addImgdata(text, request.getSession());
+ //分割表格
+ String txtAndImg = (String) request.getSession().getAttribute("txtAndImg");
+ txtAndImg = txtAndImg.replaceAll("table", "replaceTable");
+ splitTable(txtAndImg, request.getSession());
+ return (String) request.getSession().getAttribute("textAndTableAndImg");
+ }
+
+ /**
+ * 分割表格
+ * @param textAndImg
+ * @param session
+ */
+ private void splitTable(String textAndImg,HttpSession session) {
+ if (textAndImg.contains("") + 14);
+ String table = textAndImg.substring(textAndImg.indexOf("")+14);
+ table = table.replaceAll("replaceTable", "table");
+ textAndImg = left + "---" + table + "---" + right;
+ splitTable(textAndImg, session);
+ } else {
+ session.setAttribute("textAndTableAndImg", textAndImg);
+ }
+ }
+
/**
* 提取字符串中
标签内容中的图片路径,并重新按顺序拼接
* @param text
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/ConvertHtml2Excel.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/ConvertHtml2Excel.java
new file mode 100644
index 000000000..db29bbb5c
--- /dev/null
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/ConvertHtml2Excel.java
@@ -0,0 +1,231 @@
+package com.jero.modules.compare.utils;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.math.NumberUtils;
+import org.apache.poi.hssf.usermodel.HSSFCell;
+import org.apache.poi.hssf.usermodel.HSSFCellStyle;
+import org.apache.poi.hssf.usermodel.HSSFFont;
+import org.apache.poi.hssf.usermodel.HSSFRow;
+import org.apache.poi.hssf.usermodel.HSSFSheet;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.hssf.util.HSSFCellUtil;
+import org.apache.poi.hssf.util.HSSFColor;
+import org.apache.poi.ss.util.CellRangeAddress;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.DocumentHelper;
+import org.dom4j.Element;
+
+
+/****
+ * html转excel
+ * @author user
+ *
+ */
+public class ConvertHtml2Excel {
+ /**
+ * html表格转excel
+ *
+ * @param tableHtml 如
+ *
+ * @return
+ */
+ public static void table2Excel(String tableHtml, HSSFWorkbook wb,String tableSheetName) {
+ HSSFSheet sheet = wb.createSheet(tableSheetName);
+ List crossRowEleMetaLs = new ArrayList();
+ int rowIndex = 0;
+ try {
+ Document data = DocumentHelper.parseText(tableHtml);
+ // 生成表头
+ Element thead = data.getRootElement().element("thead");
+ HSSFCellStyle titleStyle = getTitleStyle(wb);
+ int ls=0;//列数
+ if (thead != null) {
+ List trLs = thead.elements("tr");
+ for (Element trEle : trLs) {
+ HSSFRow row = sheet.createRow(rowIndex);
+ List thLs = trEle.elements("th");
+ ls=thLs.size();
+ makeRowCell(thLs, rowIndex, row, 0, titleStyle, crossRowEleMetaLs);
+ rowIndex++;
+ }
+ }
+ // 生成表体
+ Element tbody = data.getRootElement().element("tbody");
+ HSSFCellStyle contentStyle = getContentStyle(wb);
+ if (tbody != null) {
+ List trLs = tbody.elements("tr");
+ for (Element trEle : trLs) {
+ HSSFRow row = sheet.createRow(rowIndex);
+ List thLs = trEle.elements("th");
+ int cellIndex = makeRowCell(thLs, rowIndex, row, 0, titleStyle, crossRowEleMetaLs);
+ List tdLs = trEle.elements("td");
+ makeRowCell(tdLs, rowIndex, row, cellIndex, contentStyle, crossRowEleMetaLs);
+ rowIndex++;
+ }
+ }
+ // 合并表头
+ for (CrossRangeCellMeta crcm : crossRowEleMetaLs) {
+ sheet.addMergedRegion(new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()));
+ setRegionStyle(sheet, new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()),contentStyle);
+ }
+ for(int i=0;i tdLs, int rowIndex, HSSFRow row, int startCellIndex, HSSFCellStyle cellStyle,
+ List crossRowEleMetaLs) {
+ int i = startCellIndex;
+ for (int eleIndex = 0; eleIndex < tdLs.size(); i++, eleIndex++) {
+ int captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
+ while (captureCellSize > 0) {
+ for (int j = 0; j < captureCellSize; j++) {// 当前行跨列处理(补单元格)
+ row.createCell(i);
+ i++;
+ }
+ captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
+ }
+ Element thEle = tdLs.get(eleIndex);
+ String val = thEle.getTextTrim();
+ if (StringUtils.isBlank(val)) {
+ Element e = thEle.element("a");
+ if (e != null) {
+ val = e.getTextTrim();
+ }
+ }
+ HSSFCell c = row.createCell(i);
+ if (NumberUtils.isNumber(val)) {
+ c.setCellValue(Double.parseDouble(val));
+ c.setCellType(HSSFCell.CELL_TYPE_NUMERIC);
+ } else {
+ c.setCellValue(val);
+ }
+ int rowSpan = NumberUtils.toInt(thEle.attributeValue("rowspan"), 1);
+ int colSpan = NumberUtils.toInt(thEle.attributeValue("colspan"), 1);
+ c.setCellStyle(cellStyle);
+ if (rowSpan > 1 || colSpan > 1) { // 存在跨行或跨列
+ crossRowEleMetaLs.add(new CrossRangeCellMeta(rowIndex, i, rowSpan, colSpan));
+ }
+ if (colSpan > 1) {// 当前行跨列处理(补单元格)
+ for (int j = 1; j < colSpan; j++) {
+ i++;
+ row.createCell(i);
+ }
+ }
+ }
+ return i;
+ }
+
+ /**
+ * 设置合并单元格的边框样式
+ *
+ * @param sheet
+ * @param region
+ * @param cs
+ */
+ public static void setRegionStyle(HSSFSheet sheet, CellRangeAddress region, HSSFCellStyle cs) {
+ for (int i = region.getFirstRow(); i <= region.getLastRow(); i++) {
+ HSSFRow row = HSSFCellUtil.getRow(i, sheet);
+ for (int j = region.getFirstColumn(); j <= region.getLastColumn(); j++) {
+ HSSFCell cell = HSSFCellUtil.getCell(row, (short) j);
+ cell.setCellStyle(cs);
+ }
+ }
+ }
+
+ /**
+ * 获得因rowSpan占据的单元格
+ *
+ * @param rowIndex 行号
+ * @param colIndex 列号
+ * @param crossRowEleMetaLs 跨行列元数据
+ * @return 当前行在某列需要占据单元格
+ */
+ private static int getCaptureCellSize(int rowIndex, int colIndex, List crossRowEleMetaLs) {
+ int captureCellSize = 0;
+ for (CrossRangeCellMeta crossRangeCellMeta : crossRowEleMetaLs) {
+ if (crossRangeCellMeta.getFirstRow() < rowIndex && crossRangeCellMeta.getLastRow() >= rowIndex) {
+ if (crossRangeCellMeta.getFirstCol() <= colIndex && crossRangeCellMeta.getLastCol() >= colIndex) {
+ captureCellSize = crossRangeCellMeta.getLastCol() - colIndex + 1;
+ }
+ }
+ }
+ return captureCellSize;
+ }
+
+ /**
+ * 获得标题样式
+ *
+ * @param workbook
+ * @return
+ */
+ private static HSSFCellStyle getTitleStyle(HSSFWorkbook workbook) {
+ short titlebackgroundcolor = HSSFColor.GREY_25_PERCENT.index;
+ short fontSize = 12;
+ String fontName = "宋体";
+ HSSFCellStyle style = workbook.createCellStyle();
+ style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);
+ style.setAlignment(HSSFCellStyle.ALIGN_CENTER);
+ style.setBorderBottom(HSSFCellStyle.BORDER_THIN); //下边框
+ style.setBorderLeft(HSSFCellStyle.BORDER_THIN);//左边框
+ style.setBorderTop(HSSFCellStyle.BORDER_THIN);//上边框
+ style.setBorderRight(HSSFCellStyle.BORDER_THIN);//右边框
+ style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
+ style.setFillForegroundColor(titlebackgroundcolor);// 背景色
+
+ HSSFFont font = workbook.createFont();
+ font.setFontName(fontName);
+ font.setFontHeightInPoints(fontSize);
+ font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
+ style.setFont(font);
+ return style;
+ }
+
+ /**
+ * 获得内容样式
+ *
+ * @param wb
+ * @return
+ */
+ private static HSSFCellStyle getContentStyle(HSSFWorkbook wb) {
+ short fontSize = 12;
+ String fontName = "宋体";
+ HSSFCellStyle style = wb.createCellStyle();
+ style.setBorderBottom((short) 1);
+ style.setBorderTop((short) 1);
+ style.setBorderLeft((short) 1);
+ style.setBorderRight((short) 1);
+ HSSFFont font = wb.createFont();
+ font.setFontName(fontName);
+ font.setFontHeightInPoints(fontSize);
+ style.setFont(font);
+ style.setAlignment(HSSFCellStyle.ALIGN_CENTER);//水平居中
+ style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);//垂直居中
+
+ return style;
+ }
+}
+
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/CrossRangeCellMeta.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/CrossRangeCellMeta.java
new file mode 100644
index 000000000..acee632aa
--- /dev/null
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/utils/CrossRangeCellMeta.java
@@ -0,0 +1,37 @@
+package com.jero.modules.compare.utils;
+
+public class CrossRangeCellMeta {
+
+ public CrossRangeCellMeta(int firstRowIndex, int firstColIndex, int rowSpan, int colSpan) {
+ super();
+ this.firstRowIndex = firstRowIndex;
+ this.firstColIndex = firstColIndex;
+ this.rowSpan = rowSpan;
+ this.colSpan = colSpan;
+ }
+
+ private int firstRowIndex;
+ private int firstColIndex;
+ private int rowSpan;// 跨越行数
+ private int colSpan;// 跨越列数
+
+ public int getFirstRow() {
+ return firstRowIndex;
+ }
+
+ public int getLastRow() {
+ return firstRowIndex + rowSpan - 1;
+ }
+
+ public int getFirstCol() {
+ return firstColIndex;
+ }
+
+ public int getLastCol() {
+ return firstColIndex + colSpan - 1;
+ }
+
+ public int getColSpan(){
+ return colSpan;
+ }
+}
From af78fd1c2f4dc258a0d5bbd800662f9fa41d9e9e Mon Sep 17 00:00:00 2001
From: zhn <947514737@qq.com>
Date: Sun, 9 Oct 2022 14:33:50 +0800
Subject: [PATCH 012/251] =?UTF-8?q?=E6=95=B4=E5=90=88=E5=AF=BC=E5=87=BA--?=
=?UTF-8?q?=E9=A1=B5=E7=9C=89=E9=A1=B5=E8=84=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../impl/LawsMonthlyReportWriteEOServiceImpl.java | 8 ++++----
.../com/jero/modules/report/util/WordUtil.java | 15 +++++++++++----
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
index c309c19a3..a34563275 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
@@ -884,8 +884,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl
Date: Sun, 9 Oct 2022 14:40:39 +0800
Subject: [PATCH 013/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94=20?=
=?UTF-8?q?=E5=8F=B3=E4=BE=A7=E5=8D=95=E5=85=83=E6=A0=BC=E6=A0=BC=E5=BC=8F?=
=?UTF-8?q?bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../service/impl/SarFileCompareItemCommentServiceImpl.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index 0d7fbcd94..fd7d7c30f 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -303,7 +303,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl
Date: Sun, 9 Oct 2022 15:18:21 +0800
Subject: [PATCH 014/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94=20?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 38 +++++++++----------
1 file changed, 17 insertions(+), 21 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index fd7d7c30f..a635115b7 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -283,7 +283,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) {
Row row2 = sheet.getRow(j + i);
if (ObjectUtils.isEmpty(row2)) {
@@ -318,7 +317,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) {
Row row2 = sheet.getRow(j + i);
if (ObjectUtils.isEmpty(row2)) {
@@ -409,21 +407,20 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl") < 0) {
if (tableHtml.indexOf("") < 0) {
tableHtml = tableHtml.replaceFirst("", "
");
From 1bacc9ec5e6ea126e3aa5e345ae94499d08802d0 Mon Sep 17 00:00:00 2001
From: wangzhijiang <12345678>
Date: Sun, 9 Oct 2022 15:32:55 +0800
Subject: [PATCH 015/251] =?UTF-8?q?uat=E9=97=AE=E9=A2=98=E4=BC=98=E5=8C=96?=
=?UTF-8?q?-60796=E7=AC=AC=E4=B8=80=E6=9D=A1-=E6=B3=95=E8=A7=84=E6=8A=80?=
=?UTF-8?q?=E6=9C=AF=E8=AF=84=E4=BC=B0-=E5=AF=BC=E5=85=A5=E6=9C=AC?=
=?UTF-8?q?=E5=9C=B0=E6=8B=86=E8=A7=A3=E5=8D=95=EF=BC=8C=E6=9D=A1=E6=AC=BE?=
=?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=85=81=E8=AE=B8=E4=B8=BA=E7=A9=BA=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...LawsTechnologyEvaluationEOServiceImpl.java | 21 +++++++------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/impl/LawsTechnologyEvaluationEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/impl/LawsTechnologyEvaluationEOServiceImpl.java
index 567660c55..ac77d8994 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/impl/LawsTechnologyEvaluationEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/impl/LawsTechnologyEvaluationEOServiceImpl.java
@@ -752,20 +752,15 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl 100){
+ if(StringUtils.equals(cut,CutEnum.CN.getValue())){
+ errorMsg += "条款名称长度不能超过100;";
+ }else if (StringUtils.equals(cut,CutEnum.EN.getValue())){
+ errorMsg += "Item Name length of the cannot exceed 100;";
+ }
+ countError++;
}
- countError++;
- }else if(itemName.length() > 100){
- if(StringUtils.equals(cut,CutEnum.CN.getValue())){
- errorMsg += "条款名称长度不能超过100;";
- }else if (StringUtils.equals(cut,CutEnum.EN.getValue())){
- errorMsg += "Item Name length of the cannot exceed 100;";
- }
- countError++;
}
if(StringUtils.isEmpty(itemContent)){
From 5fb59a91132b12eabcd096a9374dc6f7b47ac575 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sun, 9 Oct 2022 16:52:28 +0800
Subject: [PATCH 016/251] =?UTF-8?q?=E5=AF=B9=E5=A4=96=E6=8A=A5=E5=91=8A?=
=?UTF-8?q?=E5=90=8C=E7=BA=A7=E6=96=B0=E5=A2=9E=E6=97=B6=E5=8A=A0=E5=88=A4?=
=?UTF-8?q?=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/ExtRepoFolderController.java | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
index 9e92f4c08..4a65703b0 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
@@ -66,11 +66,20 @@ public class ExtRepoFolderController extends JeroController add(@Validated @RequestBody ExtRepoFolder extRepoFolder, HttpSession session) {
Result result = new Result();
session.setAttribute("haveSuperiorManageAuth", false);
- extRepoFolderService.haveSuperiorManageAuth(extRepoFolder.getSupFolder(),session);
- if (ObjectUtils.isNotEmpty(session.getAttribute("haveSuperiorManageAuth"))&&(Boolean) session.getAttribute("haveSuperiorManageAuth")) {
+ ExtRepoFolder folder = extRepoFolderService.queryById(extRepoFolder.getSupFolder());
+ extRepoFolderService.haveSuperiorManageAuth(folder.getSupFolder(),session);
+ //上层是否有权限
+ boolean boo = (Boolean)session.getAttribute("haveSuperiorManageAuth");
+ if (boo||extRepoFolderService.haveManageAuth(extRepoFolder.getSupFolder())) {
if (!extRepoFolder.isAddSub()) {
//增加同级文件夹
- ExtRepoFolder folder = extRepoFolderService.queryById(extRepoFolder.getSupFolder());
+ if (!boo) {
+ if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
+ result.error500("没有父文件夹权限!");
+ } else {
+ result.error500("You do not have parent folder permissions");
+ }
+ }
extRepoFolder.setSupFolder(folder.getSupFolder());
}
extRepoFolderService.add(extRepoFolder);
From 2f4b8d227971cf9f7ffa0733629288d02fac0ae6 Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sun, 9 Oct 2022 16:55:02 +0800
Subject: [PATCH 017/251] =?UTF-8?q?=E5=B0=91=E4=B8=AA=EF=BC=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/extRepo/controller/ExtRepoFolderController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
index 4a65703b0..1efcf4287 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
@@ -77,7 +77,7 @@ public class ExtRepoFolderController extends JeroController
Date: Sun, 9 Oct 2022 17:49:22 +0800
Subject: [PATCH 018/251] =?UTF-8?q?root=E4=B8=8D=E8=83=BD=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E5=90=8C=E7=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/extRepo/controller/ExtRepoFolderController.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
index 1efcf4287..6feb16282 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jero.common.api.vo.Result;
import com.jero.common.aspect.annotation.AutoLog;
import com.jero.common.constant.enums.CutEnum;
+import com.jero.common.exception.JeroBootException;
import com.jero.common.system.base.controller.JeroController;
import com.jero.modules.extRepo.entity.ERFTreeDataVO;
import com.jero.modules.extRepo.entity.ExtRepoData;
@@ -75,9 +76,9 @@ public class ExtRepoFolderController extends JeroController
Date: Sun, 9 Oct 2022 17:56:11 +0800
Subject: [PATCH 019/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/common/lang/en-us.js | 1 +
jero-web/src/common/lang/zh-cn.js | 1 +
.../components/RegulationMonthlyFill.vue | 2 +-
.../components/modules/defaultTemplate.vue | 98 +++++++++++++------
.../components/modules/industryTemplate.vue | 24 +++++
.../components/TermInformation.vue | 11 ++-
6 files changed, 103 insertions(+), 34 deletions(-)
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index c1a20eec6..ee9098642 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1317,4 +1317,5 @@ module.exports = {
viewAll:'View All',
endProcess:'End Process',
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
+ secondaryDirectory:'Secondary directory',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index 6790de6e1..6c242520e 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1418,4 +1418,5 @@ module.exports = {
viewAll:'查看全部',
endProcess:'结束流程',
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
+ secondaryDirectory:'二级目录',
}
\ No newline at end of file
diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue
index 5fcdfcf2e..0fa66b3aa 100644
--- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue
+++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue
@@ -144,7 +144,7 @@
width: 170
},
{
- title: this.$t('chapterContents'),
+ title: this.$t('secondaryDirectory'),
align: 'center',
dataIndex: 'memoriesChapterName',
ellipsis: true,
diff --git a/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue b/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue
index 9a91fe34f..b42ce13c7 100644
--- a/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue
+++ b/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue
@@ -4,8 +4,9 @@
- {{$t('title')}}
+ *
+ {{$t('title')}}
- {{$t('englishTitle')}}
+ *
+ {{$t('englishTitle')}}
- {{$t('technicalField')}}
+ *
+ {{$t('technicalField')}}
-
+
-
-
-
- {{$t('implementationModel')}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -108,10 +111,10 @@
:title="$t('status')">{{$t('status')}}
-
@@ -125,9 +128,9 @@
:title="$t('usage')">{{$t('usage')}}
-
@@ -156,10 +159,11 @@
:title="$t('ImplementationDate')">{{$t('ImplementationDate')}}
+
+ :placeholder="'202X.X.X'"/>
@@ -170,10 +174,11 @@
:title="$t('vehicleInProductionDate')">{{$t('vehicleInProductionDate')}}
+
+ :placeholder="'202X.X.X'"/>
@@ -185,6 +190,7 @@
+ *
{{$t('primaryCoverageCn')}}
@@ -200,6 +206,7 @@
+ *
{{$t('primaryCoverageEn')}}
@@ -245,9 +252,10 @@
+ *
{{$t('regulatoryContact')}}
-
+
+ *
{{$t('title')}}
@@ -18,6 +19,7 @@
+ *
{{$t('englishTitle')}}
@@ -110,6 +112,7 @@
+ *
{{$t('primaryCoverageCn')}}
@@ -125,6 +128,7 @@
+ *
{{$t('primaryCoverageEn')}}
@@ -165,6 +169,11 @@
return {
rules: {
titleCn: [
+ {
+ required: true,
+ message: this.$t('title') + this.$t('cannotEmpty'),
+ trigger: 'blur'
+ },
{
max: 500,
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
@@ -172,6 +181,11 @@
}
],
titleEn: [
+ {
+ required: true,
+ message: this.$t('englishTitle') + this.$t('cannotEmpty'),
+ trigger: 'blur'
+ },
{
max: 500,
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
@@ -221,6 +235,11 @@
}
],
contentEn: [
+ {
+ required: true,
+ message: this.$t('primaryCoverageEn') + this.$t('cannotEmpty'),
+ trigger: 'blur'
+ },
{
max: 300,
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
@@ -228,6 +247,11 @@
}
],
contentCn: [
+ {
+ required: true,
+ message: this.$t('primaryCoverageCn') + this.$t('cannotEmpty'),
+ trigger: 'blur'
+ },
{
max: 300,
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
diff --git a/jero-web/src/views/businessSupport/technologyAssessment/components/TermInformation.vue b/jero-web/src/views/businessSupport/technologyAssessment/components/TermInformation.vue
index 9e3374a4a..36d49be72 100644
--- a/jero-web/src/views/businessSupport/technologyAssessment/components/TermInformation.vue
+++ b/jero-web/src/views/businessSupport/technologyAssessment/components/TermInformation.vue
@@ -6,13 +6,14 @@
:visible="visible"
:confirm-loading="confirmLoading"
:maskClosable="false"
+ :footer="null"
@cancel="visible = false"
>
-
-
- {{$t('cancel')}}
-
-
+
+
+
+
+
From 60e7133e658249f5aa707eff3912b913a0a9146c Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Sun, 9 Oct 2022 18:00:56 +0800
Subject: [PATCH 020/251] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/extRepo/controller/ExtRepoFolderController.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
index 6feb16282..c59e9f272 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/controller/ExtRepoFolderController.java
@@ -76,9 +76,9 @@ public class ExtRepoFolderController extends JeroController
Date: Sun, 9 Oct 2022 18:14:17 +0800
Subject: [PATCH 021/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/PersonnelSelection/index.vue | 640 +++++++++---------
1 file changed, 320 insertions(+), 320 deletions(-)
diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue
index 3d8bc49f8..9521fee72 100644
--- a/jero-web/src/components/PersonnelSelection/index.vue
+++ b/jero-web/src/components/PersonnelSelection/index.vue
@@ -32,39 +32,39 @@
v-model="searchModel" @search="onSearch"/>
{{$t('dataLoading')}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{ data.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ checkable
+ checkStrictly
+ :loading="loading"
+ :tree-data="gData"
+ @check="onCheck"
+ @expand="onExpand"
+ v-model:checkedKeys="defaultCheckedKeys"
+ :defaultExpandedKeys="defaultExpandedKeys"
+ >
+
{{$t('cancel')}}
@@ -114,137 +114,137 @@
},
methods: {
- checkChange(val, checked, indeterminate) {
- if (!checked && this.searchData) {
- this.userName = this.userName.filter(res => {
- return res != val.title
- })
- this.userIds = this.userIds.filter(res => {
- return res != val.id
- })
- for (let i = 0; i < this.userIds.length; i++) {
- if (this.userIds[i] == val.parentId) {
- this.userIds.splice(i, 1)
- this.userName.splice(i, 1)
- i--
- }
- }
- } else if (checked && this.searchData) {
- this.userName.push(val.title)
- this.userIds.push(val.id)
- }
- },
- handleCheckChange(val, data, checked) {
- if (!this.searchData) {
- this.userName = []
- this.userIds = []
- if (data.checkedNodes && data.checkedNodes.length > 0) {
- data.checkedNodes.forEach(res => {
- this.userName.push(res.title)
- this.userIds.push(res.id)
- })
- }
- }
- },
+ // checkChange(val, checked, indeterminate) {
+ // if (!checked && this.searchData) {
+ // this.userName = this.userName.filter(res => {
+ // return res != val.title
+ // })
+ // this.userIds = this.userIds.filter(res => {
+ // return res != val.id
+ // })
+ // for (let i = 0; i < this.userIds.length; i++) {
+ // if (this.userIds[i] == val.parentId) {
+ // this.userIds.splice(i, 1)
+ // this.userName.splice(i, 1)
+ // i--
+ // }
+ // }
+ // } else if (checked && this.searchData) {
+ // this.userName.push(val.title)
+ // this.userIds.push(val.id)
+ // }
+ // },
+ // handleCheckChange(val, data, checked) {
+ // if (!this.searchData) {
+ // this.userName = []
+ // this.userIds = []
+ // if (data.checkedNodes && data.checkedNodes.length > 0) {
+ // data.checkedNodes.forEach(res => {
+ // this.userName.push(res.title)
+ // this.userIds.push(res.id)
+ // })
+ // }
+ // }
+ // },
standardClick() {
this.treeVisible = false
- // this.departId = ''
+ this.departId = ''
this.searchModel = ''
this.searchData = ''
- // this.userIds = []
- // this.userName = []
- // this.queryDepartUserTreeList(1)
+ this.userIds = []
+ this.userName = []
+ this.queryDepartUserTreeList(1)
this.visible = true
- let gData = localStorage.getItem('gData')
- if (gData) {
- let dataList = JSON.parse(gData)
- if (!this.selectDepartment) {
- dataList.forEach(res => {
- if (res.type == 'Depart') {
- res.disabled = true
- }
- })
- }
- this.dataList = this.toTree(dataList)
- }
- setTimeout(() => {
- if (gData) {
- this.gData = this.dataList
- this.gData = [...this.gData]
- // this.treeVisible = true
- if (this.personneQuery[this.query.db_field_name + 'Name']) {
- this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
- } else if (this.personneQuery[this.query.db_field_name]) {
- this.userName = this.personneQuery[this.query.db_field_name].split(',')
- } else {
- this.userName = []
- }
- if (this.personneQuery[this.query.db_field_name + '_id']) {
- this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
- } else if (this.personneQuery[this.query.db_field_name]) {
- this.userIds = this.personneQuery[this.query.db_field_name].split(',')
- } else {
- this.userIds = []
- }
- this.defaultCheckedKeys = this.userIds
- this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- this.defaultExpandAll = false
- this.treeVisible = true
- } else {
- this.queryDepartUserTreeList(1)
- }
- }, 200)
- },
- deleteChildren(value, arr) {
- let newarr = []
- arr.forEach(element => {
- if (element.title.indexOf(value) > -1) { // 判断条件
- newarr.push(element)
- } else {
- if (element.children && element.children.length > 0) {
- let redata = this.deleteChildren(value, element.children)
- if (redata && redata.length > 0) {
- let obj = {
- ...element,
- children: redata
- }
- newarr.push(obj)
- }
- }
- }
- })
- return newarr
+ // let gData = localStorage.getItem('gData')
+ // if (gData) {
+ // let dataList = JSON.parse(gData)
+ // if (!this.selectDepartment) {
+ // dataList.forEach(res => {
+ // if (res.type == 'Depart') {
+ // res.disabled = true
+ // }
+ // })
+ // }
+ // this.dataList = this.toTree(dataList)
+ // }
+ // setTimeout(() => {
+ // if (gData) {
+ // this.gData = this.dataList
+ // this.gData = [...this.gData]
+ // // this.treeVisible = true
+ // if (this.personneQuery[this.query.db_field_name + 'Name']) {
+ // this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
+ // } else if (this.personneQuery[this.query.db_field_name]) {
+ // this.userName = this.personneQuery[this.query.db_field_name].split(',')
+ // } else {
+ // this.userName = []
+ // }
+ // if (this.personneQuery[this.query.db_field_name + '_id']) {
+ // this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
+ // } else if (this.personneQuery[this.query.db_field_name]) {
+ // this.userIds = this.personneQuery[this.query.db_field_name].split(',')
+ // } else {
+ // this.userIds = []
+ // }
+ // this.defaultCheckedKeys = this.userIds
+ // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ // this.defaultExpandAll = false
+ // this.treeVisible = true
+ // } else {
+ // this.queryDepartUserTreeList(1)
+ // }
+ // }, 200)
},
+ // deleteChildren(value, arr) {
+ // let newarr = []
+ // arr.forEach(element => {
+ // if (element.title.indexOf(value) > -1) { // 判断条件
+ // newarr.push(element)
+ // } else {
+ // if (element.children && element.children.length > 0) {
+ // let redata = this.deleteChildren(value, element.children)
+ // if (redata && redata.length > 0) {
+ // let obj = {
+ // ...element,
+ // children: redata
+ // }
+ // newarr.push(obj)
+ // }
+ // }
+ // }
+ // })
+ // return newarr
+ // },
//将数据拼成树形结构
- toTree(config, num) {
- // 删除 所有 children,以防止多次调用
- config.forEach(function(item) {
- delete item.children
- })
- // 将数据存储为 以 id 为 KEY 的 map 索引数据列
- let map = {}
- config.forEach((item) => {
- item.label = item.name
- item.key = item.id
-
- item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
- map[item.id] = item
- })
- let val = []
- config.forEach((item) => {
- // 以当前遍历项,的pid,去map对象中找到索引的id
- let parent = map[item.parentId]
-
- // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
- if (parent) {
- (parent.children || (parent.children = [])).push(item)
- } else {
- //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
- val.push(item)
- }
- })
- return val
- },
+ // toTree(config, num) {
+ // // 删除 所有 children,以防止多次调用
+ // config.forEach(function(item) {
+ // delete item.children
+ // })
+ // // 将数据存储为 以 id 为 KEY 的 map 索引数据列
+ // let map = {}
+ // config.forEach((item) => {
+ // item.label = item.name
+ // item.key = item.id
+ //
+ // item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
+ // map[item.id] = item
+ // })
+ // let val = []
+ // config.forEach((item) => {
+ // // 以当前遍历项,的pid,去map对象中找到索引的id
+ // let parent = map[item.parentId]
+ //
+ // // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
+ // if (parent) {
+ // (parent.children || (parent.children = [])).push(item)
+ // } else {
+ // //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
+ // val.push(item)
+ // }
+ // })
+ // return val
+ // },
standardDelete() {
this.$emit('input', null)
this.$forceUpdate()
@@ -255,61 +255,61 @@
// this.selectedKey = selectedKeys
// },
- // onCheck(checkedKeys, info) {
- // this.userIds = checkedKeys.checked
- // this.userName = []
- // if (this.userIds.length > 0) {
- // for (let i = 0; i < this.userIds.length; i++) {
- // for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
- // if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
- // this.userName.push(this.defaultCheckedKeysName[j].name)
- // }
- // }
- // }
- // }
- // if (info.checkedNodes && info.checkedNodes.length > 0) {
- // info.checkedNodes.forEach(res => {
- // if (res.data.props.dataRef.key) {
- // this.content.push({
- // id: res.data.props.dataRef.key,
- // title: res.data.props.dataRef.title
- // })
- // } else {
- // this.content.push({
- // id: res.data.props.id,
- // title: res.data.props.title
- // })
- // }
- // })
- // }
- // if (this.content && this.content.length > 0) {
- // for (let i = 0; i < this.content.length; i++) {
- // for (let j = i + 1; j < this.content.length; j++) {
- // if (this.content[i].id == this.content[j].id) {
- // this.content.splice(j, 1)
- // j--
- // }
- // }
- // }
- // this.userIds.forEach(res => {
- // this.content.forEach(val => {
- // if (res == val.id) {
- // this.userName.push(val.title)
- // }
- // })
- // })
- // }
- // if (this.userName.length > 0) {
- // for (let i = 0; i < this.userName.length; i++) {
- // for (let j = i + 1; j < this.userName.length; j++) {
- // if (this.userName[i] == this.userName[j]) {
- // this.userName.splice(j, 1)
- // j--
- // }
- // }
- // }
- // }
- // },
+ onCheck(checkedKeys, info) {
+ this.userIds = checkedKeys.checked
+ this.userName = []
+ if (this.userIds.length > 0) {
+ for (let i = 0; i < this.userIds.length; i++) {
+ for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
+ if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
+ this.userName.push(this.defaultCheckedKeysName[j].name)
+ }
+ }
+ }
+ }
+ if (info.checkedNodes && info.checkedNodes.length > 0) {
+ info.checkedNodes.forEach(res => {
+ if (res.data.props.dataRef.key) {
+ this.content.push({
+ id: res.data.props.dataRef.key,
+ title: res.data.props.dataRef.title
+ })
+ } else {
+ this.content.push({
+ id: res.data.props.id,
+ title: res.data.props.title
+ })
+ }
+ })
+ }
+ if (this.content && this.content.length > 0) {
+ for (let i = 0; i < this.content.length; i++) {
+ for (let j = i + 1; j < this.content.length; j++) {
+ if (this.content[i].id == this.content[j].id) {
+ this.content.splice(j, 1)
+ j--
+ }
+ }
+ }
+ this.userIds.forEach(res => {
+ this.content.forEach(val => {
+ if (res == val.id) {
+ this.userName.push(val.title)
+ }
+ })
+ })
+ }
+ if (this.userName.length > 0) {
+ for (let i = 0; i < this.userName.length; i++) {
+ for (let j = i + 1; j < this.userName.length; j++) {
+ if (this.userName[i] == this.userName[j]) {
+ this.userName.splice(j, 1)
+ j--
+ }
+ }
+ }
+ }
+ },
handleCancel() {
this.visible = false
this.treeVisible = false
@@ -324,12 +324,12 @@
}
let userIds = JSON.parse(JSON.stringify(this.userIds))
let userName = JSON.parse(JSON.stringify(this.userName))
- userName = userName.filter(function(item, index) {
- return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
- })
- userIds = userIds.filter(function(item, index) {
- return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
- })
+ // userName = userName.filter(function(item, index) {
+ // return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ // })
+ // userIds = userIds.filter(function(item, index) {
+ // return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ // })
this.$emit('input', userName.join(','))
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
this.visible = false
@@ -347,119 +347,119 @@
this.defaultCheckedKeys = []
},
onSearch(e) {
- this.treeVisible = false
- let p = new Promise((resolve, reject) => {
- resolve()
+ // this.treeVisible = false
+ // let p = new Promise((resolve, reject) => {
+ // resolve()
+ // })
+ // p.then(() => {
+ // this.searchData = e
+ // let gData = localStorage.getItem('gData')
+ // let content = []
+ // if (gData) {
+ // if (e) {
+ // JSON.parse(gData).forEach(res => {
+ // if (res.type == 'User') {
+ // if (res.name.includes(e)) {
+ // res.color = true
+ // content.push(res)
+ // }
+ // }
+ // // else if(res.type == 'Depart'){
+ // // content.push(res)
+ // // }
+ // })
+ // let gDataAdmin = this.toTree(content)
+ // this.gData = this.deleteChildren(e, gDataAdmin)
+ // this.defaultExpandAll = true
+ // this.treeVisible = true
+ // this.defaultCheckedKeys = this.userIds
+ // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ // this.loading = false
+ // } else {
+ // let content = JSON.parse(gData)
+ // if (!this.selectDepartment) {
+ // content.forEach(res => {
+ // if (res.type == 'Depart') {
+ // res.disabled = true
+ // }
+ // })
+ // }
+ // this.gData = this.toTree(content)
+ // this.defaultExpandAll = false
+ // this.defaultCheckedKeys = this.userIds
+ // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ // this.treeVisible = true
+ // this.loading = false
+ // }
+ // }
+ // })
+ this.gData = []
+ this.departId = ''
+ this.visibleTree = false
+ if (e) {
+ this.getUserAndDepart()
+ } else {
+ this.treeVisible = false
+ this.queryDepartUserTreeList(2)
+ }
+ },
+ getUserAndDepart() {
+ getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
+ if (res) {
+ this.gData = res.filter(ele => ele.flag === 'DEPART')
+ } else {
+ this.gData = []
+ }
+ this.visibleTree = true
})
- p.then(() => {
- this.searchData = e
- let gData = localStorage.getItem('gData')
- let content = []
- if (gData) {
- if (e) {
- JSON.parse(gData).forEach(res => {
- if (res.type == 'User') {
- if (res.name.includes(e)) {
- res.color = true
- content.push(res)
- }
- }
- // else if(res.type == 'Depart'){
- // content.push(res)
- // }
- })
- let gDataAdmin = this.toTree(content)
- this.gData = this.deleteChildren(e, gDataAdmin)
- this.defaultExpandAll = true
- this.treeVisible = true
- this.defaultCheckedKeys = this.userIds
- this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- this.loading = false
+ },
+ onExpand(selectedKeys, val) {
+ if (this.searchModel == '' || !this.searchModel) {
+ if (val.expanded) {
+ if (this.departId == val.node.value) {
} else {
- let content = JSON.parse(gData)
- if (!this.selectDepartment) {
- content.forEach(res => {
- if (res.type == 'Depart') {
- res.disabled = true
- }
- })
- }
- this.gData = this.toTree(content)
- this.defaultExpandAll = false
- this.defaultCheckedKeys = this.userIds
- this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- this.treeVisible = true
- this.loading = false
+ this.departId = val.node.value
+ this.queryDepartUserTreeList(2)
}
}
- })
- // this.gData = []
- // this.departId = ''
- // this.visibleTree = false
- // if (e) {
- // this.getUserAndDepart()
- // } else {
- // this.treeVisible = false
- // this.queryDepartUserTreeList(2)
- // }
+ }
},
- // getUserAndDepart() {
- // getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
- // if (res) {
- // this.gData = res.filter(ele => ele.flag === 'DEPART')
- // } else {
- // this.gData = []
- // }
- // this.visibleTree = true
- // })
- // },
- // onExpand(selectedKeys, val) {
- // if (this.searchModel == '' || !this.searchModel) {
- // if (val.expanded) {
- // if (this.departId == val.node.value) {
- // } else {
- // this.departId = val.node.value
- // this.queryDepartUserTreeList(2)
- // }
- // }
- // }
- // },
queryDepartUserTreeList(num) {
- // let gData = JSON.parse(JSON.stringify(this.gData))
- // if (gData && gData.length > 0) {
- // gData = JSON.stringify(gData)
- // } else {
- // gData = ''
- // }
+ let gData = JSON.parse(JSON.stringify(this.gData))
+ if (gData && gData.length > 0) {
+ gData = JSON.stringify(gData)
+ } else {
+ gData = ''
+ }
this.confirmLoading = true
this.loading = true
//queryDepartUserTreeList
//queryUserTreeList
- postAction('sys/user/queryUserTreeList', {
- // departId: this.departId,
- // json: gData,
- // flag: '1'
+ postAction('sys/user/queryDepartUserTreeList', {
+ departId: this.departId,
+ json: gData,
+ flag: '1'
}).then((res) => {
this.confirmLoading = false
if (res.success) {
this.loading = false
// localStorage.setItem('gData', JSON.stringify(res.result))
// this.toTree(dataList)
- let content = JSON.parse(JSON.stringify(res.result))
- if (!this.selectDepartment) {
- res.result.forEach(res => {
- if (res.type == 'Depart') {
- res.disabled = true
- }
- })
- }
- localStorage.removeItem('gData')
- localStorage.setItem('gData', JSON.stringify(content))
- this.gData = this.toTree(res.result)
- // this.gData = res.result
+ // let content = JSON.parse(JSON.stringify(res.result))
+ // if (!this.selectDepartment) {
+ // res.result.forEach(res => {
+ // if (res.type == 'Depart') {
+ // res.disabled = true
+ // }
+ // })
+ // }
+ // localStorage.removeItem('gData')
+ // localStorage.setItem('gData', JSON.stringify(content))
+ // this.gData = this.toTree(res.result)
+ this.gData = res.result
this.gData = [...this.gData]
// this.gData[0].isLeaf = false
- // this.defaultExpandedKeys = [this.departId]
+ this.defaultExpandedKeys = [this.departId]
if (num == 1) {
if (this.userName && this.userName.length == 0) {
if (this.personneQuery[this.query.db_field_name + 'Name']) {
@@ -482,14 +482,14 @@
this.defaultCheckedKeys = this.userIds
this.defaultCheckedKeys = [...this.defaultCheckedKeys]
this.defaultCheckedKeysName = []
- // if (this.defaultCheckedKeys.length > 0) {
- // for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
- // this.defaultCheckedKeysName.push({
- // id: this.defaultCheckedKeys[i],
- // name: this.userName[i]
- // })
- // }
- // }
+ if (this.defaultCheckedKeys.length > 0) {
+ for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
+ this.defaultCheckedKeysName.push({
+ id: this.defaultCheckedKeys[i],
+ name: this.userName[i]
+ })
+ }
+ }
}
this.defaultExpandAll = false
this.treeVisible = true
From 90b7701c66ebda2cf2843abdef52eace0a4b0dcb Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Sun, 9 Oct 2022 20:21:19 +0800
Subject: [PATCH 022/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/evaluationResultsWhole.vue | 79 +++++++++++++++----
1 file changed, 65 insertions(+), 14 deletions(-)
diff --git a/jero-web/src/views/businessSupport/technologyAssessment/components/evaluationResultsWhole.vue b/jero-web/src/views/businessSupport/technologyAssessment/components/evaluationResultsWhole.vue
index cd25daf21..a57c1df23 100644
--- a/jero-web/src/views/businessSupport/technologyAssessment/components/evaluationResultsWhole.vue
+++ b/jero-web/src/views/businessSupport/technologyAssessment/components/evaluationResultsWhole.vue
@@ -39,22 +39,22 @@
-
-
- {{$t('engineer')+item.createBy+$t('feedbackResults')}}
-
-
- {{$t('complianceResults')}}:{{item.complianceResultName}}
-
-
+
+
+
+
+
+
+
+
+
+
{
+ const obj = {
+ children: value,
+ attrs: {}
+ }
+ if (index === 0) {
+ obj.attrs.rowSpan = row.indexData
+ } else {
+ obj.attrs.rowSpan = 0
+ }
+ return obj
+ }
+ },
+ {
+ title: this.$t('complianceResults'),
+ dataIndex: 'complianceResultName',
+ align: 'center',
+ width: 160,
+ ellipsis: true,
+ customRender: (value, row, index) => {
+ const obj = {
+ children: value,
+ attrs: {}
+ }
+ if (index === 0) {
+ obj.attrs.rowSpan = row.indexData
+ } else {
+ obj.attrs.rowSpan = 0
+ }
+ return obj
+ }
+ },
{
title: this.$t('relevantSections'),
dataIndex: 'relatedSection',
@@ -190,6 +228,18 @@
getAction(this.url.list, query).then((res) => {
if (res.success) {
this.dataSource = res.result || []
+ if (this.dataSource && this.dataSource.length > 0) {
+ this.dataSource.forEach(val => {
+ if (val.lawsTechnologyEvaluationResultEOList && val.lawsTechnologyEvaluationResultEOList.length > 0) {
+ val.lawsTechnologyEvaluationResultEOList.forEach(ol => {
+ ol.indexData = val.lawsTechnologyEvaluationResultEOList.length
+ ol.complianceResultName = val.complianceResultName
+ ol.createBy = val.createBy
+ })
+ }
+ })
+ }
+ console.log(this.dataSource)
if (this.dataSource.length == 0) {
this.dataSource.push({
name: ''
@@ -353,9 +403,10 @@
.table-operator-admin-right {
float: left;
- width: calc(100% - 240px);
+ width: 100%;
text-align: right;
- border-left: 1px solid #e8e8e8;
+ margin-bottom: 20px;
+ /*border-left: 1px solid #e8e8e8;*/
}
.operator-text-index {
From 1ec0784eb64033b8f0fbd051ae448d205da8d77f Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Sun, 9 Oct 2022 20:49:04 +0800
Subject: [PATCH 023/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/components/viewFileModel/index.vue | 7 +++++--
.../components/countryCardView.vue | 7 +++++--
.../components/problemKnowledgeBaseListView.vue | 7 +++++--
.../components/RegulationMonthlyManagement.vue | 7 +++++--
.../components/monthlyReportRegulations.vue | 7 +++++--
.../documentManage/library/docDetail/index.vue | 7 +++++--
.../components/initiateComparison.vue | 7 +++++--
.../documentTools/documentComparison/index.vue | 13 +++++++++----
.../searchCenter/components/DocumentLibrary.vue | 7 +++++--
.../components/monthlyReportRegulations.vue | 13 +++++++++----
.../components/problemKnowledgeBase.vue | 7 +++++--
.../documentTools/searchCenter/components/whole.vue | 13 +++++++++----
.../virtualList/components/virtualListDetails.vue | 13 +++++++++----
.../components/standardContentList.vue | 13 +++++++++----
.../components/listOfRegulations.vue | 13 +++++++++----
.../components/resultReportedUpload.vue | 7 +++++--
.../projectManagement/historicalVersion/index.vue | 13 +++++++++----
17 files changed, 113 insertions(+), 48 deletions(-)
diff --git a/jero-web/src/components/viewFileModel/index.vue b/jero-web/src/components/viewFileModel/index.vue
index 882c93446..19a707125 100644
--- a/jero-web/src/components/viewFileModel/index.vue
+++ b/jero-web/src/components/viewFileModel/index.vue
@@ -49,6 +49,7 @@
loading: false,
visibleFile:false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
columnsFile: [
{
title: this.$t('fileName'),
@@ -78,10 +79,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ } else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardView.vue
index dac938744..b851648ab 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardView.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardView.vue
@@ -127,6 +127,7 @@
applyMarkets: '',
header_text: '',
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
url: {
list: '/problemKnowledgeBase/countryCardTempEO/list',
deleteOne: ''
@@ -153,10 +154,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.contentFileName, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
index 5c4fbfd08..6a4253db1 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
@@ -200,6 +200,7 @@
queryForm: {},
isPraise: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
isCollect: false
}
},
@@ -218,10 +219,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
index 67a9a1ca8..09ff3b0f0 100644
--- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
+++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
@@ -108,6 +108,7 @@
pageNo: 1,
queryParam: {},
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
userData: {},
columns: [
{
@@ -216,10 +217,12 @@
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
+ window.open(url, '_blank')
} else {
if (item.createBy == this.userInfo().username) {
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
diff --git a/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue b/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
index 96f62e53f..7955c1749 100644
--- a/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
+++ b/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
@@ -33,6 +33,7 @@
monthlyReportRegulationsList: [],
loading: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
url: {
list: '/report/lawsMonthlyReportManageEO/page'
}
@@ -74,10 +75,12 @@
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
+ window.open(url, '_blank')
} else {
if (item.createBy == this.userInfo().username){
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
diff --git a/jero-web/src/views/documentManage/library/docDetail/index.vue b/jero-web/src/views/documentManage/library/docDetail/index.vue
index 0fc6f949e..8f770354b 100644
--- a/jero-web/src/views/documentManage/library/docDetail/index.vue
+++ b/jero-web/src/views/documentManage/library/docDetail/index.vue
@@ -319,6 +319,7 @@
serial_number: '',
confirmLoading: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
loading: false,
dataSource: [],
pageNo: 1,
@@ -462,10 +463,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/documentTools/documentComparison/components/initiateComparison.vue b/jero-web/src/views/documentTools/documentComparison/components/initiateComparison.vue
index f110bf30f..7375c90ee 100644
--- a/jero-web/src/views/documentTools/documentComparison/components/initiateComparison.vue
+++ b/jero-web/src/views/documentTools/documentComparison/components/initiateComparison.vue
@@ -196,6 +196,7 @@
pageNoRight: 1,
formInline: {},
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
rules: {
remark: [
{
@@ -388,10 +389,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.fileId + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.fileId })
}
diff --git a/jero-web/src/views/documentTools/documentComparison/index.vue b/jero-web/src/views/documentTools/documentComparison/index.vue
index 0db7f9fde..39fe0ee88 100644
--- a/jero-web/src/views/documentTools/documentComparison/index.vue
+++ b/jero-web/src/views/documentTools/documentComparison/index.vue
@@ -126,6 +126,7 @@
dataSource: [],
selectedRowKeys: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
total: 0,
pageSize: 10,
pageNo: 1,
@@ -422,10 +423,12 @@
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + row.fileIdLeft + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', row.fileNameLeft, { id: row.fileIdLeft })
}
@@ -440,10 +443,12 @@
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + row.fileIdRight + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', row.fileNameRight, { id: row.fileIdRight })
}
diff --git a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
index 176ad2d8e..586d54b97 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
@@ -352,6 +352,7 @@
selectModel: '',
fileList: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
queryParamSeach: '',
mapOne: {},
mapTwo: {},
@@ -696,10 +697,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue b/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
index 4983ee2fc..a5ce3f338 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
@@ -92,6 +92,7 @@
total: 0,
pageSize: 10,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
pageNo: 1,
queryParam: {}
}
@@ -129,10 +130,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.file_id + fileSuffix)
+ window.open(url, '_blank')
}
},
ResetSearch() {
@@ -151,10 +154,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
}
diff --git a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
index 13b476153..ea2577782 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
@@ -132,6 +132,7 @@
loading: false,
fileList: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
mapOne: {},
mapTwo: {},
queryParamOne: {},
@@ -267,10 +268,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
}
diff --git a/jero-web/src/views/documentTools/searchCenter/components/whole.vue b/jero-web/src/views/documentTools/searchCenter/components/whole.vue
index b59a97b57..4b5525064 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/whole.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/whole.vue
@@ -116,6 +116,7 @@
total: 0,
pageSize: 10,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
pageNo: 1,
queryParam: {}
}
@@ -170,10 +171,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
}
@@ -239,10 +242,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.file_id + fileSuffix)
+ window.open(url, '_blank')
}
},
titleClick(item) {
diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
index 115752b3a..ffad9f9d9 100644
--- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
+++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
@@ -279,6 +279,7 @@
components: {},
visibleFile: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
dataSourceFile: [],
columnsFile: [
{
@@ -830,10 +831,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
@@ -848,10 +851,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', name, { id: id })
}
diff --git a/jero-web/src/views/processCenter/components/standardContentList.vue b/jero-web/src/views/processCenter/components/standardContentList.vue
index dcc984c20..32fd02fd5 100644
--- a/jero-web/src/views/processCenter/components/standardContentList.vue
+++ b/jero-web/src/views/processCenter/components/standardContentList.vue
@@ -71,6 +71,7 @@
return {
dataSource: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
columns: [
{
title: this.$t('ProcessType'),
@@ -187,10 +188,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
@@ -205,10 +208,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', name, { id: id })
}
diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
index b2b6e72b1..ca9de26a5 100644
--- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue
+++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
@@ -848,6 +848,7 @@
AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit'
},
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
loading: false,
dataSource: [],
isResultReported: false,
@@ -2126,10 +2127,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
@@ -2145,10 +2148,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', name, { id: id, userName: this.userInfo().username })
}
diff --git a/jero-web/src/views/projectManagement/components/resultReportedUpload.vue b/jero-web/src/views/projectManagement/components/resultReportedUpload.vue
index 034fd3e96..a45c9d3a3 100644
--- a/jero-web/src/views/projectManagement/components/resultReportedUpload.vue
+++ b/jero-web/src/views/projectManagement/components/resultReportedUpload.vue
@@ -49,6 +49,7 @@
myuploadAction: window._CONFIG['domianURL'] + this.thisFileUploadUrl,
upDataList: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
fileList: [],
myfileList: [],
isLoding: false,
@@ -214,10 +215,12 @@
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id,userName:this.userInfo().username })
}
diff --git a/jero-web/src/views/projectManagement/historicalVersion/index.vue b/jero-web/src/views/projectManagement/historicalVersion/index.vue
index e6e932166..a2ce6ffa2 100644
--- a/jero-web/src/views/projectManagement/historicalVersion/index.vue
+++ b/jero-web/src/views/projectManagement/historicalVersion/index.vue
@@ -363,6 +363,7 @@
list: '/project/projectVersionInfoEO/list'
},
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
loading: false,
dataSource: [],
// fieldList | array |✔| 需要查询的列集合示例如下,type类型有:date/datetime/string/int/number
@@ -468,10 +469,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
@@ -486,10 +489,12 @@
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
- } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
- || fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
window.open(url, '_blank')
+ }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
+ window.open(url, '_blank')
} else {
downloadFile('/sys/common/downLoadFile', name, { id: id })
}
From 62a87236aa42063812ba59665489a08f5db4690f Mon Sep 17 00:00:00 2001
From: CD <1103614279@qq.com>
Date: Mon, 10 Oct 2022 10:21:57 +0800
Subject: [PATCH 024/251] =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=90=8D=E7=A7=B0?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SarFileCompareItemCommentServiceImpl.java | 25 ++++++++++---------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
index a635115b7..d54fc7199 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java
@@ -288,9 +288,9 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl") < 0) {
@@ -487,7 +487,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl", "").replace("", "\r\n");
//分割图片
- addImgdata(text, request.getSession());
+ splitImg(text, request.getSession());
//分割表格
String txtAndImg = (String) request.getSession().getAttribute("txtAndImg");
txtAndImg = txtAndImg.replaceAll("table", "replaceTable");
@@ -514,18 +514,19 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl标签内容中的图片路径,并重新按顺序拼接
+ * 分割图片
* @param text
+ * @param session
* @return
*/
- private void addImgdata(String text,HttpSession session) {
+ private void splitImg(String text,HttpSession session) {
if (text.contains("
") + 3);
String img = text.substring(text.indexOf("
"));
String path = img.substring(img.lastIndexOf("=") + 1)+"g";
text = txtLeft + "---" + path + "---" + txtRight;
- addImgdata(text, session);
+ splitImg(text, session);
} else {
session.setAttribute("txtAndImg", text);
}
From c906c3556672e78c787c370bc7d9282a378155af Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Mon, 10 Oct 2022 10:22:01 +0800
Subject: [PATCH 025/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/common/lang/en-us.js | 1 +
jero-web/src/common/lang/zh-cn.js | 1 +
.../components/PersonnelSelection/index.vue | 653 +++++++++---------
3 files changed, 331 insertions(+), 324 deletions(-)
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index ee9098642..cb6a0ad64 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1318,4 +1318,5 @@ module.exports = {
endProcess:'End Process',
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
secondaryDirectory:'Secondary directory',
+ OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index 6c242520e..28ce6b3c9 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1419,4 +1419,5 @@ module.exports = {
endProcess:'结束流程',
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
secondaryDirectory:'二级目录',
+ OnlyPersonsCanBeSelected:'超出最大上限;只能选择100个人员',
}
\ No newline at end of file
diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue
index 9521fee72..b84f99147 100644
--- a/jero-web/src/components/PersonnelSelection/index.vue
+++ b/jero-web/src/components/PersonnelSelection/index.vue
@@ -32,39 +32,39 @@
v-model="searchModel" @search="onSearch"/>
{{$t('dataLoading')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ ref="virtualNodeTreeRef"
+ :keeps="40"
+ show-checkbox
+ v-model="checkboxList"
+ class="treeWrap"
+ :defaultCheckedKeys="defaultCheckedKeys"
+ :defaultExpandAll="defaultExpandAll"
+ :check-strictly="false"
+ node-key="id"
+ @check="handleCheckChange"
+ @check-change="checkChange"
+ :data.sync="gData">
+
+
+ {{ data.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('cancel')}}
@@ -114,137 +114,137 @@
},
methods: {
- // checkChange(val, checked, indeterminate) {
- // if (!checked && this.searchData) {
- // this.userName = this.userName.filter(res => {
- // return res != val.title
- // })
- // this.userIds = this.userIds.filter(res => {
- // return res != val.id
- // })
- // for (let i = 0; i < this.userIds.length; i++) {
- // if (this.userIds[i] == val.parentId) {
- // this.userIds.splice(i, 1)
- // this.userName.splice(i, 1)
- // i--
- // }
- // }
- // } else if (checked && this.searchData) {
- // this.userName.push(val.title)
- // this.userIds.push(val.id)
- // }
- // },
- // handleCheckChange(val, data, checked) {
- // if (!this.searchData) {
- // this.userName = []
- // this.userIds = []
- // if (data.checkedNodes && data.checkedNodes.length > 0) {
- // data.checkedNodes.forEach(res => {
- // this.userName.push(res.title)
- // this.userIds.push(res.id)
- // })
- // }
- // }
- // },
+ checkChange(val, checked, indeterminate) {
+ if (!checked && this.searchData) {
+ this.userName = this.userName.filter(res => {
+ return res != val.title
+ })
+ this.userIds = this.userIds.filter(res => {
+ return res != val.id
+ })
+ for (let i = 0; i < this.userIds.length; i++) {
+ if (this.userIds[i] == val.parentId) {
+ this.userIds.splice(i, 1)
+ this.userName.splice(i, 1)
+ i--
+ }
+ }
+ } else if (checked && this.searchData) {
+ this.userName.push(val.title)
+ this.userIds.push(val.id)
+ }
+ },
+ handleCheckChange(val, data, checked) {
+ if (!this.searchData) {
+ this.userName = []
+ this.userIds = []
+ if (data.checkedNodes && data.checkedNodes.length > 0) {
+ data.checkedNodes.forEach(res => {
+ this.userName.push(res.title)
+ this.userIds.push(res.id)
+ })
+ }
+ }
+ },
standardClick() {
this.treeVisible = false
- this.departId = ''
+ // this.departId = ''
this.searchModel = ''
this.searchData = ''
- this.userIds = []
- this.userName = []
- this.queryDepartUserTreeList(1)
+ // this.userIds = []
+ // this.userName = []
+ // this.queryDepartUserTreeList(1)
this.visible = true
- // let gData = localStorage.getItem('gData')
- // if (gData) {
- // let dataList = JSON.parse(gData)
- // if (!this.selectDepartment) {
- // dataList.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // this.dataList = this.toTree(dataList)
- // }
- // setTimeout(() => {
- // if (gData) {
- // this.gData = this.dataList
- // this.gData = [...this.gData]
- // // this.treeVisible = true
- // if (this.personneQuery[this.query.db_field_name + 'Name']) {
- // this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
- // } else if (this.personneQuery[this.query.db_field_name]) {
- // this.userName = this.personneQuery[this.query.db_field_name].split(',')
- // } else {
- // this.userName = []
- // }
- // if (this.personneQuery[this.query.db_field_name + '_id']) {
- // this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
- // } else if (this.personneQuery[this.query.db_field_name]) {
- // this.userIds = this.personneQuery[this.query.db_field_name].split(',')
- // } else {
- // this.userIds = []
- // }
- // this.defaultCheckedKeys = this.userIds
- // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- // this.defaultExpandAll = false
- // this.treeVisible = true
- // } else {
- // this.queryDepartUserTreeList(1)
- // }
- // }, 200)
+ let gData = localStorage.getItem('gData')
+ if (gData) {
+ let dataList = JSON.parse(gData)
+ if (!this.selectDepartment) {
+ dataList.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ this.dataList = this.toTree(dataList)
+ }
+ setTimeout(() => {
+ if (gData) {
+ this.gData = this.dataList
+ this.gData = [...this.gData]
+ // this.treeVisible = true
+ if (this.personneQuery[this.query.db_field_name + 'Name']) {
+ this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
+ } else if (this.personneQuery[this.query.db_field_name]) {
+ this.userName = this.personneQuery[this.query.db_field_name].split(',')
+ } else {
+ this.userName = []
+ }
+ if (this.personneQuery[this.query.db_field_name + '_id']) {
+ this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
+ } else if (this.personneQuery[this.query.db_field_name]) {
+ this.userIds = this.personneQuery[this.query.db_field_name].split(',')
+ } else {
+ this.userIds = []
+ }
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.defaultExpandAll = false
+ this.treeVisible = true
+ } else {
+ this.queryDepartUserTreeList(1)
+ }
+ }, 200)
+ },
+ deleteChildren(value, arr) {
+ let newarr = []
+ arr.forEach(element => {
+ if (element.title.indexOf(value) > -1) { // 判断条件
+ newarr.push(element)
+ } else {
+ if (element.children && element.children.length > 0) {
+ let redata = this.deleteChildren(value, element.children)
+ if (redata && redata.length > 0) {
+ let obj = {
+ ...element,
+ children: redata
+ }
+ newarr.push(obj)
+ }
+ }
+ }
+ })
+ return newarr
+ },
+ // 将数据拼成树形结构
+ toTree(config, num) {
+ // 删除 所有 children,以防止多次调用
+ config.forEach(function(item) {
+ delete item.children
+ })
+ // 将数据存储为 以 id 为 KEY 的 map 索引数据列
+ let map = {}
+ config.forEach((item) => {
+ item.label = item.name
+ item.key = item.id
+
+ item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
+ map[item.id] = item
+ })
+ let val = []
+ config.forEach((item) => {
+ // 以当前遍历项,的pid,去map对象中找到索引的id
+ let parent = map[item.parentId]
+
+ // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
+ if (parent) {
+ (parent.children || (parent.children = [])).push(item)
+ } else {
+ //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
+ val.push(item)
+ }
+ })
+ return val
},
- // deleteChildren(value, arr) {
- // let newarr = []
- // arr.forEach(element => {
- // if (element.title.indexOf(value) > -1) { // 判断条件
- // newarr.push(element)
- // } else {
- // if (element.children && element.children.length > 0) {
- // let redata = this.deleteChildren(value, element.children)
- // if (redata && redata.length > 0) {
- // let obj = {
- // ...element,
- // children: redata
- // }
- // newarr.push(obj)
- // }
- // }
- // }
- // })
- // return newarr
- // },
- //将数据拼成树形结构
- // toTree(config, num) {
- // // 删除 所有 children,以防止多次调用
- // config.forEach(function(item) {
- // delete item.children
- // })
- // // 将数据存储为 以 id 为 KEY 的 map 索引数据列
- // let map = {}
- // config.forEach((item) => {
- // item.label = item.name
- // item.key = item.id
- //
- // item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
- // map[item.id] = item
- // })
- // let val = []
- // config.forEach((item) => {
- // // 以当前遍历项,的pid,去map对象中找到索引的id
- // let parent = map[item.parentId]
- //
- // // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
- // if (parent) {
- // (parent.children || (parent.children = [])).push(item)
- // } else {
- // //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
- // val.push(item)
- // }
- // })
- // return val
- // },
standardDelete() {
this.$emit('input', null)
this.$forceUpdate()
@@ -255,61 +255,61 @@
// this.selectedKey = selectedKeys
// },
- onCheck(checkedKeys, info) {
- this.userIds = checkedKeys.checked
- this.userName = []
- if (this.userIds.length > 0) {
- for (let i = 0; i < this.userIds.length; i++) {
- for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
- if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
- this.userName.push(this.defaultCheckedKeysName[j].name)
- }
- }
- }
- }
- if (info.checkedNodes && info.checkedNodes.length > 0) {
- info.checkedNodes.forEach(res => {
- if (res.data.props.dataRef.key) {
- this.content.push({
- id: res.data.props.dataRef.key,
- title: res.data.props.dataRef.title
- })
- } else {
- this.content.push({
- id: res.data.props.id,
- title: res.data.props.title
- })
- }
- })
- }
- if (this.content && this.content.length > 0) {
- for (let i = 0; i < this.content.length; i++) {
- for (let j = i + 1; j < this.content.length; j++) {
- if (this.content[i].id == this.content[j].id) {
- this.content.splice(j, 1)
- j--
- }
- }
- }
- this.userIds.forEach(res => {
- this.content.forEach(val => {
- if (res == val.id) {
- this.userName.push(val.title)
- }
- })
- })
- }
- if (this.userName.length > 0) {
- for (let i = 0; i < this.userName.length; i++) {
- for (let j = i + 1; j < this.userName.length; j++) {
- if (this.userName[i] == this.userName[j]) {
- this.userName.splice(j, 1)
- j--
- }
- }
- }
- }
- },
+ // onCheck(checkedKeys, info) {
+ // this.userIds = checkedKeys.checked
+ // this.userName = []
+ // if (this.userIds.length > 0) {
+ // for (let i = 0; i < this.userIds.length; i++) {
+ // for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
+ // if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
+ // this.userName.push(this.defaultCheckedKeysName[j].name)
+ // }
+ // }
+ // }
+ // }
+ // if (info.checkedNodes && info.checkedNodes.length > 0) {
+ // info.checkedNodes.forEach(res => {
+ // if (res.data.props.dataRef.key) {
+ // this.content.push({
+ // id: res.data.props.dataRef.key,
+ // title: res.data.props.dataRef.title
+ // })
+ // } else {
+ // this.content.push({
+ // id: res.data.props.id,
+ // title: res.data.props.title
+ // })
+ // }
+ // })
+ // }
+ // if (this.content && this.content.length > 0) {
+ // for (let i = 0; i < this.content.length; i++) {
+ // for (let j = i + 1; j < this.content.length; j++) {
+ // if (this.content[i].id == this.content[j].id) {
+ // this.content.splice(j, 1)
+ // j--
+ // }
+ // }
+ // }
+ // this.userIds.forEach(res => {
+ // this.content.forEach(val => {
+ // if (res == val.id) {
+ // this.userName.push(val.title)
+ // }
+ // })
+ // })
+ // }
+ // if (this.userName.length > 0) {
+ // for (let i = 0; i < this.userName.length; i++) {
+ // for (let j = i + 1; j < this.userName.length; j++) {
+ // if (this.userName[i] == this.userName[j]) {
+ // this.userName.splice(j, 1)
+ // j--
+ // }
+ // }
+ // }
+ // }
+ // },
handleCancel() {
this.visible = false
this.treeVisible = false
@@ -324,12 +324,16 @@
}
let userIds = JSON.parse(JSON.stringify(this.userIds))
let userName = JSON.parse(JSON.stringify(this.userName))
- // userName = userName.filter(function(item, index) {
- // return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
- // })
- // userIds = userIds.filter(function(item, index) {
- // return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
- // })
+ userName = userName.filter(function(item, index) {
+ return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ })
+ userIds = userIds.filter(function(item, index) {
+ return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
+ })
+ if (userIds.length > 100 && this.selectDepartment) {
+ this.$message.warning(this.$t('OnlyPersonsCanBeSelected'))
+ return
+ }
this.$emit('input', userName.join(','))
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
this.visible = false
@@ -347,119 +351,120 @@
this.defaultCheckedKeys = []
},
onSearch(e) {
- // this.treeVisible = false
- // let p = new Promise((resolve, reject) => {
- // resolve()
- // })
- // p.then(() => {
- // this.searchData = e
- // let gData = localStorage.getItem('gData')
- // let content = []
- // if (gData) {
- // if (e) {
- // JSON.parse(gData).forEach(res => {
- // if (res.type == 'User') {
- // if (res.name.includes(e)) {
- // res.color = true
- // content.push(res)
- // }
- // }
- // // else if(res.type == 'Depart'){
- // // content.push(res)
- // // }
- // })
- // let gDataAdmin = this.toTree(content)
- // this.gData = this.deleteChildren(e, gDataAdmin)
- // this.defaultExpandAll = true
- // this.treeVisible = true
- // this.defaultCheckedKeys = this.userIds
- // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- // this.loading = false
- // } else {
- // let content = JSON.parse(gData)
- // if (!this.selectDepartment) {
- // content.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // this.gData = this.toTree(content)
- // this.defaultExpandAll = false
- // this.defaultCheckedKeys = this.userIds
- // this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- // this.treeVisible = true
- // this.loading = false
- // }
- // }
- // })
- this.gData = []
- this.departId = ''
- this.visibleTree = false
- if (e) {
- this.getUserAndDepart()
- } else {
- this.treeVisible = false
- this.queryDepartUserTreeList(2)
- }
- },
- getUserAndDepart() {
- getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
- if (res) {
- this.gData = res.filter(ele => ele.flag === 'DEPART')
- } else {
- this.gData = []
- }
- this.visibleTree = true
+ this.treeVisible = false
+ let p = new Promise((resolve, reject) => {
+ resolve()
})
- },
- onExpand(selectedKeys, val) {
- if (this.searchModel == '' || !this.searchModel) {
- if (val.expanded) {
- if (this.departId == val.node.value) {
+ p.then(() => {
+ this.searchData = e
+ let gData = localStorage.getItem('gData')
+ let content = []
+ if (gData) {
+ if (e) {
+ JSON.parse(gData).forEach(res => {
+ if (res.type == 'User') {
+ if (res.name.includes(e)) {
+ res.color = true
+ content.push(res)
+ }
+ }
+ // else if(res.type == 'Depart'){
+ // content.push(res)
+ // }
+ })
+ let gDataAdmin = this.toTree(content)
+ this.gData = this.deleteChildren(e, gDataAdmin)
+ this.defaultExpandAll = true
+ this.treeVisible = true
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.loading = false
} else {
- this.departId = val.node.value
- this.queryDepartUserTreeList(2)
+ let content = JSON.parse(gData)
+ if (!this.selectDepartment) {
+ content.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ this.gData = this.toTree(content)
+ this.defaultExpandAll = false
+ this.defaultCheckedKeys = this.userIds
+ this.defaultCheckedKeys = [...this.defaultCheckedKeys]
+ this.treeVisible = true
+ this.loading = false
}
}
- }
+ })
+ // this.gData = []
+ // this.departId = ''
+ // this.visibleTree = false
+ // if (e) {
+ // this.getUserAndDepart()
+ // } else {
+ // this.treeVisible = false
+ // this.queryDepartUserTreeList(2)
+ // }
},
+ // getUserAndDepart() {
+ // getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
+ // if (res) {
+ // this.gData = res.filter(ele => ele.flag === 'DEPART')
+ // } else {
+ // this.gData = []
+ // }
+ // this.visibleTree = true
+ // })
+ // },
+ // onExpand(selectedKeys, val) {
+ // if (this.searchModel == '' || !this.searchModel) {
+ // if (val.expanded) {
+ // if (this.departId == val.node.value) {
+ // } else {
+ // this.departId = val.node.value
+ // this.queryDepartUserTreeList(2)
+ // }
+ // }
+ // }
+ // },
queryDepartUserTreeList(num) {
- let gData = JSON.parse(JSON.stringify(this.gData))
- if (gData && gData.length > 0) {
- gData = JSON.stringify(gData)
- } else {
- gData = ''
- }
+ // let gData = JSON.parse(JSON.stringify(this.gData))
+ // if (gData && gData.length > 0) {
+ // gData = JSON.stringify(gData)
+ // } else {
+ // gData = ''
+ // }
this.confirmLoading = true
this.loading = true
- //queryDepartUserTreeList
- //queryUserTreeList
- postAction('sys/user/queryDepartUserTreeList', {
- departId: this.departId,
- json: gData,
- flag: '1'
+ //queryDepartUserTreeList post
+ //queryUserTreeList get
+ //换接口需要改请求
+ getAction('sys/user/queryUserTreeList', {
+ // departId: this.departId,
+ // json: gData,
+ // flag: '1'
}).then((res) => {
this.confirmLoading = false
if (res.success) {
this.loading = false
// localStorage.setItem('gData', JSON.stringify(res.result))
// this.toTree(dataList)
- // let content = JSON.parse(JSON.stringify(res.result))
- // if (!this.selectDepartment) {
- // res.result.forEach(res => {
- // if (res.type == 'Depart') {
- // res.disabled = true
- // }
- // })
- // }
- // localStorage.removeItem('gData')
- // localStorage.setItem('gData', JSON.stringify(content))
- // this.gData = this.toTree(res.result)
- this.gData = res.result
+ let content = JSON.parse(JSON.stringify(res.result))
+ if (!this.selectDepartment) {
+ res.result.forEach(res => {
+ if (res.type == 'Depart') {
+ res.disabled = true
+ }
+ })
+ }
+ localStorage.removeItem('gData')
+ localStorage.setItem('gData', JSON.stringify(content))
+ this.gData = this.toTree(res.result)
+ // this.gData = res.result
this.gData = [...this.gData]
// this.gData[0].isLeaf = false
- this.defaultExpandedKeys = [this.departId]
+ // this.defaultExpandedKeys = [this.departId]
if (num == 1) {
if (this.userName && this.userName.length == 0) {
if (this.personneQuery[this.query.db_field_name + 'Name']) {
@@ -481,15 +486,15 @@
}
this.defaultCheckedKeys = this.userIds
this.defaultCheckedKeys = [...this.defaultCheckedKeys]
- this.defaultCheckedKeysName = []
- if (this.defaultCheckedKeys.length > 0) {
- for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
- this.defaultCheckedKeysName.push({
- id: this.defaultCheckedKeys[i],
- name: this.userName[i]
- })
- }
- }
+ // this.defaultCheckedKeysName = []
+ // if (this.defaultCheckedKeys.length > 0) {
+ // for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
+ // this.defaultCheckedKeysName.push({
+ // id: this.defaultCheckedKeys[i],
+ // name: this.userName[i]
+ // })
+ // }
+ // }
}
this.defaultExpandAll = false
this.treeVisible = true
From 36d3f0c323a49f560e8d75834481ab06ac2665d9 Mon Sep 17 00:00:00 2001
From: liyawei
Date: Mon, 10 Oct 2022 11:45:51 +0800
Subject: [PATCH 026/251] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86-?=
=?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=80=E6=AC=A1=E6=89=B9=E9=87=8F=E6=8F=92?=
=?UTF-8?q?=E5=85=A5=E5=A4=AA=E5=A4=9APacketTooBigException=E5=BC=82?=
=?UTF-8?q?=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../impl/FileSplitItemsEOServiceImpl.java | 21 ++++++++++++++++-
.../service/impl/FileSplitPdfService.java | 2 +-
.../SarFileSplitItemsValEOServiceImpl.java | 23 +++++++++++++++++--
3 files changed, 42 insertions(+), 4 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java
index de51fcadf..c4c4dd28f 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java
@@ -3754,7 +3754,26 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl messageList) {
- return dao.insertForeach(messageList);
+ // 解决一次批量插入太多 PacketTooBigException 异常
+ int total = messageList.size();
+ int count = 0;
+ int pageSum = 1;
+ if(total > 100) {
+ pageSum = total / 100; // 总页数
+ if ((total % 100) > 0) {
+ pageSum += 1;
+ }
+ }
+ List subList = new ArrayList<>();
+ for(int i = 0; i < pageSum; i++) {
+ int j = i*100+100;
+ if (i == pageSum -1) {
+ j = total;
+ }
+ subList = messageList.subList(i*100, j);
+ count += dao.insertForeach(subList);
+ }
+ return count;
}
/**
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitPdfService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitPdfService.java
index 1946515db..79ddc5648 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitPdfService.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitPdfService.java
@@ -1784,7 +1784,7 @@ public class FileSplitPdfService {
if(StringUtils.isNotBlank(preName)) {
List nowStartList = fileSpiltService.getNewNowStart(preName);
- List subList1 = startDigitList.subList(preNameNum, startDigitList.size()-1);
+ List subList1 = startDigitList.subList(preNameNum, startDigitList.size());
// 后文有一级以下的标题
for (int i = nowStartList.size() - 1; i >= 1; i--) {
int index1 = subList1.indexOf(nowStartList.get(i));
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsValEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsValEOServiceImpl.java
index 87e8331e3..1ab1404f2 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsValEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsValEOServiceImpl.java
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
+import java.util.ArrayList;
import java.util.List;
@@ -79,8 +80,26 @@ public class SarFileSplitItemsValEOServiceImpl extends ServiceImpl itemValList) {
-
- return dao.insertForeach(itemValList);
+ // 解决一次批量插入太多 PacketTooBigException 异常
+ int total = itemValList.size();
+ int count = 0;
+ int pageSum = 1;
+ if(total > 100) {
+ pageSum = total / 100; // 总页数
+ if ((total % 100) > 0) {
+ pageSum += 1;
+ }
+ }
+ List subList = new ArrayList<>();
+ for(int i = 0; i < pageSum; i++) {
+ int j = i*100+100;
+ if (i == pageSum -1) {
+ j = total;
+ }
+ subList = itemValList.subList(i*100, j);
+ count += dao.insertForeach(subList);
+ }
+ return count;
}
}
From cc3554958aaac5dc29c5a1f0b3ae6e46f08e2d66 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Mon, 10 Oct 2022 13:46:57 +0800
Subject: [PATCH 027/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/components/virtualNodeTree/tree.vue | 5 ++---
.../components/problemKnowledgeBaseList.vue | 4 ++--
.../components/problemKnowledgeBaseListView.vue | 10 ++++++----
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/jero-web/src/components/virtualNodeTree/tree.vue b/jero-web/src/components/virtualNodeTree/tree.vue
index a98fea522..9d58be060 100644
--- a/jero-web/src/components/virtualNodeTree/tree.vue
+++ b/jero-web/src/components/virtualNodeTree/tree.vue
@@ -759,8 +759,8 @@
}
.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before {
- background-color: #c0c4cc;
- border-color: #c0c4cc
+ background-color: #fff;
+ border-color: #fff;
}
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
@@ -927,7 +927,6 @@
.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner {
border-left-color: #409eff
}
-
.el-checkbox-button.is-disabled .el-checkbox-button__inner {
color: #c0c4cc;
cursor: not-allowed;
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
index a73a4a075..1c1ef45bd 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
@@ -662,12 +662,12 @@
margin-top: 10px;
.content-box-content-botton-text {
- width: 118px;
+ max-width: 198px;
height: 32px;
display: inline-block;
text-align: center;
line-height: 32px;
- padding: 0 6px;
+ padding: 0 10px;
background: #EFF1F3;
border-radius: 4px;
text-overflow: ellipsis;
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
index 6a4253db1..78ad86e43 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
@@ -222,7 +222,7 @@
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
- }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ } else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
} else {
@@ -494,12 +494,13 @@
margin-top: 10px;
.content-box-content-botton-text {
- width: 140px;
+ max-width: 200px;
+ /*min-width: 120px;*/
height: 32px;
display: inline-block;
text-align: center;
line-height: 32px;
- padding: 0 6px;
+ padding: 0 10px;
background: #EFF1F3;
border-radius: 4px;
text-overflow: ellipsis;
@@ -512,7 +513,7 @@
cursor: pointer;
.file-text {
- width: 90px;
+ width: calc(100% - 30px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -522,6 +523,7 @@
}
.icon-text {
+ width: 24px;
font-size: 16px;
overflow: hidden;
margin-bottom: 9px;
From 0ba8ed9a274f2105e1565a28d1b977a68baa14b7 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Mon, 10 Oct 2022 14:41:42 +0800
Subject: [PATCH 028/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/components/setCreator/index.vue | 392 ++++++++++++++-----
1 file changed, 292 insertions(+), 100 deletions(-)
diff --git a/jero-web/src/components/setCreator/index.vue b/jero-web/src/components/setCreator/index.vue
index 12c38aa43..4d5537bb3 100644
--- a/jero-web/src/components/setCreator/index.vue
+++ b/jero-web/src/components/setCreator/index.vue
@@ -15,18 +15,38 @@
allowClear
:placeholder="$t('NodeQuickLookup')"/>
-
-
+
+
+
+ {{ data.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -36,6 +37,7 @@
From bb4de00f0093b013d04a9d28f210ac0a691f48f4 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Wed, 12 Oct 2022 13:40:05 +0800
Subject: [PATCH 048/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/documentDataComparison.vue | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
index 4d0b38763..f4d911099 100644
--- a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
+++ b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
@@ -91,7 +91,9 @@
@@ -356,7 +357,7 @@
document.title = this.$t('problemKnowledgeBase') + this.$t('edit')
} else {
this.isDisplayIndex = true
- this.$nextTick(()=>{
+ this.$nextTick(() => {
this.myQuillEditor()
})
document.title = this.$t('problemKnowledgeBase') + this.$t('newlyAdded')
@@ -476,6 +477,11 @@
} else {
this.formInline.standNumber = []
}
+ if (this.formInline.problemType) {
+ this.formInline.problemType = this.formInline.problemType.split(',')
+ } else {
+ this.formInline.problemType = []
+ }
this.formInline = { ...this.formInline }
} else {
this.formInline = {}
@@ -491,7 +497,7 @@
this.$router.go(-1)
},
onEditorReady(quill) {
- if (this.formInlineOne.content){
+ if (this.formInlineOne.content) {
document.getElementsByClassName('ql-editor')[0].innerHTML = this.formInlineOne.content
}
},
@@ -600,9 +606,12 @@
if (valid) {
let formInline = JSON.parse(JSON.stringify(this.formInline))
// if (formInline.standNumber && formInline.standNumber.length > 0) {
- if (formInline.standNumber instanceof Array){
+ if (formInline.standNumber instanceof Array) {
formInline.standNumber = formInline.standNumber.join(',')
}
+ if (formInline.problemType instanceof Array) {
+ formInline.problemType = formInline.problemType.join(',')
+ }
// }
this.loading = true
this.confirmLoading = true
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
index 1c1ef45bd..78057a352 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue
@@ -65,16 +65,16 @@
{{val}}
-
-
-
+
+
- {{val.fileName}}
+ {{val.fileName}}
@@ -85,9 +85,13 @@
{{item.createBy}}
-
+
- {{item.problemTypeName}}
+ {{item.standNumber}}
+
+
+
+ {{item.targetMarket_dicText}}
@@ -170,6 +174,7 @@
import SelectedBy from '@/components/SelectedBy/index'
import problemKnowledgeBaseListView from './problemKnowledgeBaseListView'
import { mapGetters } from 'vuex'
+ import { Base64 } from 'js-base64'
export default {
name: 'problemKnowledgeBaseList',
@@ -193,6 +198,7 @@
queryForm: {},
tagList: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
+ downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
pageNo: 1,
url: {
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page'
@@ -255,6 +261,26 @@
this.getList()
})
},
+ fileClick(fileQuery) {
+ let fileName = fileQuery.fileName
+ let index1 = fileName.lastIndexOf('.')
+ let index2 = fileName.length
+ let fileSuffix = fileName.substring(index1, index2)
+ if (fileSuffix == '.pdf') {
+ window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id + '&userName=' + this.userInfo().username))
+ } else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else {
+ downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
+ }
+ },
problemKnowledgeBase() {
this.pageNo = 1
this.isTrue = true
@@ -309,7 +335,8 @@
},
getText(str) {
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
- return words.replace(/\s/g, '') //这里是去除空格
+ //.replace(/\s/g, '') //这里是去除空格
+ return words
},
getList() {
let selectedTags = JSON.parse(JSON.stringify(this.selectedTags))
@@ -629,7 +656,7 @@
background: #DBF2F3;
border-radius: 3px;
margin-left: 6px;
- max-width: 120px;
+ max-width: 140px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
@@ -662,22 +689,22 @@
margin-top: 10px;
.content-box-content-botton-text {
- max-width: 198px;
+ /*max-width: 198px;*/
height: 32px;
display: inline-block;
text-align: center;
line-height: 32px;
- padding: 0 10px;
- background: #EFF1F3;
+ /*background: #EFF1F3;*/
border-radius: 4px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
- font-size: 12px;
+ font-size: 14px;
font-weight: 400;
color: #040B29;
- margin-right: 10px;
+ margin-right: 20px;
cursor: pointer;
+ text-decoration: underline;
}
}
}
@@ -789,7 +816,7 @@
background: #fff;
background: rgba(4, 11, 41, 0.06);
color: #363C54;
- max-width: 150px;
+ max-width: 280px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
index 78ad86e43..4c0f51f27 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseListView.vue
@@ -33,9 +33,13 @@
{{queryForm.createBy}}
-
-
- {{queryForm.problemTypeName}}
+
+
+ {{queryForm.standNumber}}
+
+
+
+ {{queryForm.targetMarket_dicText}}
@@ -96,8 +100,16 @@
-
- {{$t('answer')}}
+
+
+ {{$t('answer')}}
+
+
+ {{$t('delete')}}
+
@@ -158,6 +177,7 @@
import SelectedBy from '@/components/SelectedBy/index'
import { mapGetters } from 'vuex'
import { Base64 } from 'js-base64'
+ import { deleteAction } from '../../../../api/manage'
export default {
name: 'problemKnowledgeBaseListView',
@@ -167,6 +187,8 @@
data() {
return {
visibleComment: false,
+ administrators: false,
+ userInfoQuery: {},
releaseList: [],
loading: false,
formInline: {},
@@ -205,7 +227,15 @@
}
},
mounted() {
-
+ this.administrators = false
+ this.userInfoQuery = this.userInfo()
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
},
methods: {
...mapGetters(['userInfo']),
@@ -229,6 +259,28 @@
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
},
+ deleteClick(item) {
+ let _this = this
+ this.$confirm({
+ content: _this.$t('ConfirmDelete'),
+ onOk() {
+ let url = ''
+ if (item.problemKnowledgeBaseId) {
+ url = '/problemKnowledgeBase/problemKnowledgeBaseCommentEO/deleteBatch'
+ } else {
+ url = '/project/problemKnowledgeBaseReplyEO/deleteBatch'
+ }
+ deleteAction(url, { ids: item.id }).then((res) => {
+ if (res.success) {
+ _this.$message.success(_this.$t('OperationSuccessful'))
+ _this.releaseData()
+ } else {
+ _this.$message.warning(res.message)
+ }
+ })
+ }
+ })
+ },
download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
},
@@ -494,22 +546,22 @@
margin-top: 10px;
.content-box-content-botton-text {
- max-width: 200px;
+ /*max-width: 200px;*/
/*min-width: 120px;*/
height: 32px;
display: inline-block;
text-align: center;
line-height: 32px;
- padding: 0 10px;
- background: #EFF1F3;
+ /*padding: 0 10px;*/
+ /*background: #EFF1F3;*/
border-radius: 4px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
- font-size: 12px;
+ font-size: 14px;
font-weight: 400;
color: #040B29;
- margin-right: 10px;
+ margin-right: 20px;
cursor: pointer;
.file-text {
@@ -517,6 +569,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ text-decoration: underline;
display: inline-block;
margin-right: 6px;
cursor: pointer;
@@ -632,6 +685,10 @@
margin-top: 6px;
}
+ .answer-text-index {
+ width: 100%;
+ }
+
.answer-text {
display: inline-block;
padding: 3px 14px;
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
index 67a491e01..cc029a5c3 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
@@ -3,9 +3,9 @@
@@ -42,8 +42,10 @@
{{item.contentOne}}
@@ -85,8 +87,10 @@
pageSize: 10,
searchStr: '',
loading: false,
+ administrators: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
pageNo: 1,
+ userInfoQuery: {},
url: {
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page',
deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch'
@@ -96,6 +100,15 @@
mounted() {
this.getList()
document.title = this.$t('managePublishing')
+ this.administrators = false
+ this.userInfoQuery = this.userInfo()
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
},
methods: {
...mapGetters(['userInfo']),
@@ -119,7 +132,8 @@
},
getText(str) {
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
- return words.replace(/\s/g, '') //这里是去除空格
+ //.replace(/\s/g, '') //这里是去除空格
+ return words
},
getList() {
let query = {
diff --git a/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue b/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue
index 8d9566e23..bdb7e2f03 100644
--- a/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue
+++ b/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue
@@ -205,7 +205,8 @@
},
getText(str) {
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
- return words.replace(/\s/g, '') //这里是去除空格
+ //.replace(/\s/g, '') //这里是去除空格
+ return words
},
getList() {
let query = {
diff --git a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
index ea2577782..6bdb523d5 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
@@ -222,7 +222,8 @@
},
getText(str) {
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
- return words.replace(/\s/g, '') //这里是去除空格
+ //.replace(/\s/g, '') //这里是去除空格
+ return words
},
getParagraphInfoList() {
let queryParamIndex = JSON.parse(JSON.stringify(this.queryParam))
diff --git a/jero-web/src/views/documentTools/searchCenter/components/whole.vue b/jero-web/src/views/documentTools/searchCenter/components/whole.vue
index 4b5525064..0b2597018 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/whole.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/whole.vue
@@ -201,7 +201,8 @@
},
getText(str) {
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
- return words.replace(/\s/g, '') //这里是去除空格
+ //.replace(/\s/g, '') //这里是去除空格
+ return words
},
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
From 0ae4b1e3a15ad3a0538e7444c047aab1a7e91497 Mon Sep 17 00:00:00 2001
From: zhn <947514737@qq.com>
Date: Wed, 12 Oct 2022 17:03:07 +0800
Subject: [PATCH 050/251] =?UTF-8?q?=E6=9C=88=E6=8A=A5=E5=AF=BC=E5=87=BA--?=
=?UTF-8?q?=E6=B3=95=E8=A7=84=E8=81=94=E7=B3=BB=E4=BA=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/java/com/jero/modules/report/util/WordUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java
index 848032435..099911f9e 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java
@@ -1040,7 +1040,7 @@ public class WordUtil {
for (String s : lawsContact.split(",")) {
List
loginUserList = collect.stream().filter(e -> e.getId().equals(s)).collect(Collectors.toList());
if(loginUserList.size() != 0){
- sb.append(loginUserList.get(0).getUsername()+",");
+ sb.append(loginUserList.get(0).getRealname()+",");
}
}
if(com.jero.modules.system.util.StringUtils.isNotBlank(sb)){
From 5bf92e1769c0bba7023afb5a851e30513dc9a8f6 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Wed, 12 Oct 2022 17:14:19 +0800
Subject: [PATCH 051/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?=
=?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dialog/ParameterTemplateAdd.vue | 53 +++++++++++--------
1 file changed, 30 insertions(+), 23 deletions(-)
diff --git a/jero-web/src/views/projectManagement/dialog/ParameterTemplateAdd.vue b/jero-web/src/views/projectManagement/dialog/ParameterTemplateAdd.vue
index a4151bd78..bcec63bc8 100644
--- a/jero-web/src/views/projectManagement/dialog/ParameterTemplateAdd.vue
+++ b/jero-web/src/views/projectManagement/dialog/ParameterTemplateAdd.vue
@@ -13,6 +13,7 @@
@@ -24,7 +25,7 @@
-
+
{{$t('zoneOfApplication')}}
@@ -34,9 +35,9 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
{{ $t('query') }}
@@ -92,7 +94,7 @@
:dataSource='areaTable'
:pagination='false'
:loading='loading'
- :scroll='{x: 600}'
+ :scroll='{x: 600,y:300}'
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
@change='handleTableChange'>
@@ -376,13 +378,14 @@
.drawer-bootom-button {
display: flex;
- justify-content: center;
+ justify-content: flex-end;
}
.Required {
color: red;
margin-right: 4px;
}
+
.box-title-text {
line-height: 1.4;
display: flex;
@@ -390,7 +393,7 @@
}
.title-text {
- width: 114px;
+ width: 85px;
text-align: right;
display: inline-block;
font-weight: 500;
@@ -410,7 +413,7 @@
}
.itemModel {
- width: calc(100% - 130px);
+ width: calc(100% - 101px);
display: inline-block;
margin-top: 2px;
height: 40px;
@@ -466,6 +469,10 @@
line-height: 6px;
color: #fff;
}
+
+ .box-button {
+ height: 38px;
+ }
\ No newline at end of file
From eedd983345379bfbc9c2115caf9754db82d68450 Mon Sep 17 00:00:00 2001
From: zhn <947514737@qq.com>
Date: Wed, 12 Oct 2022 18:11:53 +0800
Subject: [PATCH 052/251] =?UTF-8?q?=E6=9C=88=E6=8A=A5=E5=AF=BC=E5=87=BA--?=
=?UTF-8?q?=E5=B0=81=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=86=85=E5=AE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../LawsMonthlyReportWriteEOServiceImpl.java | 96 ++++++++++++++++++-
1 file changed, 93 insertions(+), 3 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
index a34563275..12fc10c4d 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/service/impl/LawsMonthlyReportWriteEOServiceImpl.java
@@ -881,11 +881,30 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl lawsMonthlyReportWriteEOS,
List lawsMonthlyReportTitleTemplateEOS,
List reportTitleOneList,
From 772901c74a4fefb373324b7b0a230a3a9465f507 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E5=BD=A6=E6=B3=BD?=
Date: Thu, 13 Oct 2022 10:36:26 +0800
Subject: [PATCH 053/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E8=8B=B1?=
=?UTF-8?q?=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/common/lang/en-us.js | 124 +++++++++---------
jero-web/src/common/lang/zh-cn.js | 6 +
.../components/problemKnowledgeBaseAdd.vue | 4 +-
.../components/comparisonResults.vue | 2 +-
.../components/documentDataComparison.vue | 2 +-
.../documentComparison/index.vue | 16 +--
.../components/problemKnowledgeBase.vue | 4 +-
.../documentTools/searchCenter/index.vue | 2 +-
.../externalReports/components/addModel.vue | 2 +-
jero-web/src/views/externalReports/index.vue | 8 +-
10 files changed, 91 insertions(+), 79 deletions(-)
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index 641254c9d..76cc26cfc 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -193,8 +193,13 @@ module.exports = {
OperationLog: 'Operation Log',
SearchLog: 'Search Log',
enterSearchKeyword: 'Please enter a search keyword',
+ enterSearchContent:'Please enter Search Content',
+ enterStandard:'Please enter Number',
+ entertitle:'Please enter Title',
OperationType: 'Operation Type',
selectOperationType: 'Please select Operation type',
+ selectProblemClassification:'Please select Classification',
+ selectMarket:'Please select Market',
RequestMethod: 'Request Method',
RequestParameters: 'Request Parameters',
logManagementPage: 'This is the log management page',
@@ -386,7 +391,7 @@ module.exports = {
DocumentComparison: 'Doc Comparison',
KnowledgeDatabase: 'Q&A Knowledge',
StandardDetails: 'Standard Details',
- whole: 'Whole',
+ whole: 'All',
DocumentLibrary: 'Document Library',
GeneralExportInformation: 'General export information',
CustomizeExportInformation: 'Customize export information',
@@ -500,7 +505,7 @@ module.exports = {
ProcessName: 'Process Name',
ProcessType: 'Process Type',
AddProcess: 'Add Process',
- RelatedItems: 'Relevant Project',
+ RelatedItems: 'Project',
Sponsor: 'Creator',
CurrentProcessor: 'Current Processor',
LastProcessor: 'Last Processor',
@@ -721,7 +726,7 @@ module.exports = {
directoryName: 'Catalogue Name',
batch: 'Batch',
uploadTime: 'Upload Time',
- enclosure: 'Enclosure',
+ enclosure: 'Attachments',
// 认证
// 认证状态
timeOperation: 'You have permission to operate this button.',
@@ -916,7 +921,7 @@ module.exports = {
deliveryHistory: 'Delivery History',
projectDeliveryRequirements: 'Project delivery requirements',
personLiableConfirm: 'PersonLiable Confirm',
- complianceResults: 'Compliance Results',
+ complianceResults: 'Feedback',
noData: 'No Data',
confirmOperation: 'Confirm Operation',
sponsorReview: 'Sponsor Review',
@@ -983,25 +988,25 @@ module.exports = {
taskConfirmationResponsiblePerson: 'Task confirmation of responsible person',
or: 'or',
warningTime: 'Warning Time',
- RegulationMonthlyManagement: 'Regulation Monthly Management',
- RegulationMonthlyFill: 'Regulation Monthly Fill',
- RegulationMonthlyName: 'Regulation monthly name',
- monthlyLanguage: 'Monthly Language',
+ RegulationMonthlyManagement: 'Manage Monthly Report',
+ RegulationMonthlyFill: 'Fill in Monthly Report',
+ RegulationMonthlyName: 'Report Name',
+ monthlyLanguage: 'Language',
releaseStatus: 'Release Status',
uploadedBy: 'Uploaded By',
- uploadMonthly: 'Upload Monthly',
- chapterContents: 'Chapter Contents',
+ uploadMonthly: 'Upload Report',
+ chapterContents: 'Chapter',
chineseTitle: 'Chinese Title',
englishTitle: 'English Title',
- regulatoryContact: 'Regulatory Contact',
+ regulatoryContact: 'Reg. Contact',
exportStatus: 'Export Status',
- monthlyTitleTemplate: 'Monthly Title Template',
- monthlyIntegrationAndExport: 'Monthly integration and export',
+ monthlyTitleTemplate: 'Title Template',
+ monthlyIntegrationAndExport: 'Export Report',
addContent: 'Add Content',
editContent: 'Edit Content',
viewContent: 'View Content',
- fillInTheMonth: 'Fill in the month',
- monthSelection: 'Month Selection',
+ fillInTheMonth: 'Filled in (Month)',
+ monthSelection: 'Select Month',
bringInStandardInformation: 'Bring in standard Information',
contentTemplate: 'Content Template',
moveUp: 'Move Up',
@@ -1009,32 +1014,32 @@ module.exports = {
vehicleType: 'Vehicle Type',
usage: 'Usage',
implementationModel: 'Implementation Model',
- primaryCoverageCn: 'Primary Coverage (Cn)',
- primaryCoverageEn: 'Primary Coverage (En)',
+ primaryCoverageCn: 'Description (Cn)',
+ primaryCoverageEn: 'Description (En)',
workProgressCn: 'NIO Work Progress (Cn)',
workProgressEn: 'NIO Work Progress (En)',
- initiatingProcess: 'Initiating Process',
+ initiatingProcess: 'Initiate Process',
collectResults: 'Collect Results',
dateOfInitiation: 'Date Of Initiation',
- closingDate: 'Closing Date',
+ closingDate: 'Due Date',
viewProcess: 'View Process',
evaluationResults: 'Evaluation Results',
Assessor: 'Assessor',
collectionOfRegulatoryOpinions: 'Collection Of Regulatory Opinions',
collectionOfRegulatoryOpinionsProcess: 'Collection Of Regulatory Opinions Process',
- feedbackInformation: 'Feedback Information',
- relevantSections: 'Relevant Sections',
- questionsSuggestions: 'Questions Or Suggestions',
+ feedbackInformation: 'Feedback',
+ relevantSections: 'Chapter',
+ questionsSuggestions: 'Questions/Suggestions',
reason: 'Reason',
proposedTime: 'Proposed Time',
feedbackPoint: 'Feedback Point',
link: 'Link',
planNoChinese: 'Plan No.',
- standardNameCn: 'Standard Name Cn',
- standardNameEn: 'Standard Name En',
- deadlineForComments: 'Deadline for comments',
+ standardNameCn: 'Standard Title Cn',
+ standardNameEn: 'Standard Title En',
+ deadlineForComments: 'Deadline for Comments',
standardNo: 'Standard No',
- implemenDate: 'Implementation Date',
+ implemenDate: 'Effective Date',
// 上报库
Enable: 'Enable',
Latestupdatetime: 'Latest Update Time',
@@ -1115,7 +1120,7 @@ module.exports = {
PreHomoNotification: 'Pre-Homo Notification',
ValidationComplianceNotification: 'Validation Compliance Notification',
RegulationTaskConfirmationNotification: 'Regulation Task Confirmation Notification',
- evaluationMethod: 'Evaluation method',
+ evaluationMethod: 'Check Method',
uploadRelevantMaterials: 'Upload relevant materials',
processBackground: 'Process Background',
selectedStandard: 'Selected Standard',
@@ -1123,13 +1128,13 @@ module.exports = {
pleaseSelectStandardFirst: 'Please select a standard first',
RelevantMaterials: 'RelevantMaterials',
evaluatorFeedback: 'Evaluator Feedback',
- nameTechnicalDocument: 'Name of technical document',
+ nameTechnicalDocument: 'Technical Document',
chapter: 'Chapter',
problemDescription: 'Problem Description',
filingExternalOpinions: 'Filing of external opinions',
regulatoryTechnicalEvaluationResults: 'Regulatory technical evaluation results',
initiateProcessForCurrentStandard: 'Initiate process for current standard',
- engineerFeedbackResults: 'Engineer feedback results',
+ engineerFeedbackResults: 'Engineer Feedback',
fileExport: 'File Export',
feedbackTime: 'Feedback Time',
regulatoryTechnologyAssessmentProcess: 'Regulatory technology assessment process',
@@ -1147,29 +1152,30 @@ module.exports = {
releaseSituation: 'Release situation',
comparisonResults: 'Comparison results',
Published: 'Published',
- initiateComparison: 'Initiate comparison',
+ initiateComparison: 'Initiate Comparison',
translationLanguage: 'Translation language',
translationResults: 'Translation results',
conversionTime: 'Conversion time',
category: 'Category',
RegulatoryProcessEvaluationResults: 'Regulatory Process Evaluation Results',
ViewConformanceResults: 'View Conformance Results',
- CommentsCollectionResultsForReference: 'Comments Collection Results For',
- TechnicalEvaluationResultsForReference: 'Technical Evaluation Results For',
+ CommentsCollectionResultsForReference: 'Opinion Collection Results',
+ TechnicalEvaluationResultsForReference: 'Technical Assessment Results',
ComplianceConfirmationRecord: 'Compliance Confirmation Record',
complianceConfirmation: 'Compliance Confirmation',
noComparisonDocumentSelected: 'No comparison document selected',
RemarkInfo: 'Remarks Info',
initiateDocumentComparison: 'Initiate Document Comparison',
comparativeComments: 'Comparative Comments',
- viewTheComparisonResults: 'View The Comparison Results',
- addFullTextComment: 'Add Full Text Comment',
- turnOffAutomaticMatching: 'Turn Off Automatic Matching',
- Deriveconformanceresults: 'Derive Conformance Results',
+ viewTheComparisonResults: 'View Results',
+ addFullTextComment: 'Full Text Comment',
+ turnOffAutomaticMatching: 'Turn Off Auto Match',
+ Deriveconformanceresults: 'Export Results',
Regulatorycompliancekanban: 'Regulatory Compliance Kanban',
exportComparisonReport: 'Export Comparison Report',
comparisonDifferenceComment: 'Comparison Difference Comment',
- fullTextComments: 'Full text comments',
+ fullTextComments: 'Full Text Comment',
+ pleaseEnterfullTextComments:'Please enter Full Text Comment',
fileDeclaration: 'File Declaration',
FileForDetails: 'File For Details',
Converting: 'Converting',
@@ -1177,7 +1183,7 @@ module.exports = {
convertFailed: 'Convert Failed',
standardData: 'Standard Data',
Theorganization: 'The Organization',
- Addingfolder: 'Adding a folder',
+ Addingfolder: 'Create New Folder',
Addingsubfolders: 'Adding Subfolders',
Editfolder: 'Edit Folder',
Deletefolders: 'Delete Folders',
@@ -1188,8 +1194,8 @@ module.exports = {
Openpersonnel: 'Open Personnel',
originalText: 'Original Text',
translatedText: 'Translated Text',
- Administrativeprivileges: 'Administrativ Pprivileges',
- Checkthepermissions: 'Check The Permissions',
+ Administrativeprivileges: 'Administrative Permissions',
+ Checkthepermissions: 'Read Permissions',
onlyFilesUploaded: 'Only.Docx,.Doc files can be uploaded',
selectDirectorylocation: 'Please select the directory location to add the folder',
Fileuploaded: 'File uploaded, please wait',
@@ -1199,10 +1205,10 @@ module.exports = {
Parametercollection: 'Parameter Collection',
Collectlist: 'Colle Ctlist',
Statisticalmodels: 'Statisti Calmodels',
- Inthecollection: 'In the collection',
- Notatthe: 'Not at the',
+ Inthecollection: 'During collection',
+ Notatthe: 'Not started',
Thepercentage: 'The Percentage',
- problemKnowledgeBase: 'Problem Knowledge Base',
+ problemKnowledgeBase: 'Q&A Knowledge',
recentHotSpots: 'Recent Hot Spots',
disseminationMaterials: 'Dissemination Materials',
informationSafety: 'Information Safety',
@@ -1211,10 +1217,10 @@ module.exports = {
productHighlights: 'Product Highlights',
financialReimbursement: 'Financial Reimbursement',
classificationMaintenance: 'Classification Maintenance',
- managePublishing: 'Manage Publishing',
- displayPermission: 'Display permission',
+ managePublishing: 'Release Management',
+ displayPermission: 'Display Permission',
authorizedUser: 'Authorized user',
- problemClassification: 'Problem classification',
+ problemClassification: 'Problem Classification',
market: 'Market',
documentNumber: 'Document Number',
documentTitle: 'Document Title',
@@ -1224,23 +1230,23 @@ module.exports = {
dre: 'Dre',
applicableInstructionsMarketList: 'Applicable instructions of market list',
pleaseSelectTheDataCompared: 'Please select the data to be compared',
- problemLabel: 'Problem label',
+ problemLabel: 'Topic Tag',
personCharge: 'Person in charge',
- addLabel: 'Add Label',
+ addLabel: 'Add Tag',
editLabel: 'Edit Label',
- applicableMarket: 'Applicable market',
- templateMaintenance: 'Template maintenance',
+ applicableMarket: 'Applicable Market',
+ templateMaintenance: 'Template Maintenance',
associatedWebsite: 'Associated website',
dropDownOptions: 'Drop down options',
dropDownOptionMaintenance: 'Drop down option maintenance',
- displayInformation: 'Display information',
- addComparison: 'Add comparison',
+ displayInformation: 'Display Information',
+ addComparison: 'Add Comparison',
showOrNot: 'Show or not',
comparisonMarket: 'Comparison Market',
share: 'Share',
simplifiedChinese:'Simplified Chinese',
uploadOnly:'Upload only',
- turnOnAutoMatch:'Turn on auto match',
+ turnOnAutoMatch:'Turn On Auto Match',
Adjustareasofresponsibility:'Adjust areas of responsibility',
regulatoryTechnicalAssessment:'Regulatory Technical Assessment',
punctuationmark:'You can only enter English punctuation marks except the # sign and commas',
@@ -1266,8 +1272,8 @@ module.exports = {
onlyTheDataWhoseStatusNotInitiatedAcceptedChanged:'Only the data whose list confirmation status is accepted and the task list status is not initiated or the task list status is accepted can be changed',
thereTitleWhichCannotBeDeleted:'There are new contents under this title, which cannot be deleted',
industryInformationDynamicTemplate:'Industry information dynamic template',
- relatedFields:'Related fields',
- relatedFieldsEn:'Related fields (English)',
+ relatedFields:'Relaevant Area',
+ relatedFieldsEn:'Relaevant Area (English)',
source:'Source',
sourceEn:'Source (English)',
onlyone:'Only one merge delimiter can be entered',
@@ -1307,9 +1313,9 @@ module.exports = {
inRecentYear2:'In recent 2 year',
selectAll:'Select All',
importLocalDisassemblyOrder:'Import local disassembly order',
- notExport:'Not export',
- hasBeenExport:'Has been export',
- firstLevelDirectory:'First level directory',
+ notExport:'Not exported',
+ hasBeenExport:'Exported',
+ firstLevelDirectory:'Primary Directory',
deselectAll:'Deselect All',
classification:'Classification',
consistentAssessment:'Consistent',
@@ -1318,6 +1324,6 @@ module.exports = {
viewAll:'View All',
endProcess:'End Process',
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
- secondaryDirectory:'Secondary directory',
+ secondaryDirectory:'Secondary Directory',
OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index ee36dd5cd..653c98b71 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -195,8 +195,13 @@ module.exports = {
OperationLog: '操作日志',
SearchLog: '搜索日志',
enterSearchKeyword: '请输入搜索关键词',
+ enterSearchContent:'请输入搜索内容',
+ enterStandard:'请输入编号',
+ enterTitle:'请输入标题',
OperationType: '操作类型',
selectOperationType: '请选择操作类型',
+ selectProblemClassification:'请选择问题分类',
+ selectMarket:'请选择市场',
RequestMethod: '请求方法',
RequestParameters: '请求参数',
logManagementPage: '这是日志管理页面',
@@ -1173,6 +1178,7 @@ module.exports = {
exportComparisonReport: '导出对比报告',
comparisonDifferenceComment: '对比差异评论',
fullTextComments: '全文评论',
+ pleaseEnterfullTextComments:'请输入全文评论',
fileDeclaration: '文件说明',
FileForDetails: '文件详情',
Converting: '转换中',
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue
index 0fc3fa9f4..f4ac484dd 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue
@@ -32,10 +32,10 @@
*
{{$t('problemClassification')}}
+ :title="$t('classification')">{{$t('classification')}}
-
{{$t('fullTextComments')}}
-
diff --git a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
index 4d0b38763..fb262c4bd 100644
--- a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
+++ b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue
@@ -135,7 +135,7 @@
{{$t('fullTextComments')}}
-
diff --git a/jero-web/src/views/documentTools/documentComparison/index.vue b/jero-web/src/views/documentTools/documentComparison/index.vue
index 39fe0ee88..85120eb4c 100644
--- a/jero-web/src/views/documentTools/documentComparison/index.vue
+++ b/jero-web/src/views/documentTools/documentComparison/index.vue
@@ -8,7 +8,7 @@
{{$t('standard')}}
-
@@ -17,7 +17,7 @@
{{$t('title')}}
-
@@ -135,7 +135,7 @@
selectedRowKeysRecord: [],
columns: [
{
- title: this.$t('standard') + 1,
+ title: this.$t('standard') + ' 1',
align: 'center',
dataIndex: 'serialNumberLeft',
width: 170,
@@ -143,7 +143,7 @@
scopedSlots: { customRender: 'serialNumberLeft' }
},
{
- title: this.$t('title') + 1,
+ title: this.$t('title') + ' 1',
align: 'center',
dataIndex: 'titleLeft',
width: 170,
@@ -151,7 +151,7 @@
scopedSlots: { customRender: 'serialNumberLeft' }
},
{
- title: this.$t('TextStatus') + 1,
+ title: this.$t('TextStatus') + ' 1',
align: 'center',
width: 200,
ellipsis: true,
@@ -166,7 +166,7 @@
// scopedSlots: { customRender: 'fileNameLeft' }
// },
{
- title: this.$t('standard') + 2,
+ title: this.$t('standard') + ' 2',
align: 'center',
dataIndex: 'serialNumberRight',
ellipsis: true,
@@ -174,7 +174,7 @@
width: 170
},
{
- title: this.$t('title') + 2,
+ title: this.$t('title') + ' 2',
align: 'center',
dataIndex: 'titleRight',
scopedSlots: { customRender: 'serialNumberRight' },
@@ -182,7 +182,7 @@
width: 170
},
{
- title: this.$t('TextStatus') + 2,
+ title: this.$t('TextStatus') + ' 2',
align: 'center',
width: 200,
ellipsis: true,
diff --git a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
index ea2577782..2d203eedc 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/problemKnowledgeBase.vue
@@ -5,7 +5,7 @@
{{$t('problemClassification')}}
-
{{$t('market')}}
diff --git a/jero-web/src/views/documentTools/searchCenter/index.vue b/jero-web/src/views/documentTools/searchCenter/index.vue
index 8270a0c4b..eb06f6f1e 100644
--- a/jero-web/src/views/documentTools/searchCenter/index.vue
+++ b/jero-web/src/views/documentTools/searchCenter/index.vue
@@ -26,7 +26,7 @@
v-else-if="active === $t('whole') || active === $t('problemKnowledgeBase')
|| active === $t('monthlyReportRegulations')"
class="inputSearch"
- :placeholder="$t('pleaseEnter')+$t('searchContent')"
+ :placeholder="$t('enterSearchContent')"
>
*
{{$t('file')}}
+ :title="$t('fileName')">{{$t('fileName')}}
-
-
{{ $t('file') }}
+
+ {{ $t('fileName') }}
-
@@ -357,7 +357,7 @@ export default {
],
columns: [
{
- title: this.$t('file'),
+ title: this.$t('fileName'),
align: 'center',
dataIndex: 'fileName',
scopedSlots: { customRender: 'fileName' },
From a4c6f9d193b2490a875463682cada6527265be22 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Thu, 13 Oct 2022 11:03:10 +0800
Subject: [PATCH 054/251] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/comparisonResults.vue | 3 ++-
.../documentComparison/index.vue | 19 ++++++++++----
.../documentTranslation/index.vue | 25 ++++++++++++++-----
.../views/regulatoryEarlyWarning/index.vue | 7 ++++--
4 files changed, 40 insertions(+), 14 deletions(-)
diff --git a/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue b/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue
index 1456757d9..8e0ed1044 100644
--- a/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue
+++ b/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue
@@ -60,7 +60,7 @@
{{resultData.fileNameRight}}
-