合并分支 'dev_third_stage' 到 'master'
Dev third stage 查看合并请求 laws-nio/laws-weilai!185
This commit is contained in:
+151
-119
@@ -11,11 +11,12 @@ import com.jero.modules.compare.mapper.SarFileCompareItemCommentMapper;
|
|||||||
import com.jero.modules.compare.service.ISarFileCompareInfoService;
|
import com.jero.modules.compare.service.ISarFileCompareInfoService;
|
||||||
import com.jero.modules.compare.service.ISarFileCompareItemCommentService;
|
import com.jero.modules.compare.service.ISarFileCompareItemCommentService;
|
||||||
import com.jero.modules.compare.service.ISarFileCompareItemService;
|
import com.jero.modules.compare.service.ISarFileCompareItemService;
|
||||||
|
import com.jero.modules.compare.utils.ConvertHtml2Excel;
|
||||||
import com.jero.modules.system.util.StringUtils;
|
import com.jero.modules.system.util.StringUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
|
import org.apache.poi.hssf.usermodel.*;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.util.HSSFColor;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
@@ -253,6 +254,12 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
sheet.setColumnWidth(i, columnWidth[i]);
|
sheet.setColumnWidth(i, columnWidth[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//超链接样式
|
||||||
|
CellStyle cellStyleLink =workbook.createCellStyle();
|
||||||
|
HSSFFont font = ((HSSFWorkbook) workbook).createFont();
|
||||||
|
font.setColor(HSSFColor.LIGHT_BLUE.index);
|
||||||
|
cellStyleLink.setFont(font);
|
||||||
|
cellStyleLink.setWrapText(true);
|
||||||
int i = 1;
|
int i = 1;
|
||||||
//记录需要合并的单元格
|
//记录需要合并的单元格
|
||||||
List<SarFileCompareExcelMergeCell> mergeCells = new ArrayList<>();
|
List<SarFileCompareExcelMergeCell> mergeCells = new ArrayList<>();
|
||||||
@@ -270,64 +277,20 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
row.createCell(1).setCellValue(itemLeft.getItemsNum());
|
row.createCell(1).setCellValue(itemLeft.getItemsNum());
|
||||||
row.createCell(2).setCellValue(itemLeft.getItemsName());
|
row.createCell(2).setCellValue(itemLeft.getItemsName());
|
||||||
String text = itemLeft.getItemsText();
|
String text = itemLeft.getItemsText();
|
||||||
text = text.replace("<p>", "").replace("</p>", "\r\n");
|
String rowDataAndPath = getSplitContent(request, text);
|
||||||
BufferedImage bufferImg = null;
|
|
||||||
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
|
||||||
addImgdata(text,request.getSession());
|
|
||||||
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
|
|
||||||
leftSplit = rowDataAndPath.split("---");
|
leftSplit = rowDataAndPath.split("---");
|
||||||
if (leftSplit.length > 1) {
|
if (leftSplit.length > 1) {
|
||||||
for (int j = 0; j < leftSplit.length; j++) {
|
for (int j = 0; j < leftSplit.length; j++) {
|
||||||
if (j > 0) {
|
if (ObjectUtils.isNotEmpty(leftSplit[j])) {
|
||||||
Row row2 = sheet.createRow(j + i);
|
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
||||||
if (leftSplit[j].contains(".jpg") || leftSplit[j].contains(".png")) {
|
if (j > 0) {
|
||||||
row2.setHeight((short) 5000); //设置行高
|
Row row2 = sheet.getRow(j + i);
|
||||||
//先将图片下载到本地
|
if (ObjectUtils.isEmpty(row2)) {
|
||||||
String fileLastName = leftSplit[j].substring(leftSplit[j].lastIndexOf("/") + 1);
|
row2 = sheet.createRow(j + i);
|
||||||
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));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
imgToExcel(workbook, dir, patriarch, cellStyleLink, byteArrayOut, row2, i, j, leftSplit[j], 3);
|
||||||
} else {
|
} else {
|
||||||
row2.createCell(3).setCellValue(leftSplit[j]);
|
imgToExcel(workbook, dir, patriarch, cellStyleLink, byteArrayOut, row, i, j, leftSplit[j], 3);
|
||||||
}
|
|
||||||
} 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]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -339,7 +302,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
} else {
|
} else {
|
||||||
row.createCell(3).setCellValue(rowDataAndPath);
|
row.createCell(3).setCellValue(rowDataAndPath);
|
||||||
}
|
}
|
||||||
row.setRowStyle(cellStyle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String itemIdRight = itemComment.getItemsIdRight();
|
String itemIdRight = itemComment.getItemsIdRight();
|
||||||
@@ -349,64 +311,20 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
row.createCell(5).setCellValue(itemRight.getItemsNum());
|
row.createCell(5).setCellValue(itemRight.getItemsNum());
|
||||||
row.createCell(6).setCellValue(itemRight.getItemsName());
|
row.createCell(6).setCellValue(itemRight.getItemsName());
|
||||||
String text = itemRight.getItemsText();
|
String text = itemRight.getItemsText();
|
||||||
text = text.replace("<p>", "").replace("</p>", "\r\n");
|
String rowDataAndPath = getSplitContent(request, text);
|
||||||
BufferedImage bufferImg = null;
|
|
||||||
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
|
||||||
addImgdata(text,request.getSession());
|
|
||||||
String rowDataAndPath = (String) request.getSession().getAttribute("txtAndImg");
|
|
||||||
rightSplit = rowDataAndPath.split("---");
|
rightSplit = rowDataAndPath.split("---");
|
||||||
if (rightSplit.length > 1) {
|
if (rightSplit.length > 1) {
|
||||||
for (int j = 0; j < rightSplit.length; j++) {
|
for (int j = 0; j < rightSplit.length; j++) {
|
||||||
if (j > 0) {
|
if (ObjectUtils.isNotEmpty(rightSplit[j])) {
|
||||||
Row row2 = sheet.createRow(j + i);
|
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
||||||
if (rightSplit[j].contains(".jpg") || rightSplit[j].contains(".png")) {
|
if (j > 0) {
|
||||||
row2.setHeight((short) 5000); //设置行高
|
Row row2 = sheet.getRow(j + i);
|
||||||
//先将图片下载到本地
|
if (ObjectUtils.isEmpty(row2)) {
|
||||||
String fileLastName = rightSplit[j].substring(rightSplit[j].lastIndexOf("/") + 1);
|
row2 = sheet.createRow(j + i);
|
||||||
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));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
imgToExcel(workbook, dir, patriarch, cellStyleLink, byteArrayOut, row2, i, j, rightSplit[j], 7);
|
||||||
} else {
|
} else {
|
||||||
row2.createCell(3).setCellValue(rightSplit[j]);
|
imgToExcel(workbook, dir, patriarch, cellStyleLink, byteArrayOut, row, i, j, rightSplit[j], 7);
|
||||||
}
|
|
||||||
} 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]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,11 +334,11 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
} else {
|
} else {
|
||||||
row.createCell(7).setCellValue(rowDataAndPath);
|
row.createCell(7).setCellValue(rowDataAndPath);
|
||||||
}
|
}
|
||||||
row.setRowStyle(cellStyle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
row.createCell(8).setCellValue(itemComment.getComment());
|
row.createCell(8).setCellValue(itemComment.getComment());
|
||||||
for (int j = 0; j < 7; j++) {
|
row.setRowStyle(cellStyle);
|
||||||
|
for (int j = 0; j < 9; j++) {
|
||||||
Cell cell = row.getCell(j);
|
Cell cell = row.getCell(j);
|
||||||
if (null != cell) {
|
if (null != cell) {
|
||||||
cell.setCellStyle(cellStyle);
|
cell.setCellStyle(cellStyle);
|
||||||
@@ -443,7 +361,8 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
row.getCell(1).setCellStyle(cellStyle);
|
row.getCell(1).setCellStyle(cellStyle);
|
||||||
}
|
}
|
||||||
if (ObjectUtils.isNotEmpty(mergeCells)) {
|
if (ObjectUtils.isNotEmpty(mergeCells)) {
|
||||||
for (SarFileCompareExcelMergeCell mergeCell : mergeCells) {
|
Set<SarFileCompareExcelMergeCell> mergeCellSet = new HashSet<>(mergeCells);
|
||||||
|
for (SarFileCompareExcelMergeCell mergeCell : mergeCellSet) {
|
||||||
Integer leftCount = mergeCell.getLeftEnd() - mergeCell.getLeftStart() + 1;
|
Integer leftCount = mergeCell.getLeftEnd() - mergeCell.getLeftStart() + 1;
|
||||||
Integer rightCount = mergeCell.getRightEnd() - mergeCell.getRightStart() + 1;
|
Integer rightCount = mergeCell.getRightEnd() - mergeCell.getRightStart() + 1;
|
||||||
Integer start = leftCount - rightCount >= 0 ? mergeCell.getLeftStart() : mergeCell.getRightStart();
|
Integer start = leftCount - rightCount >= 0 ? mergeCell.getLeftStart() : mergeCell.getRightStart();
|
||||||
@@ -461,7 +380,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
sheet.addMergedRegion(region5);
|
sheet.addMergedRegion(region5);
|
||||||
CellRangeAddress region6 = new CellRangeAddress(start, end, 6, 6);
|
CellRangeAddress region6 = new CellRangeAddress(start, end, 6, 6);
|
||||||
sheet.addMergedRegion(region6);
|
sheet.addMergedRegion(region6);
|
||||||
CellRangeAddress region7 = new CellRangeAddress(start, end, 7, 7);
|
CellRangeAddress region7 = new CellRangeAddress(start, end, 8, 8);
|
||||||
sheet.addMergedRegion(region7);
|
sheet.addMergedRegion(region7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -481,17 +400,130 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将图片添加到excel指定单元格中
|
||||||
|
* @param workbook
|
||||||
|
* @param dir
|
||||||
|
* @param patriarch
|
||||||
|
* @param cellStyleLink
|
||||||
|
* @param byteArrayOut
|
||||||
|
* @param row
|
||||||
|
* @param i
|
||||||
|
* @param j
|
||||||
|
* @param text
|
||||||
|
* @param cellNum
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
private void imgToExcel(Workbook workbook, String dir, HSSFPatriarch patriarch, CellStyle cellStyleLink, ByteArrayOutputStream byteArrayOut, Row row, int i, int j, String text, int cellNum) throws IOException {
|
||||||
|
if (text.contains("/upFiles")) {
|
||||||
|
row.setHeight((short) 3000); //设置行高
|
||||||
|
//先将图片下载到本地
|
||||||
|
String fileLastName = text.substring(text.lastIndexOf("/") + 1);
|
||||||
|
if (CosBootUtil.doesObjectExist(text)) {
|
||||||
|
try (InputStream in = CosBootUtil.download(text)) {
|
||||||
|
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()) {
|
||||||
|
BufferedImage bufferImg = ImageIO.read(file);
|
||||||
|
ImageIO.write(bufferImg, "jpg", byteArrayOut);
|
||||||
|
//anchor主要用于设置图片的属性
|
||||||
|
HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 600, 200, (short) cellNum, j + i, (short) cellNum, j + i);
|
||||||
|
patriarch.createPicture(anchor, workbook.addPicture(byteArrayOut.toByteArray(), HSSFWorkbook.PICTURE_TYPE_JPEG));
|
||||||
|
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Cell cell = row.createCell(cellNum);
|
||||||
|
if (text.contains("<table")) {
|
||||||
|
tableAssociations(workbook, cellStyleLink, cell, text);
|
||||||
|
} else {
|
||||||
|
cell.setCellValue(text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前excel中新开sheet生成表格,并在指定单元格用超链接关联
|
||||||
|
* @param workbook
|
||||||
|
* @param cellStyleLink
|
||||||
|
* @param cell
|
||||||
|
* @param tableHtml
|
||||||
|
*/
|
||||||
|
private void tableAssociations(Workbook workbook, CellStyle cellStyleLink, Cell cell, String tableHtml) {
|
||||||
|
cell.setCellValue("点击查看详情");
|
||||||
|
//新开sheet生成表格
|
||||||
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(tableHtml) && tableHtml.indexOf("<tbody>") < 0) {
|
||||||
|
if (tableHtml.indexOf("<thead>") < 0) {
|
||||||
|
tableHtml = tableHtml.replaceFirst("<tr>", "<tbody><tr>");
|
||||||
|
tableHtml = tableHtml.replaceFirst("</table>", "</tbody></table>");
|
||||||
|
} else {
|
||||||
|
tableHtml = tableHtml.replaceFirst("</thead>", "</thead><tbody>");
|
||||||
|
tableHtml = tableHtml.replaceFirst("</table>", "</tbody></table>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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("<p>", "").replace("</p>", "\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("<replaceTable")) {
|
||||||
|
String left = textAndImg.substring(0, textAndImg.indexOf("<replaceTable"));
|
||||||
|
String right = textAndImg.substring(textAndImg.indexOf("/replaceTable>") + 14);
|
||||||
|
String table = textAndImg.substring(textAndImg.indexOf("<replaceTable"), textAndImg.indexOf("/replaceTable>")+14);
|
||||||
|
table = table.replaceAll("replaceTable", "table");
|
||||||
|
textAndImg = left + "---" + table + "---" + right;
|
||||||
|
splitTable(textAndImg, session);
|
||||||
|
} else {
|
||||||
|
session.setAttribute("textAndTableAndImg", textAndImg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提取字符串中<img>标签内容中的图片路径,并重新按顺序拼接
|
* 提取字符串中<img>标签内容中的图片路径,并重新按顺序拼接
|
||||||
* @param text
|
* @param text
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private void addImgdata(String text,HttpSession session) {
|
private void addImgdata(String text,HttpSession session) {
|
||||||
if (text.contains("<") || text.contains(">")) {
|
if (text.contains("<img")) {
|
||||||
String txtLeft = text.substring(0, text.indexOf("<"));
|
String txtLeft = text.substring(0, text.indexOf("<img"));
|
||||||
String txtRight = text.substring(text.indexOf(">") + 1);
|
String txtRight = text.substring(text.indexOf("g\">") + 3);
|
||||||
String img = text.substring(text.indexOf("<"), text.indexOf(">"));
|
String img = text.substring(text.indexOf("<img"), text.indexOf("g\">"));
|
||||||
String path = img.substring(img.lastIndexOf("=") + 1, img.lastIndexOf("\""));
|
String path = img.substring(img.lastIndexOf("=") + 1)+"g";
|
||||||
text = txtLeft + "---" + path + "---" + txtRight;
|
text = txtLeft + "---" + path + "---" + txtRight;
|
||||||
addImgdata(text, session);
|
addImgdata(text, session);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+231
@@ -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 如
|
||||||
|
* <table>
|
||||||
|
* ..
|
||||||
|
* </table>
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static void table2Excel(String tableHtml, HSSFWorkbook wb,String tableSheetName) {
|
||||||
|
HSSFSheet sheet = wb.createSheet(tableSheetName);
|
||||||
|
List<CrossRangeCellMeta> crossRowEleMetaLs = new ArrayList<CrossRangeCellMeta>();
|
||||||
|
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<Element> trLs = thead.elements("tr");
|
||||||
|
for (Element trEle : trLs) {
|
||||||
|
HSSFRow row = sheet.createRow(rowIndex);
|
||||||
|
List<Element> 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<Element> trLs = tbody.elements("tr");
|
||||||
|
for (Element trEle : trLs) {
|
||||||
|
HSSFRow row = sheet.createRow(rowIndex);
|
||||||
|
List<Element> thLs = trEle.elements("th");
|
||||||
|
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, titleStyle, crossRowEleMetaLs);
|
||||||
|
List<Element> 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<ls;i++){
|
||||||
|
sheet.autoSizeColumn(i, true);//设置列宽
|
||||||
|
}
|
||||||
|
} catch (DocumentException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产行内容
|
||||||
|
*
|
||||||
|
* @return 最后一列的cell index
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @param tdLs th或者td集合
|
||||||
|
* @param rowIndex 行号
|
||||||
|
* @param row POI行对象
|
||||||
|
* @param startCellIndex
|
||||||
|
* @param cellStyle 样式
|
||||||
|
* @param crossRowEleMetaLs 跨行元数据集合
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private static int makeRowCell(List<Element> tdLs, int rowIndex, HSSFRow row, int startCellIndex, HSSFCellStyle cellStyle,
|
||||||
|
List<CrossRangeCellMeta> 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<CrossRangeCellMeta> 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
+37
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
+14
-4
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
import com.jero.common.constant.enums.CutEnum;
|
import com.jero.common.constant.enums.CutEnum;
|
||||||
|
import com.jero.common.exception.JeroBootException;
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
import com.jero.modules.extRepo.entity.ERFTreeDataVO;
|
import com.jero.modules.extRepo.entity.ERFTreeDataVO;
|
||||||
import com.jero.modules.extRepo.entity.ExtRepoData;
|
import com.jero.modules.extRepo.entity.ExtRepoData;
|
||||||
@@ -49,7 +50,7 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/list")
|
||||||
public Result<ERFTreeDataVO> queryList() {
|
public Result<ERFTreeDataVO> queryList() {
|
||||||
ERFTreeDataVO dataVO = new ERFTreeDataVO();
|
ERFTreeDataVO dataVO = new ERFTreeDataVO();
|
||||||
dataVO.setManager(extRepoFolderService.isManager());
|
//dataVO.setManager(extRepoFolderService.isManager());
|
||||||
dataVO.setList(extRepoFolderService.queryTreeList());
|
dataVO.setList(extRepoFolderService.queryTreeList());
|
||||||
return Result.OK(dataVO);
|
return Result.OK(dataVO);
|
||||||
}
|
}
|
||||||
@@ -66,11 +67,20 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
public Result<?> add(@Validated @RequestBody ExtRepoFolder extRepoFolder, HttpSession session) {
|
public Result<?> add(@Validated @RequestBody ExtRepoFolder extRepoFolder, HttpSession session) {
|
||||||
Result<ExtRepoFolder> result = new Result();
|
Result<ExtRepoFolder> result = new Result();
|
||||||
session.setAttribute("haveSuperiorManageAuth", false);
|
session.setAttribute("haveSuperiorManageAuth", false);
|
||||||
extRepoFolderService.haveSuperiorManageAuth(extRepoFolder.getSupFolder(),session);
|
ExtRepoFolder folder = extRepoFolderService.queryById(extRepoFolder.getSupFolder());
|
||||||
if (ObjectUtils.isNotEmpty(session.getAttribute("haveSuperiorManageAuth"))&&(Boolean) session.getAttribute("haveSuperiorManageAuth")) {
|
extRepoFolderService.haveSuperiorManageAuth(folder.getSupFolder(),session);
|
||||||
|
//上层是否有权限
|
||||||
|
boolean boo = (Boolean)session.getAttribute("haveSuperiorManageAuth");
|
||||||
|
if (boo||extRepoFolderService.haveManageAuth(extRepoFolder.getSupFolder())) {
|
||||||
if (!extRepoFolder.isAddSub()) {
|
if (!extRepoFolder.isAddSub()) {
|
||||||
//增加同级文件夹
|
//增加同级文件夹
|
||||||
ExtRepoFolder folder = extRepoFolderService.queryById(extRepoFolder.getSupFolder());
|
if (!boo) {
|
||||||
|
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
||||||
|
throw new JeroBootException("无法创建同级文件夹!请联系管理员!");
|
||||||
|
} else {
|
||||||
|
throw new JeroBootException("Unable to create a sibling folder ! Please Contact your administrator !");
|
||||||
|
}
|
||||||
|
}
|
||||||
extRepoFolder.setSupFolder(folder.getSupFolder());
|
extRepoFolder.setSupFolder(folder.getSupFolder());
|
||||||
}
|
}
|
||||||
extRepoFolderService.add(extRepoFolder);
|
extRepoFolderService.add(extRepoFolder);
|
||||||
|
|||||||
+13
@@ -56,6 +56,19 @@ public class ERFTreeData implements Comparable<ERFTreeData> {
|
|||||||
*/
|
*/
|
||||||
private String authManageIds = "";
|
private String authManageIds = "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否能点击右键
|
||||||
|
*/
|
||||||
|
private boolean isManager;
|
||||||
|
|
||||||
|
public boolean isManager() {
|
||||||
|
return isManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setManager(boolean manager) {
|
||||||
|
isManager = manager;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子文件夹
|
* 子文件夹
|
||||||
*/
|
*/
|
||||||
|
|||||||
+7
-7
@@ -3,19 +3,19 @@ package com.jero.modules.extRepo.entity;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ERFTreeDataVO {
|
public class ERFTreeDataVO {
|
||||||
boolean isManager;
|
// boolean isManager;
|
||||||
List<ERFTreeData> list;
|
List<ERFTreeData> list;
|
||||||
|
|
||||||
public ERFTreeDataVO() {
|
public ERFTreeDataVO() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isManager() {
|
// public boolean isManager() {
|
||||||
return isManager;
|
// return isManager;
|
||||||
}
|
// }
|
||||||
|
|
||||||
public void setManager(boolean manager) {
|
// public void setManager(boolean manager) {
|
||||||
isManager = manager;
|
// isManager = manager;
|
||||||
}
|
// }
|
||||||
|
|
||||||
public List<ERFTreeData> getList() {
|
public List<ERFTreeData> getList() {
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
+28
-7
@@ -244,11 +244,15 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl<ExtRepoFolderMapper, E
|
|||||||
int childLevel = level + 1;
|
int childLevel = level + 1;
|
||||||
if (haveViewAuth(erf.getId())) {
|
if (haveViewAuth(erf.getId())) {
|
||||||
ERFTreeData date = new ERFTreeData(erf.getFolderName(), erf.getId(), level, erf.getOrderId());
|
ERFTreeData date = new ERFTreeData(erf.getFolderName(), erf.getId(), level, erf.getOrderId());
|
||||||
|
boolean parentRightClick = haveManageAuth(erf.getId());
|
||||||
|
if (parentRightClick) {
|
||||||
|
date.setManager(true);
|
||||||
|
}
|
||||||
date.setAuthManageIdsName(erf.getAuthManageIdsName());
|
date.setAuthManageIdsName(erf.getAuthManageIdsName());
|
||||||
date.setAuthManageIds(erf.getAuthManageIds());
|
date.setAuthManageIds(erf.getAuthManageIds());
|
||||||
date.setAuthViewIdsName(erf.getAuthViewIdsName());
|
date.setAuthViewIdsName(erf.getAuthViewIdsName());
|
||||||
date.setAuthViewIds(erf.getAuthViewIds());
|
date.setAuthViewIds(erf.getAuthViewIds());
|
||||||
date.setChildren(subFolderTree(erf.getId(),new ArrayList<ERFTreeData>(),childLevel));
|
date.setChildren(subFolderTree(erf.getId(),new ArrayList<ERFTreeData>(),childLevel,parentRightClick));
|
||||||
date.sortChildren();
|
date.sortChildren();
|
||||||
resList.add(date);
|
resList.add(date);
|
||||||
} else {
|
} else {
|
||||||
@@ -265,16 +269,33 @@ public class ExtRepoFolderServiceImpl extends ServiceImpl<ExtRepoFolderMapper, E
|
|||||||
* @param level
|
* @param level
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private List<ERFTreeData> subFolderTree(String folder,List<ERFTreeData> childTree,int level) {
|
private List<ERFTreeData> subFolderTree(String folder,List<ERFTreeData> childTree,int level,boolean parentRightClick) {
|
||||||
int childLevel = level + 1;
|
int childLevel = level + 1;
|
||||||
List<ExtRepoFolder> listBySupFolder = getListBySupFolder(folder);
|
List<ExtRepoFolder> listBySupFolder = getListBySupFolder(folder);
|
||||||
|
ExtRepoFolder father = queryById(folder);
|
||||||
for (ExtRepoFolder extRepoFolder : listBySupFolder) {
|
for (ExtRepoFolder extRepoFolder : listBySupFolder) {
|
||||||
ERFTreeData date = new ERFTreeData(extRepoFolder.getFolderName(), extRepoFolder.getId(), childLevel, extRepoFolder.getOrderId());
|
ERFTreeData date = new ERFTreeData(extRepoFolder.getFolderName(), extRepoFolder.getId(), childLevel, extRepoFolder.getOrderId());
|
||||||
date.setAuthManageIdsName(extRepoFolder.getAuthManageIdsName());
|
//是否有管理权限
|
||||||
date.setAuthManageIds(extRepoFolder.getAuthManageIds());
|
boolean childRightClick = haveManageAuth(extRepoFolder.getId());
|
||||||
date.setAuthViewIdsName(extRepoFolder.getAuthViewIdsName());
|
if (parentRightClick||childRightClick) {
|
||||||
date.setAuthViewIds(extRepoFolder.getAuthViewIds());
|
date.setManager(true);
|
||||||
date.setChildren(subFolderTree(extRepoFolder.getId(), new ArrayList<ERFTreeData>(),childLevel));
|
}
|
||||||
|
//如果参数为空则延续父文件夹权限,反之用自己的
|
||||||
|
if (ObjectUtils.isNotEmpty(extRepoFolder.getAuthManageIds()) && ObjectUtils.isNotEmpty(extRepoFolder.getAuthManageIdsName())) {
|
||||||
|
date.setAuthManageIdsName(extRepoFolder.getAuthManageIdsName());
|
||||||
|
date.setAuthManageIds(extRepoFolder.getAuthManageIds());
|
||||||
|
} else {
|
||||||
|
date.setAuthManageIdsName(father.getAuthManageIdsName());
|
||||||
|
date.setAuthManageIds(father.getAuthManageIds());
|
||||||
|
}
|
||||||
|
if (ObjectUtils.isNotEmpty(extRepoFolder.getAuthViewIds()) && ObjectUtils.isNotEmpty(extRepoFolder.getAuthViewIdsName())) {
|
||||||
|
date.setAuthViewIdsName(extRepoFolder.getAuthViewIdsName());
|
||||||
|
date.setAuthViewIds(extRepoFolder.getAuthViewIds());
|
||||||
|
} else {
|
||||||
|
date.setAuthViewIdsName(father.getAuthViewIdsName());
|
||||||
|
date.setAuthViewIds(father.getAuthViewIds());
|
||||||
|
}
|
||||||
|
date.setChildren(subFolderTree(extRepoFolder.getId(), new ArrayList<ERFTreeData>(),childLevel,childRightClick));
|
||||||
date.sortChildren();
|
date.sortChildren();
|
||||||
childTree.add(date);
|
childTree.add(date);
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-13
@@ -752,20 +752,15 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(StringUtils.isEmpty(itemName)){
|
if(StringUtils.isNotEmpty(itemName)){
|
||||||
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
if(itemName.length() > 100){
|
||||||
errorMsg += "条款名称不能为空;";
|
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
||||||
}else if (StringUtils.equals(cut,CutEnum.EN.getValue())){
|
errorMsg += "条款名称长度不能超过100;";
|
||||||
errorMsg += "Item Name cannot be empty;";
|
}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)){
|
if(StringUtils.isEmpty(itemContent)){
|
||||||
|
|||||||
+4
-4
@@ -884,8 +884,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
titleCN = "\r\n\r\n" + titleCN + "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
titleCN = "\r\n\r\n" + titleCN + "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
||||||
WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 18,
|
WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 18,
|
||||||
false, false, "Blue Sky Noto Regular",null,null,flag);
|
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||||
WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12,
|
WordUtil.exportWord(document, moth, null, ParagraphAlignment.CENTER, 0, 12,
|
||||||
false, true, "Blue Sky Noto Regular",null,null,flag);
|
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||||
//添加下一页
|
//添加下一页
|
||||||
document.createParagraph().createRun().addBreak(BreakType.PAGE);
|
document.createParagraph().createRun().addBreak(BreakType.PAGE);
|
||||||
}
|
}
|
||||||
@@ -900,8 +900,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
titleCN = "\r\n\r\n" + titleCN + "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
titleCN = "\r\n\r\n" + titleCN + "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
||||||
WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 18,
|
WordUtil.exportWord(document, titleCN, null, ParagraphAlignment.CENTER, 0, 18,
|
||||||
false, false, "Blue Sky Noto Regular",null,null,flag);
|
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||||
WordUtil.exportWord(document, moth+"\r\n", null, ParagraphAlignment.CENTER, 0, 12,
|
WordUtil.exportWord(document, moth, null, ParagraphAlignment.CENTER, 0, 12,
|
||||||
false, true, "Blue Sky Noto Regular",null,null,flag);
|
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||||
//添加下一页
|
//添加下一页
|
||||||
document.createParagraph().createRun().addBreak(BreakType.PAGE);
|
document.createParagraph().createRun().addBreak(BreakType.PAGE);
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-4
@@ -266,12 +266,15 @@ public class WordUtil {
|
|||||||
picture.getCTPicture().getBlipFill().getBlip().setEmbed(blipID);
|
picture.getCTPicture().getBlipFill().getBlip().setEmbed(blipID);
|
||||||
run.addTab();
|
run.addTab();
|
||||||
is.close();
|
is.close();
|
||||||
|
run.setText(" "+month);
|
||||||
|
run.setFontSize(11);
|
||||||
|
run.setFontFamily("Blue Sky Noto Regular");
|
||||||
}
|
}
|
||||||
//页眉第二个段落展示日期------------------------------------------------------------
|
//页眉第二个段落展示日期------------------------------------------------------------
|
||||||
XWPFParagraph paragraph = header.createParagraph();//创建新的段落
|
XWPFParagraph paragraph = header.createParagraph();//创建新的段落
|
||||||
paragraph.setAlignment(ParagraphAlignment.RIGHT);//段落文本的对齐方式
|
// paragraph.setAlignment(ParagraphAlignment.RIGHT);//段落文本的对齐方式
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(month);
|
// run.setText(month);
|
||||||
|
|
||||||
//页脚(三个段落分别展示3个内容)-----------------------------------------------------
|
//页脚(三个段落分别展示3个内容)-----------------------------------------------------
|
||||||
XWPFFooter footer = headerFooterPolicy.createFooter(XWPFHeaderFooterPolicy.DEFAULT);
|
XWPFFooter footer = headerFooterPolicy.createFooter(XWPFHeaderFooterPolicy.DEFAULT);
|
||||||
@@ -280,11 +283,15 @@ public class WordUtil {
|
|||||||
paragraph.setAlignment(ParagraphAlignment.CENTER);
|
paragraph.setAlignment(ParagraphAlignment.CENTER);
|
||||||
run = paragraph.createRun();
|
run = paragraph.createRun();
|
||||||
run.setText("NIO Internal");
|
run.setText("NIO Internal");
|
||||||
|
run.setFontSize(11);
|
||||||
|
run.setFontFamily("Blue Sky Standard Regular");
|
||||||
|
|
||||||
paragraph = footer.createParagraph();
|
paragraph = footer.createParagraph();
|
||||||
paragraph.setAlignment(ParagraphAlignment.LEFT);
|
paragraph.setAlignment(ParagraphAlignment.LEFT);
|
||||||
run = paragraph.createRun();
|
run = paragraph.createRun();
|
||||||
run.setText("NIO.com");
|
run.setText("NIO.com");
|
||||||
|
run.setFontSize(11);
|
||||||
|
run.setFontFamily("Blue Sky Noto Regular");
|
||||||
|
|
||||||
//生成页码---------------------------------------------------------------------
|
//生成页码---------------------------------------------------------------------
|
||||||
paragraph = footer.createParagraph();
|
paragraph = footer.createParagraph();
|
||||||
@@ -317,8 +324,8 @@ public class WordUtil {
|
|||||||
pageMar.setTop(BigInteger.valueOf(1440)); //页眉高度
|
pageMar.setTop(BigInteger.valueOf(1440)); //页眉高度
|
||||||
pageMar.setBottom(BigInteger.valueOf(1440));//页脚高度
|
pageMar.setBottom(BigInteger.valueOf(1440));//页脚高度
|
||||||
|
|
||||||
pageMar.setHeader(BigInteger.valueOf(500)); //页眉上边框到顶部的距离
|
pageMar.setHeader(BigInteger.valueOf(720)); //页眉上边框到顶部的距离
|
||||||
pageMar.setFooter(BigInteger.valueOf(800)); //页脚下边框到底部的距离
|
pageMar.setFooter(BigInteger.valueOf(720)); //页脚下边框到底部的距离
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1317,4 +1317,5 @@ module.exports = {
|
|||||||
viewAll:'View All',
|
viewAll:'View All',
|
||||||
endProcess:'End Process',
|
endProcess:'End Process',
|
||||||
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
|
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
|
||||||
|
secondaryDirectory:'Secondary directory',
|
||||||
}
|
}
|
||||||
@@ -1418,4 +1418,5 @@ module.exports = {
|
|||||||
viewAll:'查看全部',
|
viewAll:'查看全部',
|
||||||
endProcess:'结束流程',
|
endProcess:'结束流程',
|
||||||
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
||||||
|
secondaryDirectory:'二级目录',
|
||||||
}
|
}
|
||||||
@@ -32,27 +32,26 @@
|
|||||||
v-model="searchModel" @search="onSearch"/>
|
v-model="searchModel" @search="onSearch"/>
|
||||||
<div class="drawer-content">
|
<div class="drawer-content">
|
||||||
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
|
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
|
||||||
<!-- <virtualNodeTree-->
|
<!-- <virtualNodeTree-->
|
||||||
<!-- v-if="treeVisible"-->
|
<!-- v-if="treeVisible"-->
|
||||||
<!-- :keeps="40"-->
|
<!-- ref="virtualNodeTreeRef"-->
|
||||||
<!-- show-checkbox-->
|
<!-- :keeps="40"-->
|
||||||
<!-- v-model="checkboxList"-->
|
<!-- show-checkbox-->
|
||||||
<!-- class="treeWrap"-->
|
<!-- v-model="checkboxList"-->
|
||||||
<!-- :props="{-->
|
<!-- class="treeWrap"-->
|
||||||
<!-- isLeaf: 'leaf'-->
|
<!-- :defaultCheckedKeys="defaultCheckedKeys"-->
|
||||||
<!-- }"-->
|
<!-- :defaultExpandAll="defaultExpandAll"-->
|
||||||
<!-- :defaultCheckedKeys="defaultCheckedKeys"-->
|
<!-- :check-strictly="false"-->
|
||||||
<!-- :defaultExpandAll="defaultExpandAll"-->
|
<!-- node-key="id"-->
|
||||||
<!-- :check-strictly="false"-->
|
<!-- @check="handleCheckChange"-->
|
||||||
<!-- node-key="id"-->
|
<!-- @check-change="checkChange"-->
|
||||||
<!-- @check-change="handleCheckChange"-->
|
<!-- :data.sync="gData">-->
|
||||||
<!-- :data.sync="gData">-->
|
<!-- <span slot-scope="{ data }">-->
|
||||||
<!-- <span slot-scope="{ data }">-->
|
<!-- <span :class="{'active':data.color ? true:false}">-->
|
||||||
<!-- <span :class="{'active':data.color ? true:false}">-->
|
<!-- {{ data.title }}-->
|
||||||
<!-- {{ data.title }}-->
|
<!-- </span>-->
|
||||||
<!-- </span>-->
|
<!-- </span>-->
|
||||||
<!-- </span>-->
|
<!-- </virtualNodeTree>-->
|
||||||
<!-- </virtualNodeTree>-->
|
|
||||||
<a-tree
|
<a-tree
|
||||||
style="margin-bottom: 60px;height: 600px"
|
style="margin-bottom: 60px;height: 600px"
|
||||||
v-if="treeVisible"
|
v-if="treeVisible"
|
||||||
@@ -107,29 +106,43 @@
|
|||||||
defaultCheckedKeysName: [],
|
defaultCheckedKeysName: [],
|
||||||
content: [],
|
content: [],
|
||||||
dataList: [],
|
dataList: [],
|
||||||
defaultExpandAll: false
|
defaultExpandAll: false,
|
||||||
|
searchData: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// handleCheckChange(val, checked, indeterminate) {
|
// checkChange(val, checked, indeterminate) {
|
||||||
// if (checked) {
|
// if (!checked && this.searchData) {
|
||||||
// this.userName.push(val.title)
|
// this.userName = this.userName.filter(res => {
|
||||||
// this.userIds.push(val.id)
|
// return res != val.title
|
||||||
// } else {
|
// })
|
||||||
// for (let i = 0; i < this.userName.length; i++) {
|
// this.userIds = this.userIds.filter(res => {
|
||||||
// if (this.userName[i] == val.title) {
|
// 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)
|
// this.userName.splice(i, 1)
|
||||||
// i--
|
// i--
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// for (let i = 0; i < this.userIds.length; i++) {
|
// } else if (checked && this.searchData) {
|
||||||
// if (this.userIds[i] == val.id) {
|
// this.userName.push(val.title)
|
||||||
// this.userIds.splice(i, 1)
|
// this.userIds.push(val.id)
|
||||||
// i--
|
// }
|
||||||
// }
|
// },
|
||||||
|
// 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)
|
||||||
|
// })
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
@@ -137,6 +150,7 @@
|
|||||||
this.treeVisible = false
|
this.treeVisible = false
|
||||||
this.departId = ''
|
this.departId = ''
|
||||||
this.searchModel = ''
|
this.searchModel = ''
|
||||||
|
this.searchData = ''
|
||||||
this.userIds = []
|
this.userIds = []
|
||||||
this.userName = []
|
this.userName = []
|
||||||
this.queryDepartUserTreeList(1)
|
this.queryDepartUserTreeList(1)
|
||||||
@@ -181,8 +195,28 @@
|
|||||||
// }
|
// }
|
||||||
// }, 200)
|
// }, 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) {
|
// toTree(config, num) {
|
||||||
// // 删除 所有 children,以防止多次调用
|
// // 删除 所有 children,以防止多次调用
|
||||||
// config.forEach(function(item) {
|
// config.forEach(function(item) {
|
||||||
// delete item.children
|
// delete item.children
|
||||||
@@ -200,6 +234,7 @@
|
|||||||
// config.forEach((item) => {
|
// config.forEach((item) => {
|
||||||
// // 以当前遍历项,的pid,去map对象中找到索引的id
|
// // 以当前遍历项,的pid,去map对象中找到索引的id
|
||||||
// let parent = map[item.parentId]
|
// let parent = map[item.parentId]
|
||||||
|
//
|
||||||
// // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
// // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
||||||
// if (parent) {
|
// if (parent) {
|
||||||
// (parent.children || (parent.children = [])).push(item)
|
// (parent.children || (parent.children = [])).push(item)
|
||||||
@@ -312,12 +347,12 @@
|
|||||||
this.defaultCheckedKeys = []
|
this.defaultCheckedKeys = []
|
||||||
},
|
},
|
||||||
onSearch(e) {
|
onSearch(e) {
|
||||||
// this.loading = true
|
|
||||||
// this.treeVisible = false
|
// this.treeVisible = false
|
||||||
// let p = new Promise((resolve, reject) => {
|
// let p = new Promise((resolve, reject) => {
|
||||||
// resolve()
|
// resolve()
|
||||||
// })
|
// })
|
||||||
// p.then(() => {
|
// p.then(() => {
|
||||||
|
// this.searchData = e
|
||||||
// let gData = localStorage.getItem('gData')
|
// let gData = localStorage.getItem('gData')
|
||||||
// let content = []
|
// let content = []
|
||||||
// if (gData) {
|
// if (gData) {
|
||||||
@@ -328,15 +363,18 @@
|
|||||||
// res.color = true
|
// res.color = true
|
||||||
// content.push(res)
|
// content.push(res)
|
||||||
// }
|
// }
|
||||||
// } else if (res.type == 'Depart') {
|
|
||||||
// if (!this.selectDepartment) {
|
|
||||||
// res.disabled = 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.defaultExpandAll = true
|
||||||
// this.gData = this.toTree(content)
|
// this.treeVisible = true
|
||||||
|
// this.defaultCheckedKeys = this.userIds
|
||||||
|
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||||
|
// this.loading = false
|
||||||
// } else {
|
// } else {
|
||||||
// let content = JSON.parse(gData)
|
// let content = JSON.parse(gData)
|
||||||
// if (!this.selectDepartment) {
|
// if (!this.selectDepartment) {
|
||||||
@@ -348,12 +386,12 @@
|
|||||||
// }
|
// }
|
||||||
// this.gData = this.toTree(content)
|
// this.gData = this.toTree(content)
|
||||||
// this.defaultExpandAll = false
|
// this.defaultExpandAll = false
|
||||||
|
// this.defaultCheckedKeys = this.userIds
|
||||||
|
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||||
|
// this.treeVisible = true
|
||||||
|
// this.loading = false
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// this.defaultCheckedKeys = this.userIds
|
|
||||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
|
||||||
// this.treeVisible = true
|
|
||||||
// this.loading = false
|
|
||||||
// })
|
// })
|
||||||
this.gData = []
|
this.gData = []
|
||||||
this.departId = ''
|
this.departId = ''
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
visibleFile:false,
|
visibleFile:false,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
columnsFile: [
|
columnsFile: [
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
@@ -78,10 +79,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,9 +41,8 @@ export default {
|
|||||||
return getNodeKey(this.tree.nodeKey, node.data);
|
return getNodeKey(this.tree.nodeKey, node.data);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSelectChange(checked, indeterminate) {
|
handleSelectChange(checked, indeterminate,source) {
|
||||||
const node = this.node || this.source;
|
const node = this.node || this.source;
|
||||||
|
|
||||||
if (this.oldChecked !== checked && this.oldIndeterminate !== indeterminate) {
|
if (this.oldChecked !== checked && this.oldIndeterminate !== indeterminate) {
|
||||||
this.tree.$emit('check-change', node.data, checked, indeterminate);
|
this.tree.$emit('check-change', node.data, checked, indeterminate);
|
||||||
}
|
}
|
||||||
@@ -95,7 +94,6 @@ export default {
|
|||||||
|
|
||||||
handleCheckChange(_, ev) {
|
handleCheckChange(_, ev) {
|
||||||
const node = this.node || this.source;
|
const node = this.node || this.source;
|
||||||
|
|
||||||
node.setChecked(ev.target.checked, !this.tree.checkStrictly);
|
node.setChecked(ev.target.checked, !this.tree.checkStrictly);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const store = this.tree.store;
|
const store = this.tree.store;
|
||||||
@@ -103,8 +101,9 @@ export default {
|
|||||||
checkedNodes: store.getCheckedNodes(),
|
checkedNodes: store.getCheckedNodes(),
|
||||||
checkedKeys: store.getCheckedKeys(),
|
checkedKeys: store.getCheckedKeys(),
|
||||||
halfCheckedNodes: store.getHalfCheckedNodes(),
|
halfCheckedNodes: store.getHalfCheckedNodes(),
|
||||||
halfCheckedKeys: store.getHalfCheckedKeys()
|
halfCheckedKeys: store.getHalfCheckedKeys(),
|
||||||
});
|
getCurrentNode:store.getCurrentNode()
|
||||||
|
},this.source.checked);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ export default class TreeStore {
|
|||||||
|
|
||||||
if (node.visible && !node.isLeaf && !lazy) node.expand();
|
if (node.visible && !node.isLeaf && !lazy) node.expand();
|
||||||
};
|
};
|
||||||
|
|
||||||
traverse(this);
|
traverse(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,11 +115,11 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'source.indeterminate'(val) {
|
'source.indeterminate'(val) {
|
||||||
this.handleSelectChange(this.source.checked, val);
|
this.handleSelectChange(this.source.checked, val,this.source);
|
||||||
},
|
},
|
||||||
|
|
||||||
'source.checked'(val) {
|
'source.checked'(val) {
|
||||||
this.handleSelectChange(val, this.source.indeterminate);
|
this.handleSelectChange(val, this.source.indeterminate,this.source);
|
||||||
},
|
},
|
||||||
|
|
||||||
'source.expanded'(val) {
|
'source.expanded'(val) {
|
||||||
|
|||||||
+1
-1
@@ -209,7 +209,7 @@
|
|||||||
actiProcInstId: this.actiProcInstId
|
actiProcInstId: this.actiProcInstId
|
||||||
}
|
}
|
||||||
downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls',
|
downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls',
|
||||||
this.$t('evaluationResults') + '.zip', query)
|
this.$route.query.serialNumber+ ' ' +this.$t('evaluationResults') + '.zip', query)
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
this.formInline = JSON.parse(JSON.stringify(this.$route.query))
|
this.formInline = JSON.parse(JSON.stringify(this.$route.query))
|
||||||
|
|||||||
@@ -193,6 +193,13 @@
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'gatherResultShow'
|
dataIndex: 'gatherResultShow'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('Sponsor'),
|
||||||
|
align: 'center',
|
||||||
|
width: 140,
|
||||||
|
ellipsis: true,
|
||||||
|
dataIndex: 'createBy'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('dateOfInitiation'),
|
title: this.$t('dateOfInitiation'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|||||||
+5
-2
@@ -127,6 +127,7 @@
|
|||||||
applyMarkets: '',
|
applyMarkets: '',
|
||||||
header_text: '',
|
header_text: '',
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
url: {
|
url: {
|
||||||
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
||||||
deleteOne: ''
|
deleteOne: ''
|
||||||
@@ -153,10 +154,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.contentFileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.contentFileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-2
@@ -200,6 +200,7 @@
|
|||||||
queryForm: {},
|
queryForm: {},
|
||||||
isPraise: false,
|
isPraise: false,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
isCollect: false
|
isCollect: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -218,10 +219,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -144,7 +144,7 @@
|
|||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('chapterContents'),
|
title: this.$t('secondaryDirectory'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'memoriesChapterName',
|
dataIndex: 'memoriesChapterName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
|||||||
+5
-2
@@ -108,6 +108,7 @@
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
userData: {},
|
userData: {},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -216,10 +217,12 @@
|
|||||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
if (item.createBy == this.userInfo().username) {
|
if (item.createBy == this.userInfo().username) {
|
||||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||||
|
|||||||
+70
-28
@@ -4,8 +4,9 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
:title="$t('title')">{{$t('title')}}</span>
|
<span class="title-text-text"
|
||||||
|
:title="$t('title')">{{$t('title')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="titleCn">
|
<a-form-model-item class="itemModel" prop="titleCn">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
@@ -18,8 +19,9 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
<span class="title-text-text"
|
||||||
|
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="titleEn">
|
<a-form-model-item class="itemModel" prop="titleEn">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
@@ -34,10 +36,11 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
:title="$t('technicalField')">{{$t('technicalField')}}</span>
|
<span class="title-text-text"
|
||||||
|
:title="$t('technicalField')">{{$t('technicalField')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel-multi" prop="technologyTerritory">
|
<a-form-model-item class="itemModel" prop="technologyTerritory">
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
v-model="formInline.technologyTerritory"
|
v-model="formInline.technologyTerritory"
|
||||||
@@ -53,20 +56,20 @@
|
|||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<!-- <a-col :span="12">-->
|
||||||
<div class="box-title-text">
|
<!-- <div class="box-title-text">-->
|
||||||
<div class="title-text">
|
<!-- <div class="title-text">-->
|
||||||
<span class="title-text-text"
|
<!-- <span class="title-text-text"-->
|
||||||
:title="$t('implementationModel')">{{$t('implementationModel')}}</span>
|
<!-- :title="$t('implementationModel')">{{$t('implementationModel')}}</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<a-form-model-item class="itemModel" prop="implementCar">
|
<!-- <a-form-model-item class="itemModel" prop="implementCar">-->
|
||||||
<a-input class="box-input"
|
<!-- <a-input class="box-input"-->
|
||||||
:disabled="disabled"
|
<!-- :disabled="disabled"-->
|
||||||
v-model.trim="formInline.implementCar"
|
<!-- v-model.trim="formInline.implementCar"-->
|
||||||
:placeholder="$t('PleaseEnter')+$t('implementationModel')"/>
|
<!-- :placeholder="$t('PleaseEnter')+$t('implementationModel')"/>-->
|
||||||
</a-form-model-item>
|
<!-- </a-form-model-item>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<!-- <a-col :span="12">-->
|
<!-- <a-col :span="12">-->
|
||||||
<!-- <div class="box-title-text">-->
|
<!-- <div class="box-title-text">-->
|
||||||
<!-- <div class="title-text">-->
|
<!-- <div class="title-text">-->
|
||||||
@@ -108,10 +111,10 @@
|
|||||||
:title="$t('status')">{{$t('status')}}</span>
|
:title="$t('status')">{{$t('status')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
||||||
<j-multi-select-tag class="box-input" v-model="formInline.state"
|
<j-dict-select-tag class="box-input" v-model="formInline.state"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="$t('PleaseSelect')+$t('status')"
|
:placeholder="$t('PleaseSelect')+$t('status')"
|
||||||
:type="'checkbox'"
|
:type="'radio'"
|
||||||
:triggerChange="false" :dictCode="'state'"/>
|
:triggerChange="false" :dictCode="'state'"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -125,9 +128,9 @@
|
|||||||
:title="$t('usage')">{{$t('usage')}}</span>
|
:title="$t('usage')">{{$t('usage')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
||||||
<j-multi-select-tag class="box-input" v-model="formInline.useMethod"
|
<j-dict-select-tag class="box-input" v-model="formInline.useMethod"
|
||||||
:placeholder="$t('PleaseSelect')+$t('usage')"
|
:placeholder="$t('PleaseSelect')+$t('usage')"
|
||||||
:type="'checkbox'"
|
:type="'radio'"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:triggerChange="false" :dictCode="'yong4_fa3'"/>
|
:triggerChange="false" :dictCode="'yong4_fa3'"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -156,10 +159,11 @@
|
|||||||
:title="$t('ImplementationDate')">{{$t('ImplementationDate')}}</span>
|
:title="$t('ImplementationDate')">{{$t('ImplementationDate')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="newCarImplementTime">
|
<a-form-model-item class="itemModel" prop="newCarImplementTime">
|
||||||
|
<!-- :placeholder="$t('PleaseEnter')+$t('ImplementationDate')"-->
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model.trim="formInline.newCarImplementTime"
|
v-model.trim="formInline.newCarImplementTime"
|
||||||
:placeholder="$t('PleaseEnter')+$t('ImplementationDate')"/>
|
:placeholder="'202X.X.X'"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -170,10 +174,11 @@
|
|||||||
:title="$t('vehicleInProductionDate')">{{$t('vehicleInProductionDate')}}</span>
|
:title="$t('vehicleInProductionDate')">{{$t('vehicleInProductionDate')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="productionCarImplementTime">
|
<a-form-model-item class="itemModel" prop="productionCarImplementTime">
|
||||||
|
<!-- $t('PleaseEnter')+$t('vehicleInProductionDate')-->
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model.trim="formInline.productionCarImplementTime"
|
v-model.trim="formInline.productionCarImplementTime"
|
||||||
:placeholder="$t('PleaseEnter')+$t('vehicleInProductionDate')"/>
|
:placeholder="'202X.X.X'"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -185,6 +190,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="contentCn">
|
<a-form-model-item class="itemModel" prop="contentCn">
|
||||||
@@ -200,6 +206,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="contentEn">
|
<a-form-model-item class="itemModel" prop="contentEn">
|
||||||
@@ -245,9 +252,10 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text" :title="$t('regulatoryContact')">{{$t('regulatoryContact')}}</span>
|
<span class="title-text-text" :title="$t('regulatoryContact')">{{$t('regulatoryContact')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel" prop="lawsContactName">
|
||||||
<PersonnelSelection
|
<PersonnelSelection
|
||||||
:query="{db_field_name:'lawsContact',db_field_txt:$t('regulatoryContact')}"
|
:query="{db_field_name:'lawsContact',db_field_txt:$t('regulatoryContact')}"
|
||||||
:personneQuery="formInline"
|
:personneQuery="formInline"
|
||||||
@@ -290,7 +298,19 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rules: {
|
rules: {
|
||||||
|
lawsContactName:[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('regulatoryContact') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
titleCn: [
|
titleCn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('title') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 500,
|
max: 500,
|
||||||
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||||
@@ -298,6 +318,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
titleEn: [
|
titleEn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('englishTitle') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 500,
|
max: 500,
|
||||||
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||||
@@ -354,6 +379,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
contentEn: [
|
contentEn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('primaryCoverageEn') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 300,
|
max: 300,
|
||||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
@@ -361,11 +391,23 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
contentCn: [
|
contentCn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('primaryCoverageCn') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 300,
|
max: 300,
|
||||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
technologyTerritory: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('technicalField') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
formInline: {},
|
formInline: {},
|
||||||
|
|||||||
+24
@@ -4,6 +4,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('title')">{{$t('title')}}</span>
|
:title="$t('title')">{{$t('title')}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -110,6 +112,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="contentCn">
|
<a-form-model-item class="itemModel" prop="contentCn">
|
||||||
@@ -125,6 +128,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required" v-if="!disabled">*</span>
|
||||||
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="contentEn">
|
<a-form-model-item class="itemModel" prop="contentEn">
|
||||||
@@ -165,6 +169,11 @@
|
|||||||
return {
|
return {
|
||||||
rules: {
|
rules: {
|
||||||
titleCn: [
|
titleCn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('title') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 500,
|
max: 500,
|
||||||
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||||
@@ -172,6 +181,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
titleEn: [
|
titleEn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('englishTitle') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 500,
|
max: 500,
|
||||||
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||||
@@ -221,6 +235,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
contentEn: [
|
contentEn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('primaryCoverageEn') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 300,
|
max: 300,
|
||||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
@@ -228,6 +247,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
contentCn: [
|
contentCn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('primaryCoverageCn') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 300,
|
max: 300,
|
||||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
|
|||||||
+6
-5
@@ -6,13 +6,14 @@
|
|||||||
:visible="visible"
|
:visible="visible"
|
||||||
:confirm-loading="confirmLoading"
|
:confirm-loading="confirmLoading"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
|
:footer="null"
|
||||||
@cancel="visible = false"
|
@cancel="visible = false"
|
||||||
>
|
>
|
||||||
<template slot="footer">
|
<!-- <template slot="footer">-->
|
||||||
<a-button key="back" @click="visible = false">
|
<!-- <a-button key="back" @click="visible = false">-->
|
||||||
{{$t('cancel')}}
|
<!-- {{$t('cancel')}}-->
|
||||||
</a-button>
|
<!-- </a-button>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
<div style="margin-bottom: 10px;text-align: center">
|
<div style="margin-bottom: 10px;text-align: center">
|
||||||
<div @click="handleModule" class="operator-text">
|
<div @click="handleModule" class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
|
|||||||
+65
-14
@@ -39,22 +39,22 @@
|
|||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<a-card :bordered="false" class="box-clause" style="margin-top: 20px"
|
<a-card :bordered="false" class="box-clause" style="margin-top: 20px"
|
||||||
v-for="(item,index) in dataSource">
|
v-for="(item,index) in dataSource">
|
||||||
<div class="table-operator-admin">
|
<!-- <div class="table-operator-admin">-->
|
||||||
<div class="operator-text" v-if="item.id" :class="{'operator-text-feed':index == 0 ? true:false}"
|
<!-- <div class="operator-text" v-if="item.id" :class="{'operator-text-feed':index == 0 ? true:false}"-->
|
||||||
style="font-size: 16px">
|
<!-- style="font-size: 16px">-->
|
||||||
{{$t('engineer')+item.createBy+$t('feedbackResults')}}
|
<!-- {{$t('engineer')+item.createBy+$t('feedbackResults')}}-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="text-results" v-if="item.id">
|
<!-- <div class="text-results" v-if="item.id">-->
|
||||||
{{$t('complianceResults')}}:{{item.complianceResultName}}
|
<!-- {{$t('complianceResults')}}:{{item.complianceResultName}}-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="table-operator-admin-right">
|
<div class="table-operator-admin-right">
|
||||||
<div @click="fileExportClick" v-if="index == 0" class="operator-text-index">
|
<div @click="fileExportClick" v-if="index == 0" class="operator-text-index">
|
||||||
<a-icon type="export" :rotate="-90"/>
|
<a-icon type="export" :rotate="-90"/>
|
||||||
{{$t('fileExport')}}
|
{{$t('fileExport')}}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- style="margin-left: 18px"-->
|
||||||
<a-table
|
<a-table
|
||||||
style="margin-left: 18px"
|
|
||||||
ref="table"
|
ref="table"
|
||||||
size="middle"
|
size="middle"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@@ -96,8 +96,8 @@
|
|||||||
return {
|
return {
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
userInfoQuery:{},
|
userInfoQuery: {},
|
||||||
administrators:false,
|
administrators: false,
|
||||||
url: {
|
url: {
|
||||||
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/list',
|
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/list',
|
||||||
exportData: 'lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/exportZip'
|
exportData: 'lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/exportZip'
|
||||||
@@ -106,6 +106,44 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('engineer'),
|
||||||
|
dataIndex: 'createBy',
|
||||||
|
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('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'),
|
title: this.$t('relevantSections'),
|
||||||
dataIndex: 'relatedSection',
|
dataIndex: 'relatedSection',
|
||||||
@@ -190,6 +228,18 @@
|
|||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result || []
|
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) {
|
if (this.dataSource.length == 0) {
|
||||||
this.dataSource.push({
|
this.dataSource.push({
|
||||||
name: ''
|
name: ''
|
||||||
@@ -353,9 +403,10 @@
|
|||||||
|
|
||||||
.table-operator-admin-right {
|
.table-operator-admin-right {
|
||||||
float: left;
|
float: left;
|
||||||
width: calc(100% - 240px);
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
border-left: 1px solid #e8e8e8;
|
margin-bottom: 20px;
|
||||||
|
/*border-left: 1px solid #e8e8e8;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.operator-text-index {
|
.operator-text-index {
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
monthlyReportRegulationsList: [],
|
monthlyReportRegulationsList: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
url: {
|
url: {
|
||||||
list: '/report/lawsMonthlyReportManageEO/page'
|
list: '/report/lawsMonthlyReportManageEO/page'
|
||||||
}
|
}
|
||||||
@@ -74,10 +75,12 @@
|
|||||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
if (item.createBy == this.userInfo().username){
|
if (item.createBy == this.userInfo().username){
|
||||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||||
|
|||||||
@@ -319,6 +319,7 @@
|
|||||||
serial_number: '',
|
serial_number: '',
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -462,10 +463,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-2
@@ -196,6 +196,7 @@
|
|||||||
pageNoRight: 1,
|
pageNoRight: 1,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
rules: {
|
rules: {
|
||||||
remark: [
|
remark: [
|
||||||
{
|
{
|
||||||
@@ -388,10 +389,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.fileId })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.fileId })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,7 @@
|
|||||||
dataSource: [],
|
dataSource: [],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -422,10 +423,12 @@
|
|||||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', row.fileNameLeft, { id: row.fileIdLeft })
|
downloadFile('/sys/common/downLoadFile', row.fileNameLeft, { id: row.fileIdLeft })
|
||||||
}
|
}
|
||||||
@@ -440,10 +443,12 @@
|
|||||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', row.fileNameRight, { id: row.fileIdRight })
|
downloadFile('/sys/common/downLoadFile', row.fileNameRight, { id: row.fileIdRight })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -352,6 +352,7 @@
|
|||||||
selectModel: '',
|
selectModel: '',
|
||||||
fileList: [],
|
fileList: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
queryParamSeach: '',
|
queryParamSeach: '',
|
||||||
mapOne: {},
|
mapOne: {},
|
||||||
mapTwo: {},
|
mapTwo: {},
|
||||||
@@ -696,10 +697,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-4
@@ -92,6 +92,7 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {}
|
queryParam: {}
|
||||||
}
|
}
|
||||||
@@ -129,10 +130,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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() {
|
ResetSearch() {
|
||||||
@@ -151,10 +154,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,7 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
mapOne: {},
|
mapOne: {},
|
||||||
mapTwo: {},
|
mapTwo: {},
|
||||||
queryParamOne: {},
|
queryParamOne: {},
|
||||||
@@ -267,10 +268,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,7 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {}
|
queryParam: {}
|
||||||
}
|
}
|
||||||
@@ -170,10 +171,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
||||||
}
|
}
|
||||||
@@ -239,10 +242,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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) {
|
titleClick(item) {
|
||||||
|
|||||||
@@ -279,6 +279,7 @@
|
|||||||
components: {},
|
components: {},
|
||||||
visibleFile: false,
|
visibleFile: false,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
dataSourceFile: [],
|
dataSourceFile: [],
|
||||||
columnsFile: [
|
columnsFile: [
|
||||||
{
|
{
|
||||||
@@ -830,10 +831,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
@@ -848,10 +851,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ export default {
|
|||||||
// this.data = this.toTree(res.result)
|
// this.data = this.toTree(res.result)
|
||||||
this.data = res.result.list
|
this.data = res.result.list
|
||||||
this.menuId = this.data[0].key
|
this.menuId = this.data[0].key
|
||||||
this.manager = res.result.manager
|
// this.manager = res.result.manager
|
||||||
console.log(this.menuId)
|
console.log(this.menuId)
|
||||||
let queryParam = {
|
let queryParam = {
|
||||||
supFolder: this.menuId
|
supFolder: this.menuId
|
||||||
@@ -557,6 +557,7 @@ export default {
|
|||||||
rightClick({ event, node }) {
|
rightClick({ event, node }) {
|
||||||
|
|
||||||
this.deleteNode = node._props.dataRef.level == 4 ? false : true
|
this.deleteNode = node._props.dataRef.level == 4 ? false : true
|
||||||
|
this.manager = node._props.dataRef.manager == true ? true : false
|
||||||
// console.log('eee',event,node)
|
// console.log('eee',event,node)
|
||||||
// this.NodeTreeItemVisible=true
|
// this.NodeTreeItemVisible=true
|
||||||
const x =
|
const x =
|
||||||
|
|||||||
@@ -31,25 +31,29 @@
|
|||||||
:rules="[{ required: true, message: $t('relevantSections') + $t('cannotEmpty'), trigger: 'blur'},
|
:rules="[{ required: true, message: $t('relevantSections') + $t('cannotEmpty'), trigger: 'blur'},
|
||||||
{max: 300,message: $t('relevantSections') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
{max: 300,message: $t('relevantSections') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
||||||
}]">
|
}]">
|
||||||
<a-input class="box-input"
|
<a-textarea :placeholder="$t('PleaseEnter')+$t('relevantSections')"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="item.relatedSection"
|
v-model="item.relatedSection" :rows="4"/>
|
||||||
:placeholder="$t('PleaseEnter')+$t('relevantSections')"/>
|
<!-- <a-input class="box-input"-->
|
||||||
|
<!-- :disabled="disabled"-->
|
||||||
|
<!-- v-model="item.relatedSection"-->
|
||||||
|
<!-- :placeholder="$t('PleaseEnter')+$t('relevantSections')"/>-->
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span>
|
<span class="title-text-text" :title="$t('clauseContent')">{{$t('clauseContent')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="accessoryFile">
|
<a-form-model-item class="itemModel"
|
||||||
<a-button type="primary" class="button-text"
|
:prop="'dataList.'+index+'.clauseContent'"
|
||||||
@click="clickButtonToUpload('accessoryFile',index)">
|
:rules="[
|
||||||
{{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
|
{max: 300,message: $t('clauseContent') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
||||||
item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
}]">
|
||||||
}}
|
<a-textarea :placeholder="$t('PleaseEnter')+$t('clauseContent')"
|
||||||
</a-button>
|
:disabled="disabled"
|
||||||
|
v-model="item.clauseContent" :rows="4"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -95,16 +99,15 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('clauseContent')">{{$t('clauseContent')}}</span>
|
<span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel"
|
<a-form-model-item class="itemModel" prop="accessoryFile">
|
||||||
:prop="'dataList.'+index+'.clauseContent'"
|
<a-button type="primary" class="button-text"
|
||||||
:rules="[
|
@click="clickButtonToUpload('accessoryFile',index)">
|
||||||
{max: 300,message: $t('clauseContent') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
{{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
|
||||||
}]">
|
item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
<a-textarea :placeholder="$t('PleaseEnter')+$t('clauseContent')"
|
}}
|
||||||
:disabled="disabled"
|
</a-button>
|
||||||
v-model="item.clauseContent" :rows="4"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -71,6 +71,7 @@
|
|||||||
return {
|
return {
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('ProcessType'),
|
title: this.$t('ProcessType'),
|
||||||
@@ -187,10 +188,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
@@ -205,10 +208,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -848,6 +848,7 @@
|
|||||||
AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit'
|
AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit'
|
||||||
},
|
},
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
isResultReported: false,
|
isResultReported: false,
|
||||||
@@ -2126,10 +2127,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
@@ -2145,10 +2148,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', name, { id: id, userName: this.userInfo().username })
|
downloadFile('/sys/common/downLoadFile', name, { id: id, userName: this.userInfo().username })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
myuploadAction: window._CONFIG['domianURL'] + this.thisFileUploadUrl,
|
myuploadAction: window._CONFIG['domianURL'] + this.thisFileUploadUrl,
|
||||||
upDataList: [],
|
upDataList: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
fileList: [],
|
fileList: [],
|
||||||
myfileList: [],
|
myfileList: [],
|
||||||
isLoding: false,
|
isLoding: false,
|
||||||
@@ -214,10 +215,12 @@
|
|||||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id,userName:this.userInfo().username })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id,userName:this.userInfo().username })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,6 +363,7 @@
|
|||||||
list: '/project/projectVersionInfoEO/list'
|
list: '/project/projectVersionInfoEO/list'
|
||||||
},
|
},
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
// fieldList | array |✔| 需要查询的列集合示例如下,type类型有:date/datetime/string/int/number
|
// fieldList | array |✔| 需要查询的列集合示例如下,type类型有:date/datetime/string/int/number
|
||||||
@@ -468,10 +469,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
@@ -486,10 +489,12 @@
|
|||||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
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 {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user