sea-chart 1.1.112-oad2.1 → 1.1.112-oad2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,6 +147,7 @@ const de = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Le temps d'exécution de la requête dépasse la limite. Les données ne peuvent pas être chargées.",
148
148
  "There_are_some_problems_with_the_filters": "Die Filterbedingungen sind abnormal. Bitte setzen sie die Filterbedingungen in den Ansichtseinstellungen zurück.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Nicht verwendet",
151
152
  "Select_field": "Feld auswählen",
152
153
  "Display_total": "Gesamtwert anzeigen",
@@ -147,6 +147,7 @@ const en = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Execution time of the query exceeds the limit. Data cannot be loaded.",
148
148
  "There_are_some_problems_with_the_filters": "There are some problems with the filters.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Not used",
151
152
  "Select_field": "Select field",
152
153
  "Display_total": "Display total",
@@ -147,6 +147,7 @@ const es = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Execution time of the query exceeds the limit. Data cannot be loaded.",
148
148
  "There_are_some_problems_with_the_filters": "There are some problems with the filters.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Not used",
151
152
  "Select_field": "Select field",
152
153
  "Display_total": "Display total",
@@ -147,6 +147,7 @@ const fr = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Le temps d'exécution de la requête dépasse la limite. Les données ne peuvent pas être chargées.",
148
148
  "There_are_some_problems_with_the_filters": "Les conditions de filtrage sont anormales. Veuillez réinitialiser les conditions de filtrage dans les paramètres de vue.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Ne pas utilisé",
151
152
  "Select_field": "Sélectionner un champ",
152
153
  "Display_total": "Afficher le total",
@@ -147,6 +147,7 @@ const pt = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Execution time of the query exceeds the limit. Data cannot be loaded.",
148
148
  "There_are_some_problems_with_the_filters": "There are some problems with the filters.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Not used",
151
152
  "Select_field": "Select field",
152
153
  "Display_total": "Display total",
@@ -147,6 +147,7 @@ const ru = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "Execution time of the query exceeds the limit. Data cannot be loaded.",
148
148
  "There_are_some_problems_with_the_filters": "There are some problems with the filters.",
149
149
  "Please_complete_the_chart_configuration_first": "Configure chart in element settings",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "The chart settings are invalid. Please contact the administrator for relevant configurations",
150
151
  "Not_used": "Not used",
151
152
  "Select_field": "Select field",
152
153
  "Display_total": "Display total",
@@ -147,6 +147,7 @@ const zh_CN = {
147
147
  "Execution_time_of_the_query_exceeds_the_limit": "查询的执行时间超出限制。无法加载数据。",
148
148
  "There_are_some_problems_with_the_filters": "过滤器有一些问题。",
149
149
  "Please_complete_the_chart_configuration_first": "在元素设置中配置图表",
150
+ "The_chart_settings_are_invalid_please_contact_the_administrator_for_relevant_configurations": "图表设置无效,请联系管理员进行相关配置",
150
151
  "Not_used": "不使用",
151
152
  "Select_field": "选择字段",
152
153
  "Display_total": "显示总计",
@@ -9,7 +9,8 @@ import OriginalDataUtils from './original-data-utils';
9
9
  class ChartUtils {}
10
10
  ChartUtils.calculateChart = async (chart, value, callback) => {
11
11
  if (!BaseUtils.isValidExistChart(value.tables, chart)) {
12
- const tip_message = 'Please_complete_the_chart_configuration_first11111';
12
+ const roleId = context.getSetting('roleId');
13
+ const tip_message = !roleId ? 'Please_complete_the_chart_configuration_first' : 'Please_complete_the_chart_configuration_first';
13
14
  return callback && callback('', tip_message, null);
14
15
  }
15
16
  const id = uniqueId();
@@ -49,7 +50,7 @@ ChartUtils.calculateChart = async (chart, value, callback) => {
49
50
  };
50
51
  ChartUtils.calculateStaticChart = (chart, value, statisticalResult, callback) => {
51
52
  if (!BaseUtils.isValidExistChart(value.tables, chart)) {
52
- const tip_message = 'Please_complete_the_chart_configuration_first22222';
53
+ const tip_message = 'Please_complete_the_chart_configuration_first';
53
54
  return callback && callback('', tip_message, null);
54
55
  }
55
56
  if (!statisticalResult) {
@@ -52,7 +52,7 @@ OriginalDataUtils.isValidExistChart = (tables, chart) => {
52
52
  };
53
53
  OriginalDataUtils.calculateChart = async (chart, value, callback, refreshCache) => {
54
54
  if (!_OriginalDataUtils.isValidExistChart((value === null || value === void 0 ? void 0 : value.tables) || [], chart)) {
55
- const tip_message = 'Please_complete_the_chart_configuration_first44444';
55
+ const tip_message = 'Please_complete_the_chart_configuration_first';
56
56
  return callback && callback('', tip_message, null);
57
57
  }
58
58
  try {
@@ -2029,7 +2029,7 @@ SQLStatisticsUtils.calculateChart = async (chart, value, callback, sqlRows) => {
2029
2029
  tables
2030
2030
  } = value;
2031
2031
  if (!BaseUtils.isValidExistChart(tables, chart)) {
2032
- const tip_message = 'Please_complete_the_chart_configuration_first33333';
2032
+ const tip_message = 'Please_complete_the_chart_configuration_first';
2033
2033
  return callback && callback('', tip_message, null);
2034
2034
  }
2035
2035
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "1.1.112oad2.1",
3
+ "version": "1.1.112oad2.24",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@antv/data-set": "0.11.8",