diff --git a/backend/src/main/java/io/dataease/dto/chart/ChartSeniorAssistDTO.java b/backend/src/main/java/io/dataease/dto/chart/ChartSeniorAssistDTO.java
index 20b362e863..073f49ed32 100644
--- a/backend/src/main/java/io/dataease/dto/chart/ChartSeniorAssistDTO.java
+++ b/backend/src/main/java/io/dataease/dto/chart/ChartSeniorAssistDTO.java
@@ -17,4 +17,5 @@ public class ChartSeniorAssistDTO {
private String lineType;
private String color;
private DatasetTableField curField;
+ private String fontSize;
}
diff --git a/backend/src/main/resources/db/migration/V49__1.18.2.sql b/backend/src/main/resources/db/migration/V49__1.18.2.sql
index 71d0e02a1c..0692bc8d37 100644
--- a/backend/src/main/resources/db/migration/V49__1.18.2.sql
+++ b/backend/src/main/resources/db/migration/V49__1.18.2.sql
@@ -2,185 +2,3 @@ UPDATE `my_plugin`
SET `version` = '1.18.2'
where `plugin_id` > 0
and `version` = '1.18.1';
-
-UPDATE `sys_menu`
-SET `pid` = 8
-WHERE `menu_id` = 800;
-
-INSERT INTO `sys_menu` (`menu_id`,
- `pid`,
- `sub_count`,
- `type`,
- `title`,
- `name`,
- `component`,
- `menu_sort`,
- `icon`,
- `path`,
- `i_frame`,
- `cache`,
- `hidden`,
- `permission`,
- `create_by`,
- `update_by`,
- `create_time`,
- `update_time`)
-VALUES (802,
- 0,
- 0,
- 2,
- '视图导出',
- NULL,
- NULL,
- 999,
- NULL,
- NULL,
- 0,
- 0,
- 0,
- 'view:export',
- NULL,
- NULL,
- NULL,
- NULL);
-
-INSERT INTO `sys_auth` (`id`,
- `auth_source`,
- `auth_source_type`,
- `auth_target`,
- `auth_target_type`,
- `auth_time`,
- `auth_details`,
- `auth_user`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('dc3536c2-5193-4fcd-a875-926e3e712344',
- '802',
- 'menu',
- '2',
- 'role',
- 1673405964319,
- NULL,
- 'admin',
- NULL,
- NULL,
- NULL);
-INSERT INTO `sys_auth` (`id`,
- `auth_source`,
- `auth_source_type`,
- `auth_target`,
- `auth_target_type`,
- `auth_time`,
- `auth_details`,
- `auth_user`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('dc7fa546-9ac4-49a7-8af2-152be9fdde68',
- '802',
- 'menu',
- '1',
- 'role',
- 1673405986872,
- NULL,
- 'admin',
- NULL,
- NULL,
- NULL);
-INSERT INTO `sys_auth_detail` (`id`,
- `auth_id`,
- `privilege_name`,
- `privilege_type`,
- `privilege_value`,
- `privilege_extend`,
- `remark`,
- `create_user`,
- `create_time`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('01c6367b-915c-11ed-bd88-0242ac130004',
- 'dc7fa546-9ac4-49a7-8af2-152be9fdde68',
- 'i18n_auth_grant',
- 15,
- 0,
- 'grant',
- '基础权限-授权',
- 'admin',
- 1673405987000,
- NULL,
- NULL,
- NULL);
-INSERT INTO `sys_auth_detail` (`id`,
- `auth_id`,
- `privilege_name`,
- `privilege_type`,
- `privilege_value`,
- `privilege_extend`,
- `remark`,
- `create_user`,
- `create_time`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('01c63c6c-915c-11ed-bd88-0242ac130004',
- 'dc7fa546-9ac4-49a7-8af2-152be9fdde68',
- 'i18n_auth_use',
- 1,
- 1,
- 'use',
- '基础权限-使用',
- 'admin',
- 1673405987000,
- NULL,
- NULL,
- NULL);
-INSERT INTO `sys_auth_detail` (`id`,
- `auth_id`,
- `privilege_name`,
- `privilege_type`,
- `privilege_value`,
- `privilege_extend`,
- `remark`,
- `create_user`,
- `create_time`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('f4559db9-915b-11ed-bd88-0242ac130004',
- 'dc3536c2-5193-4fcd-a875-926e3e712344',
- 'i18n_auth_grant',
- 15,
- 0,
- 'grant',
- '基础权限-授权',
- 'admin',
- 1673405964000,
- NULL,
- NULL,
- NULL);
-INSERT INTO `sys_auth_detail` (`id`,
- `auth_id`,
- `privilege_name`,
- `privilege_type`,
- `privilege_value`,
- `privilege_extend`,
- `remark`,
- `create_user`,
- `create_time`,
- `update_time`,
- `copy_from`,
- `copy_id`)
-VALUES ('f455a074-915b-11ed-bd88-0242ac130004',
- 'dc3536c2-5193-4fcd-a875-926e3e712344',
- 'i18n_auth_use',
- 1,
- 1,
- 'use',
- '基础权限-使用',
- 'admin',
- 1673405964000,
- NULL,
- NULL,
- NULL);
diff --git a/frontend/src/components/canvas/components/editor/Preview.vue b/frontend/src/components/canvas/components/editor/Preview.vue
index 63be1e3724..648499c89c 100644
--- a/frontend/src/components/canvas/components/editor/Preview.vue
+++ b/frontend/src/components/canvas/components/editor/Preview.vue
@@ -120,8 +120,7 @@
{{ $t('chart.export_img') }}
diff --git a/frontend/src/components/canvas/customComponent/UserView.vue b/frontend/src/components/canvas/customComponent/UserView.vue
index 4912efc13a..475fdf50bf 100644
--- a/frontend/src/components/canvas/customComponent/UserView.vue
+++ b/frontend/src/components/canvas/customComponent/UserView.vue
@@ -149,8 +149,7 @@
{{ $t('chart.export_img') }}
diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss
index 1734757d90..ba40852ec5 100644
--- a/frontend/src/styles/index.scss
+++ b/frontend/src/styles/index.scss
@@ -1721,3 +1721,34 @@ div:focus {
display: inline-block;
}
}
+
+.operator-bar {
+ width: 100%;
+ height: 70px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ position: sticky;
+ background: #fff;
+ top: 0;
+ z-index: 15;
+ .title {
+ font-family: PingFang SC;
+ font-size: 16px;
+ font-weight: 500;
+ line-height: 24px;
+ color: #1f2329;
+ }
+}
+
+.el-table-column--selection {
+ .cell {
+ padding: 0 14px !important;
+ }
+}
+
+.dept-popper {
+ .el-tree-node__label {
+ color: var(--deTextPrimary, #1F2329) !important;
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js
index bd6f3c62b4..a2bf9a20e2 100644
--- a/frontend/src/views/chart/chart/chart.js
+++ b/frontend/src/views/chart/chart/chart.js
@@ -1021,6 +1021,7 @@ export const BASE_TREEMAP = {
{
// name: '',
type: 'treemap',
+ roam: true,
itemStyle: {
gapWidth: 2
},
diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue
index fbabbf5240..e3f83c8a0e 100644
--- a/frontend/src/views/chart/components/ChartComponent.vue
+++ b/frontend/src/views/chart/components/ChartComponent.vue
@@ -128,6 +128,7 @@ export default {
showSuspension: true,
currentSeriesId: null,
haveScrollType: [
+ 'treemap',
'map',
'chart-mix',
'bar',
@@ -198,7 +199,13 @@ export default {
if (this.haveScrollType.includes(this.chart.type)) {
const opt = this.myChart.getOption()
this.adaptorOpt(opt)
- this.myChart.setOption(opt)
+ if (this.chart.type === 'treemap') {
+ this.myChart.dispose()
+ this.myChart = null
+ this.preDraw()
+ } else {
+ this.myChart.setOption(opt)
+ }
}
},
adaptorOpt(opt) {
@@ -218,6 +225,10 @@ export default {
opt.geo.roam = this.active
}
}
+ //矩形树图
+ if (this.chart.type === 'treemap' && opt.series) {
+ opt.series[0].roam = this.active
+ }
},
changeSeriesId(param) {
const { id, seriesId } = param
diff --git a/frontend/src/views/dataset/add/AddSQL.vue b/frontend/src/views/dataset/add/AddSQL.vue
index 2aadd10f1c..d3f0f66eba 100644
--- a/frontend/src/views/dataset/add/AddSQL.vue
+++ b/frontend/src/views/dataset/add/AddSQL.vue
@@ -698,17 +698,17 @@ export default {
},
keywords(val) {
if (!val) {
- this.tableDataCopy = [...this.tableData]
- this.fieldDataCopy = [...this.fieldData]
+ this.tableDataCopy = this.arrSort([...this.tableData], 'name')
+ this.fieldDataCopy = this.arrSort([...this.fieldData])
return
}
if (this.dataSource && !this.dataTable) {
- this.tableDataCopy = this.tableData.filter(ele => ele.name.includes(val))
+ this.tableDataCopy = this.arrSort(this.tableData.filter(ele => ele.name.includes(val)), 'name')
}
if (this.dataSource && this.dataTable) {
- this.fieldDataCopy = this.fieldData.filter(ele => ele.fieldName.includes(val))
+ this.fieldDataCopy = this.arrSort(this.fieldData.filter(ele => ele.fieldName.includes(val)))
}
}
},
@@ -760,7 +760,7 @@ export default {
info: JSON.stringify({ table: name })
}).then((res) => {
this.fieldData = res.data
- this.fieldDataCopy = [...this.fieldData]
+ this.fieldDataCopy = this.arrSort([...this.fieldData])
})
.finally(() => {
this.tableLoading = false
@@ -818,12 +818,19 @@ export default {
post('/datasource/getTables/' + this.dataSource, {})
.then((response) => {
this.tableData = response.data
- this.tableDataCopy = [...this.tableData]
+ this.tableDataCopy = this.arrSort([...this.tableData], 'name')
})
.finally(() => {
this.tableLoading = false
})
},
+ arrSort(arr = [], field = 'fieldName') {
+ arr.sort((a, b) => {
+ return a[field][0].toLowerCase().charCodeAt() - b[field][0].toLowerCase().charCodeAt()
+ })
+
+ return arr
+ },
calHeight: _.debounce(function() {
const sqlHeight = Math.max(this.sqlHeight, 248)
const currentHeight = document.documentElement.clientHeight
diff --git a/frontend/src/views/dataset/data/components/filterFiled.vue b/frontend/src/views/dataset/data/components/filterFiled.vue
index 3fcd8a0598..59a5e13847 100644
--- a/frontend/src/views/dataset/data/components/filterFiled.vue
+++ b/frontend/src/views/dataset/data/components/filterFiled.vue
@@ -128,7 +128,7 @@
/>