mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 21:08:31 +08:00
feat(X-Pack): [数据填报]用户追加填报页面支持添加多条数据/批量上传数据
This commit is contained in:
@@ -164,6 +164,10 @@ public interface DataFillingApi {
|
||||
@PostMapping("/user-task/saveData/{id}")
|
||||
DataFillFormTableDataResponse saveFormRowData(@PathVariable("id") Long id, @RequestBody Map<String, Object> data) throws Exception;
|
||||
|
||||
@Operation(summary = "用户新增填报数据")
|
||||
@PostMapping("/user-task/appendData/{id}")
|
||||
DataFillFormTableDataResponse appendFormRowData(@PathVariable("id") Long id, @RequestBody Map<String, Object> data) throws Exception;
|
||||
|
||||
@Operation(summary = "数据填报操作日志")
|
||||
@DePermit({"#p0.formId+':read'"})
|
||||
@PostMapping("/log/page/{goPage}/{pageSize}")
|
||||
@@ -175,12 +179,10 @@ public interface DataFillingApi {
|
||||
void clearLog(@RequestBody DfClearCommitLogRequest request) throws Exception;
|
||||
|
||||
@Operation(summary = "上传Excel")
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@PostMapping("/form/{formId}/uploadFile")
|
||||
DfExcelData excelUpload(@PathVariable("formId") Long formId, @RequestParam("file") MultipartFile file) throws Exception;
|
||||
|
||||
@Operation(summary = "下载Excel模板")
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@GetMapping("/form/{formId}/excelTemplate")
|
||||
void excelTemplate(@PathVariable("formId") Long formId);
|
||||
|
||||
@@ -189,6 +191,10 @@ public interface DataFillingApi {
|
||||
@PostMapping("/form/{formId}/confirmUpload")
|
||||
void confirmUpload(@PathVariable("formId") Long formId, @RequestBody Map<String, String> data);
|
||||
|
||||
@Operation(summary = "用户确认上传Excel")
|
||||
@PostMapping("/user-task/appendData/{id}/form/{formId}/confirmUpload")
|
||||
void appendDataConfirmUpload(@PathVariable("id") Long id, @PathVariable("formId") Long formId, @RequestBody Map<String, String> data);
|
||||
|
||||
@Operation(summary = "获取表单模版配置")
|
||||
@GetMapping("/template/{itemId}")
|
||||
String getTemplateByUserTaskItemId(@PathVariable("itemId") Long itemId);
|
||||
|
||||
@@ -52,5 +52,6 @@ public class DfSubTaskVo implements Serializable {
|
||||
private int totalUserCount;
|
||||
private int unfinishedUserCount;
|
||||
|
||||
private Integer fillType;
|
||||
|
||||
}
|
||||
|
||||
@@ -52,5 +52,6 @@ public class DfUserTaskData implements Serializable {
|
||||
|
||||
private String formExtSetting;
|
||||
|
||||
private Integer fillType;
|
||||
|
||||
}
|
||||
|
||||
@@ -47,4 +47,6 @@ public class DfUserTaskVo implements Serializable {
|
||||
|
||||
private boolean expired;
|
||||
|
||||
private Integer fillType;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user