mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 11:03:04 +08:00
feat(X-Pack): [数据填报]增加清空表数据功能
This commit is contained in:
parent
63be4ce890
commit
1f86758a9f
@ -4125,6 +4125,10 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
|
||||
on_the_left: 'Please select a form on the left',
|
||||
exporting: 'Backend export in progress, can go to',
|
||||
progress_to_download: 'Check progress and download',
|
||||
clear_selection: 'Clear selection',
|
||||
truncate_table: 'Truncate table',
|
||||
truncate: 'Truncate',
|
||||
confirm_truncate_table: 'Confirm to truncate table',
|
||||
form: {
|
||||
add_detail_columns: 'Add column details',
|
||||
detail_columns: 'Column details',
|
||||
|
@ -4011,6 +4011,10 @@ export default {
|
||||
on_the_left: '請在左側選擇表單',
|
||||
exporting: '後台導出中,可前往',
|
||||
progress_to_download: '查看進度,進行下載',
|
||||
clear_selection: '取消選擇',
|
||||
truncate_table: '清空數據',
|
||||
truncate: '清空',
|
||||
confirm_truncate_table: '確定要清空數據嗎',
|
||||
form: {
|
||||
add_detail_columns: '添加字段描述',
|
||||
detail_columns: '字段描述',
|
||||
|
@ -4015,6 +4015,10 @@ export default {
|
||||
on_the_left: '请在左侧选择表单',
|
||||
exporting: '后台导出中,可前往',
|
||||
progress_to_download: '查看进度,进行下载',
|
||||
clear_selection: '取消选择',
|
||||
truncate_table: '清空数据',
|
||||
truncate: '清空',
|
||||
confirm_truncate_table: '确定要清空数据吗',
|
||||
form: {
|
||||
add_detail_columns: '添加字段描述',
|
||||
detail_columns: '字段描述',
|
||||
|
@ -67,6 +67,10 @@ public interface DataFillingApi {
|
||||
@GetMapping("/form/{formId}/delete/{id}")
|
||||
void deleteRowData(@PathVariable("formId") Long formId, @PathVariable("id") Long id) throws Exception;
|
||||
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@GetMapping("/form/{formId}/truncate")
|
||||
void truncateRowData(@PathVariable("formId") Long formId) throws Exception;
|
||||
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@PostMapping("/form/{formId}/batch-delete")
|
||||
void batchDeleteRowData(@PathVariable("formId") Long formId, @RequestBody List<Long> ids) throws Exception;
|
||||
|
@ -51,4 +51,8 @@ public abstract class ExtDDLProvider {
|
||||
|
||||
public abstract Integer getColumnType(String name);
|
||||
|
||||
public abstract String truncateTable(String table);
|
||||
|
||||
public abstract String listAllIds(String table, String keyColumn);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user