|
@@ -700,7 +700,8 @@ public class ExcelTabController extends BladeController {
|
|
return R.fail("请上传清表!");
|
|
return R.fail("请上传清表!");
|
|
}
|
|
}
|
|
|
|
|
|
- File file1 = ResourceUtil.getFile(wbsTreePrivate.getHtmlUrl());
|
|
|
|
|
|
+// File file1 = ResourceUtil.getFile(wbsTreePrivate.getHtmlUrl());
|
|
|
|
+ File file1 = ResourceUtil.getFile("D:\\develop\\1625742323381960704.html");
|
|
FileInputStream fileInputStream = new FileInputStream(file1);
|
|
FileInputStream fileInputStream = new FileInputStream(file1);
|
|
String htmlString = IoUtil.readToString(fileInputStream);
|
|
String htmlString = IoUtil.readToString(fileInputStream);
|
|
// 解析 style
|
|
// 解析 style
|
|
@@ -708,7 +709,7 @@ public class ExcelTabController extends BladeController {
|
|
Element table = doc.select("table").first();
|
|
Element table = doc.select("table").first();
|
|
doc.select("Col").remove();
|
|
doc.select("Col").remove();
|
|
fileInputStream.close();
|
|
fileInputStream.close();
|
|
- return R.data(table + "");
|
|
|
|
|
|
+ return R.data((table + "").replaceAll("title","axis").replaceAll("placeholder","name"));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|