From 659c881678345995f4046f403a66b01d241cc121 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 27 Nov 2024 17:28:33 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=9B=BE=E8=A1=A8Y=E8=BD=B4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_antv.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 6212518c4e..1c0b5110fb 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -556,7 +556,8 @@ export function getYAxis(chart: Chart) { grid, label, line, - tickLine + tickLine, + nice: true } return axis } @@ -649,7 +650,8 @@ export function getYAxisExt(chart: Chart) { grid, label, line, - tickLine + tickLine, + nice: true } return axis } From 7549bc66d74e5512781d0d215b2b62589b1aa415 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 27 Nov 2024 17:28:55 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E9=9B=B7?= =?UTF-8?q?=E8=BE=BE=E5=9B=BE=E9=83=A8=E5=88=86=E5=9F=BA=E7=A1=80=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=E6=9C=AA=E8=BF=9B=E8=A1=8C=E4=B8=93=E5=B1=9E?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor-style/components/BasicStyleSelector.vue | 13 +++++++++++-- .../components/js/panel/charts/others/radar.ts | 12 ++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue index 458e5e2a37..9d659658f8 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue @@ -1278,7 +1278,11 @@ onMounted(() => { {{ t('chart.circle') }} - + { class="form-item margin-bottom-8" :class="'form-item-' + themes" :label="t('chart.radar_point_size')" + v-if="showProperty('radarPointSize')" > { @change="changeBasicStyle('radarPointSize')" /> - + { 'linkage' ] propertyInner: EditorPropertyInner = { - 'basic-style-selector': ['colors', 'alpha', 'radarShape', 'seriesColor'], + 'basic-style-selector': [ + 'colors', + 'alpha', + 'radarShape', + 'seriesColor', + 'radarShowPoint', + 'radarPointSize', + 'radarAreaColor' + ], 'label-selector': ['seriesLabelFormatter'], 'tooltip-selector': ['color', 'fontSize', 'backgroundColor', 'seriesTooltipFormatter', 'show'], 'misc-style-selector': ['showName', 'color', 'fontSize', 'axisColor', 'axisValue'], From e54a0ff03d1ec26431e47f7a58e329f5306be753 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 27 Nov 2024 18:08:45 +0800 Subject: [PATCH 3/5] =?UTF-8?q?perf(X-Pack):=20=E6=B8=B8=E7=A6=BB=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E8=BF=81=E7=A7=BB=E5=90=8E=E5=90=8C=E6=AD=A5=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- de-xpack | 2 +- .../auth/api/InteractiveAuthApi.java | 8 ++++---- .../auth/dto/BusiBatchAuthorizeNode.java | 17 +++++++++++++++++ .../auth/dto/BusiBatchAuthorizeRequest.java | 17 +++++++++++++++++ 4 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeNode.java create mode 100644 sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeRequest.java diff --git a/de-xpack b/de-xpack index b70bf4750e..56730c17d9 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit b70bf4750e2ab8bc3f0a88438de61e8523e04f3f +Subproject commit 56730c17d951f4f74d752ef56e064abc9d5e73aa diff --git a/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/api/InteractiveAuthApi.java b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/api/InteractiveAuthApi.java index df7d5bdf0b..bfc9779587 100644 --- a/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/api/InteractiveAuthApi.java +++ b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/api/InteractiveAuthApi.java @@ -3,10 +3,7 @@ package io.dataease.api.permissions.auth.api; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiSupport; -import io.dataease.api.permissions.auth.dto.BusiPerCheckDTO; -import io.dataease.api.permissions.auth.dto.BusiResourceCreator; -import io.dataease.api.permissions.auth.dto.BusiResourceEditor; -import io.dataease.api.permissions.auth.dto.BusiResourceMover; +import io.dataease.api.permissions.auth.dto.*; import io.dataease.api.permissions.auth.vo.PermissionValVO; import io.dataease.api.permissions.auth.vo.ResourceNodeVO; import io.dataease.model.BusiNodeRequest; @@ -89,4 +86,7 @@ public interface InteractiveAuthApi { String OrgNameForResource(ExportTaskDTO exportTaskDTO); void editResourceExtraFlag(BusiResourceEditor editor); + + @PostMapping("/batchAuthorize") + void batchAuthorize(@RequestBody BusiBatchAuthorizeRequest request); } diff --git a/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeNode.java b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeNode.java new file mode 100644 index 0000000000..68afdbc01c --- /dev/null +++ b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeNode.java @@ -0,0 +1,17 @@ +package io.dataease.api.permissions.auth.dto; + +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; +import java.util.List; + +@Data +public class BusiBatchAuthorizeNode implements Serializable { + + @Serial + private static final long serialVersionUID = 5804450226135199435L; + private List idList; + + private int flag; +} diff --git a/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeRequest.java b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeRequest.java new file mode 100644 index 0000000000..070a0da334 --- /dev/null +++ b/sdk/api/api-permissions/src/main/java/io/dataease/api/permissions/auth/dto/BusiBatchAuthorizeRequest.java @@ -0,0 +1,17 @@ +package io.dataease.api.permissions.auth.dto; + +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; +import java.util.List; + +@Data +public class BusiBatchAuthorizeRequest implements Serializable { + @Serial + private static final long serialVersionUID = -5219199153835271350L; + + private List nodeList; + + private Long oid; +} From 29caffdf68829b4e841b550bf989500a52f7c1c7 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 27 Nov 2024 18:18:10 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E5=8F=8C?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E6=A0=87=E7=AD=BE=E5=B1=95=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/common/common_antv.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 1c0b5110fb..53fe64c276 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -176,6 +176,10 @@ export function getLabel(chart: Chart) { ) { layout.push({ type: 'limit-in-canvas' }) layout.push({ type: 'hide-overlap' }) + } else if (chart.type.includes('chart-mix')) { + layout.push({ type: 'limit-in-canvas' }) + layout.push({ type: 'limit-in-plot' }) + layout.push({ type: 'hide-overlap' }) } else { layout.push({ type: 'limit-in-plot' }) layout.push({ type: 'fixed-overlap' }) From 46e17fc9881909a1243d68b46e126eb463e11424 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 27 Nov 2024 18:51:17 +0800 Subject: [PATCH 5/5] =?UTF-8?q?style(=E5=9B=BE=E8=A1=A8):=20=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E8=A1=A8=E8=B0=83=E6=95=B4=E5=86=BB=E7=BB=93=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E8=87=AA=E5=8A=A8=E6=8D=A2=E8=A1=8C=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 8 +++++--- core/core-frontend/src/locales/tw.ts | 6 ++++-- core/core-frontend/src/locales/zh-CN.ts | 6 ++++-- .../components/BasicStyleSelector.vue | 15 ++++++++++++++- .../components/table/TableCellSelector.vue | 19 +++++++++++++++++-- .../js/panel/charts/table/table-info.ts | 8 ++++---- 6 files changed, 48 insertions(+), 14 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index a9c50718ee..89c9f1a4b9 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -1741,8 +1741,7 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr p_bottom: 'Bottom alignment', p_center: 'Center', table_auto_break_line: 'Automatic line break', - table_break_line_tip: - 'Turn on automatic line break, the table header row height setting will be invalid', + table_break_line_tip: 'After merging cells, automatic line wrapping is not supported', table_break_line_max_lines: 'Maximum number of lines', step: 'Step length (px)', no_function: @@ -1853,7 +1852,10 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr length_limit: 'length limit', radar_point: 'enable auxiliary points', radar_point_size: 'size', - radar_area_color: 'enable area ' + radar_area_color: 'enable area', + table_freeze_tip: 'after merging cells, column and row freezing is not supported', + merge_cells_tips: + 'after merging cells, freezing rows and columns and automatic line wrapping will become invalid' }, dataset: { scope_edit: 'only effective when editing', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index a3cd4a4c69..3e6fc5bc35 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1705,7 +1705,7 @@ export default { p_bottom: '下對齊', p_center: '居中', table_auto_break_line: '自動換行', - table_break_line_tip: '開啟自動換行,表頭行高設定將失效', + table_break_line_tip: '合併儲存格後,不支持自動換行', table_break_line_max_lines: '最大行數', step: '步長(px)', no_function: '函數尚未支援直接引用,請在欄位表達式中手動輸入。 ', @@ -1813,7 +1813,9 @@ export default { length_limit: '長度限制', radar_point: '開啟輔助點', radar_point_size: '輔助點大小', - radar_area_color: '開啟面積' + radar_area_color: '開啟面積', + table_freeze_tip: '合併儲存格後,不支持行列凍結', + merge_cells_tips: '合併儲存格後,行列凍結、自動換行會失效' }, dataset: { scope_edit: '僅編輯時生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index c648fff17f..1c0ef8839a 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1708,7 +1708,7 @@ export default { p_bottom: '下对齐', p_center: '居中', table_auto_break_line: '自动换行', - table_break_line_tip: '开启自动换行,表头行高设置将失效', + table_break_line_tip: '合并单元格后,不支持自动换行', table_break_line_max_lines: '最大行数', step: '步长(px)', no_function: '函数尚未支持直接引用,请在字段表达式中手动输入。', @@ -1816,7 +1816,9 @@ export default { length_limit: '长度限制', radar_point: '开启辅助点', radar_point_size: '辅助点大小', - radar_area_color: '开启面积' + radar_area_color: '开启面积', + table_freeze_tip: '合并单元格后,不支持行列冻结', + merge_cells_tips: '合并单元格后,行列冻结、自动换行会失效' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue index 9d659658f8..1fbed8cf55 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue @@ -320,6 +320,17 @@ const mapCustomRangeValidate = prop => { } changeBasicStyle(prop) } +/** + * 表格是否合并单元格 + */ +const mergeCell = computed(() => { + if (COLUMN_WIDTH_TYPE.includes(props.chart.type)) { + let { customAttr } = JSON.parse(JSON.stringify(props.chart)) + const { tableCell } = customAttr + return tableCell.mergeCells + } + return false +}) onMounted(() => { init() }) @@ -1057,12 +1068,13 @@ onMounted(() => { {{ t('chart.table_auto_break_line') }} - + @@ -1086,6 +1098,7 @@ onMounted(() => { :show-input-controls="false" :min="1" :step="1" + :disabled="mergeCell" @change="changeBasicStyle('maxLines')" /> diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue index 6b16a5b316..d43f889bbd 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue @@ -332,7 +332,22 @@ onMounted(() => { v-model="state.tableCellForm.tableFreeze" @change="changeTableCell('tableFreeze')" > - {{ t('chart.table_freeze') }} + + {{ t('chart.table_freeze') }} + + + + + + + @@ -394,7 +409,7 @@ onMounted(() => { {{ t('chart.merge_cells') }} diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts index 3cbdf3d688..883bf18b59 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts @@ -181,7 +181,7 @@ export class TableInfo extends S2ChartView { return p }, {}) } - if (tableCell.tableFreeze) { + if (tableCell.tableFreeze && !tableCell.mergeCells) { s2Options.frozenColCount = tableCell.tableColumnFreezeHead ?? 0 s2Options.frozenRowCount = tableCell.tableRowFreezeHead ?? 0 } @@ -212,7 +212,7 @@ export class TableInfo extends S2ChartView { } } // 配置文本自动换行参数 - viewMeta.autoWrap = basicStyle.autoWrap + viewMeta.autoWrap = tableCell.mergeCells ? false : basicStyle.autoWrap viewMeta.maxLines = basicStyle.maxLines return new CustomDataCell(viewMeta, viewMeta?.spreadsheet) } @@ -239,7 +239,7 @@ export class TableInfo extends S2ChartView { this.configHeaderInteraction(chart, s2Options) s2Options.colCell = (node, sheet, config) => { // 配置文本自动换行参数 - node.autoWrap = basicStyle.autoWrap + node.autoWrap = tableCell.mergeCells ? false : basicStyle.autoWrap node.maxLines = basicStyle.maxLines return new CustomTableColCell(node, sheet, config) } @@ -251,7 +251,7 @@ export class TableInfo extends S2ChartView { // 总计紧贴在单元格后面 summaryRowStyle(newChart, newData, tableCell, tableHeader, basicStyle.showSummary) // 开启自动换行 - if (basicStyle.autoWrap) { + if (basicStyle.autoWrap && !tableCell.mergeCells) { // 调整表头宽度时,计算表头高度 newChart.on(S2Event.LAYOUT_RESIZE_COL_WIDTH, info => { calculateHeaderHeight(info, newChart, tableHeader, basicStyle, null)