forked from github/dataease
fix: 截屏只有半屏
This commit is contained in:
parent
0c748454da
commit
21a2309512
@ -21,6 +21,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ru.yandex.qatools.ashot</groupId>
|
||||
<artifactId>ashot</artifactId>
|
||||
<version>1.5.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
@ -255,6 +260,7 @@
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@ -408,14 +414,14 @@
|
||||
</fileset>
|
||||
</move>
|
||||
|
||||
<move todir="src/main/resources/static/de-app">
|
||||
<copy todir="src/main/resources/static/de-app">
|
||||
<fileset dir="../../dataease-app/dist/build/h5">
|
||||
<exclude name="*.html"/>
|
||||
</fileset>
|
||||
</move>
|
||||
</copy>
|
||||
|
||||
|
||||
<move file="../../dataease-app/dist/build/h5/index.html" tofile="src/main/resources/templates/app.html" />
|
||||
<copy file="../../dataease-app/dist/build/h5/index.html" tofile="src/main/resources/templates/app.html" />
|
||||
|
||||
|
||||
</target>
|
||||
|
@ -104,7 +104,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
|
||||
|
||||
@Async
|
||||
public void sendReport(GlobalTaskInstance taskInstance, XpackEmailTemplateDTO emailTemplateDTO,
|
||||
SysUserEntity user) {
|
||||
SysUserEntity user) {
|
||||
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
||||
try {
|
||||
byte[] bytes = emailXpackService.printData(panelUrl(emailTemplateDTO.getPanelId()), tokenByUser(user),
|
||||
@ -153,7 +153,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
|
||||
|
||||
private String panelUrl(String panelId) {
|
||||
String domain = ServletUtils.domain();
|
||||
return domain + "/#/preview/" + panelId;
|
||||
return domain + "/#/previewScreenShot/" + panelId + "/true";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public class XEmailTaskServer {
|
||||
|
||||
@PostMapping("/queryTasks/{goPage}/{pageSize}")
|
||||
public Pager<List<XpackTaskGridDTO>> queryTask(@PathVariable int goPage, @PathVariable int pageSize,
|
||||
@RequestBody XpackGridRequest request) {
|
||||
@RequestBody XpackGridRequest request) {
|
||||
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
List<XpackTaskGridDTO> tasks = emailXpackService.taskGrid(request);
|
||||
@ -80,7 +80,7 @@ public class XEmailTaskServer {
|
||||
String panelId = request.getPanelId();
|
||||
String content = request.getContent();
|
||||
|
||||
String url = ServletUtils.domain() + "/#/preview/" + panelId;
|
||||
String url = ServletUtils.domain() + "/#/previewScreenShot/" + panelId + "/true";
|
||||
|
||||
String token = ServletUtils.getToken();
|
||||
String fileId = null;
|
||||
@ -116,7 +116,7 @@ public class XEmailTaskServer {
|
||||
|
||||
@PostMapping("/queryInstancies/{goPage}/{pageSize}")
|
||||
public Pager<List<XpackTaskInstanceDTO>> instancesGrid(@PathVariable int goPage, @PathVariable int pageSize,
|
||||
@RequestBody XpackGridRequest request) {
|
||||
@RequestBody XpackGridRequest request) {
|
||||
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
List<XpackTaskInstanceDTO> instances = emailXpackService.taskInstanceGrid(request);
|
||||
|
Loading…
Reference in New Issue
Block a user