diff --git a/backend/src/main/java/io/dataease/provider/query/oracle/OracleQueryProvider.java b/backend/src/main/java/io/dataease/provider/query/oracle/OracleQueryProvider.java index 6d4bdc0560..e1c882bdcb 100644 --- a/backend/src/main/java/io/dataease/provider/query/oracle/OracleQueryProvider.java +++ b/backend/src/main/java/io/dataease/provider/query/oracle/OracleQueryProvider.java @@ -1123,7 +1123,7 @@ public class OracleQueryProvider extends QueryProvider { whereValue = "'%" + value.get(0) + "%'"; } else if (StringUtils.containsIgnoreCase(request.getOperator(), "between")) { if (request.getDatasetTableField().getDeType() == 1) { - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String startTime = simpleDateFormat.format(new Date(Long.parseLong(value.get(0)))); String endTime = simpleDateFormat.format(new Date(Long.parseLong(value.get(1)))); String st = String.format(OracleConstants.TO_DATE, "'" + startTime + "'", OracleConstants.DEFAULT_DATE_FORMAT); diff --git a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java index 29fc40726f..f5a8c0945d 100644 --- a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java +++ b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java @@ -675,7 +675,7 @@ public class ChartViewService { if (sqlVariables.stream().map(SqlVariableDetails::getVariableName).collect(Collectors.toList()).contains(parameter)) { hasParameters = true; } - if (parameter.contains("|DE|") && table.getId().equals(parameter.split("|DE|")[0]) && sqlVariables.stream().map(SqlVariableDetails::getVariableName).collect(Collectors.toList()).contains(parameter.split("|DE|")[1])) { + if (parameter.contains("|DE|") && table.getId().equals(parameter.split("\\|DE\\|")[0]) && sqlVariables.stream().map(SqlVariableDetails::getVariableName).collect(Collectors.toList()).contains(parameter.split("\\|DE\\|")[1])) { hasParameters = true; } } @@ -1611,13 +1611,13 @@ public class ChartViewService { for (String parameter : chartExtFilterRequest.getParameters()) { if(parameter.contains("|DE|")){ - if(!parameter.split("|DE|")[0].equals(table.getId())){ + if(!parameter.split("\\|DE\\|")[0].equals(table.getId())){ continue; } - List parameters = sqlVariables.stream().filter(item -> item.getVariableName().equalsIgnoreCase(parameter.split("|DE|")[1])).collect(Collectors.toList()); + List parameters = sqlVariables.stream().filter(item -> item.getVariableName().equalsIgnoreCase(parameter.split("\\|DE\\|")[1])).collect(Collectors.toList()); if (CollectionUtils.isNotEmpty(parameters)) { String filter = qp.transFilter(chartExtFilterRequest, parameters.get(0)); - sql = sql.replace("${" + parameter.split("|DE|")[1] + "}", filter); + sql = sql.replace("${" + parameter.split("\\|DE\\|")[1] + "}", filter); } }else { List parameters = sqlVariables.stream().filter(item -> item.getVariableName().equalsIgnoreCase(parameter)).collect(Collectors.toList()); diff --git a/backend/src/main/java/io/dataease/service/chart/ViewPluginBaseServiceImpl.java b/backend/src/main/java/io/dataease/service/chart/ViewPluginBaseServiceImpl.java index a1160b5f42..5e992c7ee6 100644 --- a/backend/src/main/java/io/dataease/service/chart/ViewPluginBaseServiceImpl.java +++ b/backend/src/main/java/io/dataease/service/chart/ViewPluginBaseServiceImpl.java @@ -124,10 +124,9 @@ public class ViewPluginBaseServiceImpl implements ViewPluginBaseService { tableName = dataSetTableService.getCustomSQLDatasource(dataTableInfoDTO, list, ds); break; case UNION: - Datasource datasource = new Datasource(); - datasource.setType(pluginViewSet.getDsType()); + Datasource datasource = ((PluginViewSetImpl) pluginViewSet).getDs(); Map sqlMap = dataSetTableService.getUnionSQLDatasource(dataTableInfoDTO, datasource); - tableName = (String) sqlMap.get("sql"); + tableName = "(" + ((String) sqlMap.get("sql")) + ")"; break; default: tableName = dataTableInfoDTO.getTable(); diff --git a/backend/src/main/java/io/dataease/service/datasource/DriverService.java b/backend/src/main/java/io/dataease/service/datasource/DriverService.java index e83e9a07be..f33d4de94b 100644 --- a/backend/src/main/java/io/dataease/service/datasource/DriverService.java +++ b/backend/src/main/java/io/dataease/service/datasource/DriverService.java @@ -128,7 +128,7 @@ public class DriverService { } String filename = file.getOriginalFilename(); if(!filename.endsWith(".jar")){ - throw new Exception("File is not jar!"); + throw new Exception(Translator.get("I18N_NOT_JAR")); } String dirPath = DRIVER_PATH + driverId + "/"; String filePath = dirPath + Md5Utils.md5(filename) + ".jar"; diff --git a/backend/src/main/resources/i18n/messages_en_US.properties b/backend/src/main/resources/i18n/messages_en_US.properties index 4577f24e93..94133cce0d 100644 --- a/backend/src/main/resources/i18n/messages_en_US.properties +++ b/backend/src/main/resources/i18n/messages_en_US.properties @@ -237,4 +237,5 @@ I18N_ACCOUNT_LOCKED=Account\u3010%s\u3011is locked(Please contact the administra I18N_PANEL_EXIST=The current panel name already exists under this directory I18N_DATASET_GROUP_EXIST=The current dataset grouping name already exists under this directory +I18N_NOT_JAR=File is not jar! diff --git a/backend/src/main/resources/i18n/messages_zh_CN.properties b/backend/src/main/resources/i18n/messages_zh_CN.properties index c427e12348..192d0b90f7 100644 --- a/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -237,4 +237,5 @@ I18N_ACCOUNT_LOCKED=\u8D26\u53F7\u3010%s\u3011\u5DF2\u9501\u5B9A(\u8BF7\u8054\u7 I18N_PANEL_EXIST=\u5F53\u524D\u4EEA\u8868\u677F\u540D\u79F0\u5728\u8BE5\u76EE\u5F55\u4E0B\u9762\u5DF2\u7ECF\u5B58\u5728 I18N_DATASET_GROUP_EXIST=\u5F53\u524D\u6570\u636E\u96C6\u5206\u7EC4\u540D\u79F0\u5728\u8BE5\u76EE\u5F55\u4E0B\u9762\u5DF2\u7ECF\u5B58\u5728 +I18N_NOT_JAR=文件不是 jar 包! diff --git a/backend/src/main/resources/i18n/messages_zh_TW.properties b/backend/src/main/resources/i18n/messages_zh_TW.properties index ba91a4e5f4..a80471659d 100644 --- a/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -233,4 +233,4 @@ I18N_ACCOUNT_LOCKED=\u8CEC\u865F\u3010%s\u3011\u5DF2\u9396\u5B9A(\u8ACB\u806F\u7 I18N_PANEL_EXIST=\u7576\u524D\u5100\u9336\u95C6\u540D\u7A31\u5728\u8A72\u76EE\u9304\u4E0B\u9762\u5DF2\u7D93\u5B58\u5728 I18N_DATASET_GROUP_EXIST=\u7576\u524D\u6578\u64DA\u96C6\u5206\u7D44\u540D\u7A31\u5728\u8A72\u76EE\u9304\u4E0B\u9762\u5DF2\u7D93\u5B58\u5728 - +I18N_NOT_JAR=文件不是 jar 包! diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 178a099f0f..c3c2c32097 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -1249,6 +1249,7 @@ export default { liquid_shape_rect: 'Rect', dimension_or_quota: 'Dimension Or Quota', axis_value_split_count: 'Tick Count', + axis_value_split_space: 'Tick Interval', chart_waterfall: 'Waterfall', pie_inner_radius_percent: 'Inner Radius(%)', pie_outer_radius_size: 'Outer Radius', @@ -1815,7 +1816,8 @@ export default { can_be_uploaded: 'Only files in jar format can be uploaded', query_timeout: 'query timeout', add_data_source: 'add data source', - delete_this_driver: 'Are you sure to delete this driver?' + delete_this_driver: 'Are you sure to delete this driver?', + basic_info: 'Basic Info' }, pblink: { key_pwd: 'Please enter the password to open the link', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 9e18c8acca..3171a10bec 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -1249,6 +1249,7 @@ export default { liquid_shape_rect: '矩形', dimension_or_quota: '維度或指標', axis_value_split_count: '刻度數', + axis_value_split_space: '刻度間距', chart_waterfall: '瀑佈圖', pie_inner_radius_percent: '內徑佔比', pie_outer_radius_size: '外徑大小', @@ -1815,7 +1816,8 @@ export default { can_be_uploaded: '僅支持上傳JAR格式的檔案', query_timeout: '査詢超時', add_data_source: '添加資料來源', - delete_this_driver: '確定删除該驅動嗎?' + delete_this_driver: '確定删除該驅動嗎?', + basic_info: '基本信息' }, pblink: { key_pwd: '請輸入密碼打開鏈接', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 425c1d028d..143435d13a 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -1248,6 +1248,7 @@ export default { liquid_shape_rect: '矩形', dimension_or_quota: '维度或指标', axis_value_split_count: '刻度数', + axis_value_split_space: '刻度间距', chart_waterfall: '瀑布图', pie_inner_radius_percent: '内径占比', pie_outer_radius_size: '外径大小', @@ -1815,7 +1816,8 @@ export default { can_be_uploaded: '仅支持上传JAR格式的文件', query_timeout: '查询超时', add_data_source: '添加数据源', - delete_this_driver: '确定删除该驱动吗?' + delete_this_driver: '确定删除该驱动吗?', + basic_info: '基本信息' }, pblink: { key_pwd: '请输入密码打开链接', diff --git a/frontend/src/views/chart/components/component-style/XAxisSelector.vue b/frontend/src/views/chart/components/component-style/XAxisSelector.vue index 34994eca40..f0882b1544 100644 --- a/frontend/src/views/chart/components/component-style/XAxisSelector.vue +++ b/frontend/src/views/chart/components/component-style/XAxisSelector.vue @@ -51,7 +51,7 @@ - {{ $t('chart.axis_value_split_count') }} + {{ $t('chart.axis_value_split_space') }}
间隔表示两个刻度之间的单位长度。 diff --git a/frontend/src/views/chart/components/component-style/YAxisExtSelector.vue b/frontend/src/views/chart/components/component-style/YAxisExtSelector.vue index 6e28b3799c..a59d0f859c 100644 --- a/frontend/src/views/chart/components/component-style/YAxisExtSelector.vue +++ b/frontend/src/views/chart/components/component-style/YAxisExtSelector.vue @@ -51,7 +51,7 @@ - {{ $t('chart.axis_value_split_count') }} + {{ $t('chart.axis_value_split_space') }}
间隔表示两个刻度之间的单位长度。 diff --git a/frontend/src/views/chart/components/component-style/YAxisSelector.vue b/frontend/src/views/chart/components/component-style/YAxisSelector.vue index 92893357cd..834f6cef73 100644 --- a/frontend/src/views/chart/components/component-style/YAxisSelector.vue +++ b/frontend/src/views/chart/components/component-style/YAxisSelector.vue @@ -51,7 +51,7 @@ - {{ $t('chart.axis_value_split_count') }} + {{ $t('chart.axis_value_split_space') }}
间隔表示两个刻度之间的单位长度。 diff --git a/frontend/src/views/chart/components/drag-item/utils.js b/frontend/src/views/chart/components/drag-item/utils.js index 675abee608..b2ab4bb007 100644 --- a/frontend/src/views/chart/components/drag-item/utils.js +++ b/frontend/src/views/chart/components/drag-item/utils.js @@ -10,7 +10,7 @@ export function getItemType(dimensionData, quotaData, item) { if (status === 'd') { for (let i = 0; i < dimensionData.length; i++) { const ele = dimensionData[i] - if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) { + if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) { checked = true break } @@ -19,7 +19,7 @@ export function getItemType(dimensionData, quotaData, item) { if (status === 'q') { for (let i = 0; i < quotaData.length; i++) { const ele = quotaData[i] - if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) { + if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) { checked = true break } diff --git a/frontend/src/views/dataset/data/UpdateInfo.vue b/frontend/src/views/dataset/data/UpdateInfo.vue index ac25ba10c4..36ff3c3348 100644 --- a/frontend/src/views/dataset/data/UpdateInfo.vue +++ b/frontend/src/views/dataset/data/UpdateInfo.vue @@ -6,8 +6,7 @@ secondary icon="el-icon-plus" @click="() => addTask()" - >{{ $t('dataset.add_task') }} + >{{ $t('dataset.add_task') }} @@ -18,21 +17,21 @@
@@ -50,8 +49,8 @@ @@ -59,17 +58,17 @@ {{ - $t(`dataset.${scope.row.lastExecStatus.toLocaleLowerCase()}`) - }} + >{{ + $t(`dataset.${scope.row.lastExecStatus.toLocaleLowerCase()}`) + }} - @@ -81,8 +80,8 @@ @@ -90,48 +89,48 @@ {{ scope.row.nextExecTime | timestampFormatDate }} - - + -