From f3b3459be6726925379cc7ddef4ed1aa6b0240f4 Mon Sep 17 00:00:00 2001 From: wangchun <2838138608@qq.com> Date: Wed, 8 Jul 2020 11:07:26 +0800 Subject: [PATCH] add --- .../ureport/console/BaseServletAction.java | 2 -- .../resources/ureport-html/html-preview.html | 14 +++++++++++++ ureport2-js/src/print.html | 21 +++++++++++++++++++ ureport2-js/webpack.config.js | 2 +- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 ureport2-js/src/print.html diff --git a/ureport2-console/src/main/java/com/bstek/ureport/console/BaseServletAction.java b/ureport2-console/src/main/java/com/bstek/ureport/console/BaseServletAction.java index a6ddfdd..ec9bc12 100644 --- a/ureport2-console/src/main/java/com/bstek/ureport/console/BaseServletAction.java +++ b/ureport2-console/src/main/java/com/bstek/ureport/console/BaseServletAction.java @@ -137,7 +137,6 @@ public abstract class BaseServletAction implements ServletAction { * @return */ private String getFileName(String reportTitle){ - System.out.println("查询数据库开始"); Connection connection = Utils.getBuildinConnection(Utils.getApplicationContext().getEnvironment().getProperty("ureport.datasource.name")); String fileName = ""; PreparedStatement preparedStatement = null; @@ -150,7 +149,6 @@ public abstract class BaseServletAction implements ServletAction { while (resultSet.next()){ fileName = resultSet.getString("file_name"); } - System.out.println("查询数据库结束"); } catch (SQLException throwables) { throwables.printStackTrace(); }finally { diff --git a/ureport2-console/src/main/resources/ureport-html/html-preview.html b/ureport2-console/src/main/resources/ureport-html/html-preview.html index f231372..152d530 100644 --- a/ureport2-console/src/main/resources/ureport-html/html-preview.html +++ b/ureport2-console/src/main/resources/ureport-html/html-preview.html @@ -11,6 +11,20 @@ ${title} diff --git a/ureport2-js/src/print.html b/ureport2-js/src/print.html new file mode 100644 index 0000000..1595051 --- /dev/null +++ b/ureport2-js/src/print.html @@ -0,0 +1,21 @@ + + + + + Title + + + + + + diff --git a/ureport2-js/webpack.config.js b/ureport2-js/webpack.config.js index df4dbb4..3859eea 100644 --- a/ureport2-js/webpack.config.js +++ b/ureport2-js/webpack.config.js @@ -51,4 +51,4 @@ module.exports={ } ] } -}; \ No newline at end of file +};