From 33da6c00d08a95c04070ce16c2d5def4f50b1f1d Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Thu, 29 Jul 2021 10:41:04 +0800
Subject: [PATCH 1/3] =?UTF-8?q?refactor:=E8=8F=9C=E5=8D=95=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6=E5=A2=9E=E5=8A=A0=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E6=A0=87=E5=BF=97=EF=BC=8C=E5=8F=AF=E4=BB=A5=E5=8C=BA=E5=88=86?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=B8=88=E5=82=85=E6=8E=A5=E5=8F=97=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/ext/ExtPluginSysMenuMapper.xml | 4 +-
.../db/migration/V17__update_auth.sql | 174 ++++++++++++++++++
2 files changed, 176 insertions(+), 2 deletions(-)
create mode 100644 backend/src/main/resources/db/migration/V17__update_auth.sql
diff --git a/backend/src/main/java/io/dataease/base/mapper/ext/ExtPluginSysMenuMapper.xml b/backend/src/main/java/io/dataease/base/mapper/ext/ExtPluginSysMenuMapper.xml
index 68dbb73c43..434097863b 100644
--- a/backend/src/main/java/io/dataease/base/mapper/ext/ExtPluginSysMenuMapper.xml
+++ b/backend/src/main/java/io/dataease/base/mapper/ext/ExtPluginSysMenuMapper.xml
@@ -7,9 +7,9 @@
diff --git a/backend/src/main/resources/db/migration/V17__update_auth.sql b/backend/src/main/resources/db/migration/V17__update_auth.sql
new file mode 100644
index 0000000000..182c72d824
--- /dev/null
+++ b/backend/src/main/resources/db/migration/V17__update_auth.sql
@@ -0,0 +1,174 @@
+update sys_menu set i_frame = 0 where menu_id in (1,2,8,10,15,16,17,24,27,28,34,40,58);
+update sys_menu set i_frame = 1 where menu_id not in (1,2,8,10,15,16,17,24,27,28,34,40,58);
+
+
+DROP VIEW
+IF
+ EXISTS `v_auth_model`;
+CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_auth_model` AS SELECT
+`sys_user`.`user_id` AS `id`,
+`sys_user`.`username` AS `name`,
+`sys_user`.`username` AS `label`,
+'0' AS `pid`,
+'leaf' AS `node_type`,
+'user' AS `model_type`,
+'user' AS `model_inner_type`,
+'target' AS `auth_type`,
+`sys_user`.`create_by` AS `create_by`
+FROM
+ `sys_user` UNION ALL
+SELECT
+ `sys_role`.`role_id` AS `id`,
+ `sys_role`.`name` AS `name`,
+ `sys_role`.`name` AS `label`,
+ '0' AS `pid`,
+ 'leaf' AS `node_type`,
+ 'role' AS `model_type`,
+ 'role' AS `model_inner_type`,
+ 'target' AS `auth_type`,
+ `sys_role`.`create_by` AS `create_by`
+FROM
+ `sys_role` UNION ALL
+SELECT
+ `sys_dept`.`dept_id` AS `id`,
+ `sys_dept`.`name` AS `name`,
+ `sys_dept`.`name` AS `lable`,
+ cast( `sys_dept`.`pid` AS CHAR charset utf8mb4 ) AS `pid`,
+IF
+ (( `sys_dept`.`sub_count` = 0 ), 'leaf', 'spine' ) AS `node_type`,
+ 'dept' AS `model_type`,
+ 'dept' AS `model_inner_type`,
+ 'target' AS `auth_type`,
+ `sys_dept`.`create_by` AS `create_by`
+FROM
+ `sys_dept` UNION ALL
+SELECT
+ `datasource`.`id` AS `id`,
+ `datasource`.`name` AS `NAME`,
+ `datasource`.`name` AS `label`,
+ '0' AS `pid`,
+ 'leaf' AS `node_type`,
+ 'link' AS `model_type`,
+ `datasource`.`type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `datasource`.`create_by` AS `create_by`
+FROM
+ `datasource` UNION ALL
+SELECT
+ `dataset_group`.`id` AS `id`,
+ `dataset_group`.`name` AS `NAME`,
+ `dataset_group`.`name` AS `lable`,
+IF
+ ( isnull( `dataset_group`.`pid` ), '0', `dataset_group`.`pid` ) AS `pid`,
+ 'spine' AS `node_type`,
+ 'dataset' AS `model_type`,
+ `dataset_group`.`type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `dataset_group`.`create_by` AS `create_by`
+FROM
+ `dataset_group` UNION ALL
+SELECT
+ `dataset_table`.`id` AS `id`,
+ `dataset_table`.`name` AS `NAME`,
+ `dataset_table`.`name` AS `lable`,
+ `dataset_table`.`scene_id` AS `pid`,
+ 'leaf' AS `node_type`,
+ 'dataset' AS `model_type`,
+ `dataset_table`.`type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `dataset_table`.`create_by` AS `create_by`
+FROM
+ `dataset_table` UNION ALL
+SELECT
+ `chart_group`.`id` AS `id`,
+ `chart_group`.`name` AS `name`,
+ `chart_group`.`name` AS `label`,
+IF
+ ( isnull( `chart_group`.`pid` ), '0', `chart_group`.`pid` ) AS `pid`,
+ 'spine' AS `node_type`,
+ 'chart' AS `model_type`,
+ `chart_group`.`type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `chart_group`.`create_by` AS `create_by`
+FROM
+ `chart_group` UNION ALL
+SELECT
+ `chart_view`.`id` AS `id`,
+ `chart_view`.`name` AS `name`,
+ `chart_view`.`name` AS `label`,
+ `chart_view`.`scene_id` AS `pid`,
+ 'leaf' AS `node_type`,
+ 'chart' AS `model_type`,
+ `chart_view`.`type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `chart_view`.`create_by` AS `create_by`
+FROM
+ `chart_view` UNION ALL
+SELECT
+ `panel_group`.`id` AS `id`,
+ `panel_group`.`name` AS `NAME`,
+ `panel_group`.`name` AS `label`,(
+ CASE
+ `panel_group`.`id`
+ WHEN 'panel_list' THEN
+ '0'
+ WHEN 'default_panel' THEN
+ '0' ELSE `panel_group`.`pid`
+ END
+ ) AS `pid`,
+ IF
+ (( `panel_group`.`node_type` = 'folder' ), 'spine', 'leaf' ) AS `node_type`,
+ 'panel' AS `model_type`,
+ `panel_group`.`panel_type` AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `panel_group`.`create_by` AS `create_by`
+ FROM
+ `panel_group` UNION ALL
+ SELECT
+ `sys_menu`.`menu_id` AS `menu_id`,
+ `sys_menu`.`title` AS `name`,
+ `sys_menu`.`title` AS `label`,
+ `sys_menu`.`pid` AS `pid`,
+ IF
+ (( `sys_menu`.`sub_count` > 0 ), 'spine', 'leaf' ) AS `node_type`,
+ 'menu' AS `model_type`,(
+ CASE
+ `sys_menu`.`type`
+ WHEN 0 THEN
+ 'folder'
+ WHEN 1 THEN
+ 'menu'
+ WHEN 2 THEN
+ 'button'
+ END
+ ) AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `sys_menu`.`create_by` AS `create_by`
+ FROM
+ `sys_menu`
+ WHERE
+ (sys_menu.i_frame !=1 or sys_menu.i_frame is null) UNION ALL
+ SELECT
+ `plugin_sys_menu`.`menu_id` AS `menu_id`,
+ `plugin_sys_menu`.`title` AS `name`,
+ `plugin_sys_menu`.`title` AS `label`,
+ `plugin_sys_menu`.`pid` AS `pid`,
+ IF
+ (( `plugin_sys_menu`.`sub_count` > 0 ), 'spine', 'leaf' ) AS `node_type`,
+ 'menu' AS `model_type`,(
+ CASE
+ `plugin_sys_menu`.`type`
+ WHEN 0 THEN
+ 'folder'
+ WHEN 1 THEN
+ 'menu'
+ WHEN 2 THEN
+ 'button'
+ END
+ ) AS `model_inner_type`,
+ 'source' AS `auth_type`,
+ `plugin_sys_menu`.`create_by` AS `create_by`
+ FROM
+ `plugin_sys_menu`
+ WHERE
+ (plugin_sys_menu.i_frame !=1 or plugin_sys_menu.i_frame is null);
From 6a29e2b45c02facad509abfbfd3202d300ffca3c Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Thu, 29 Jul 2021 10:52:44 +0800
Subject: [PATCH 2/3] =?UTF-8?q?refactor:=E8=B0=83=E6=95=B4flyway?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../db/migration/V17__update_auth.sql | 174 ------------------
.../db/migration/V18__area_mapping.sql | 3 +
2 files changed, 3 insertions(+), 174 deletions(-)
delete mode 100644 backend/src/main/resources/db/migration/V17__update_auth.sql
diff --git a/backend/src/main/resources/db/migration/V17__update_auth.sql b/backend/src/main/resources/db/migration/V17__update_auth.sql
deleted file mode 100644
index 182c72d824..0000000000
--- a/backend/src/main/resources/db/migration/V17__update_auth.sql
+++ /dev/null
@@ -1,174 +0,0 @@
-update sys_menu set i_frame = 0 where menu_id in (1,2,8,10,15,16,17,24,27,28,34,40,58);
-update sys_menu set i_frame = 1 where menu_id not in (1,2,8,10,15,16,17,24,27,28,34,40,58);
-
-
-DROP VIEW
-IF
- EXISTS `v_auth_model`;
-CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_auth_model` AS SELECT
-`sys_user`.`user_id` AS `id`,
-`sys_user`.`username` AS `name`,
-`sys_user`.`username` AS `label`,
-'0' AS `pid`,
-'leaf' AS `node_type`,
-'user' AS `model_type`,
-'user' AS `model_inner_type`,
-'target' AS `auth_type`,
-`sys_user`.`create_by` AS `create_by`
-FROM
- `sys_user` UNION ALL
-SELECT
- `sys_role`.`role_id` AS `id`,
- `sys_role`.`name` AS `name`,
- `sys_role`.`name` AS `label`,
- '0' AS `pid`,
- 'leaf' AS `node_type`,
- 'role' AS `model_type`,
- 'role' AS `model_inner_type`,
- 'target' AS `auth_type`,
- `sys_role`.`create_by` AS `create_by`
-FROM
- `sys_role` UNION ALL
-SELECT
- `sys_dept`.`dept_id` AS `id`,
- `sys_dept`.`name` AS `name`,
- `sys_dept`.`name` AS `lable`,
- cast( `sys_dept`.`pid` AS CHAR charset utf8mb4 ) AS `pid`,
-IF
- (( `sys_dept`.`sub_count` = 0 ), 'leaf', 'spine' ) AS `node_type`,
- 'dept' AS `model_type`,
- 'dept' AS `model_inner_type`,
- 'target' AS `auth_type`,
- `sys_dept`.`create_by` AS `create_by`
-FROM
- `sys_dept` UNION ALL
-SELECT
- `datasource`.`id` AS `id`,
- `datasource`.`name` AS `NAME`,
- `datasource`.`name` AS `label`,
- '0' AS `pid`,
- 'leaf' AS `node_type`,
- 'link' AS `model_type`,
- `datasource`.`type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `datasource`.`create_by` AS `create_by`
-FROM
- `datasource` UNION ALL
-SELECT
- `dataset_group`.`id` AS `id`,
- `dataset_group`.`name` AS `NAME`,
- `dataset_group`.`name` AS `lable`,
-IF
- ( isnull( `dataset_group`.`pid` ), '0', `dataset_group`.`pid` ) AS `pid`,
- 'spine' AS `node_type`,
- 'dataset' AS `model_type`,
- `dataset_group`.`type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `dataset_group`.`create_by` AS `create_by`
-FROM
- `dataset_group` UNION ALL
-SELECT
- `dataset_table`.`id` AS `id`,
- `dataset_table`.`name` AS `NAME`,
- `dataset_table`.`name` AS `lable`,
- `dataset_table`.`scene_id` AS `pid`,
- 'leaf' AS `node_type`,
- 'dataset' AS `model_type`,
- `dataset_table`.`type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `dataset_table`.`create_by` AS `create_by`
-FROM
- `dataset_table` UNION ALL
-SELECT
- `chart_group`.`id` AS `id`,
- `chart_group`.`name` AS `name`,
- `chart_group`.`name` AS `label`,
-IF
- ( isnull( `chart_group`.`pid` ), '0', `chart_group`.`pid` ) AS `pid`,
- 'spine' AS `node_type`,
- 'chart' AS `model_type`,
- `chart_group`.`type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `chart_group`.`create_by` AS `create_by`
-FROM
- `chart_group` UNION ALL
-SELECT
- `chart_view`.`id` AS `id`,
- `chart_view`.`name` AS `name`,
- `chart_view`.`name` AS `label`,
- `chart_view`.`scene_id` AS `pid`,
- 'leaf' AS `node_type`,
- 'chart' AS `model_type`,
- `chart_view`.`type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `chart_view`.`create_by` AS `create_by`
-FROM
- `chart_view` UNION ALL
-SELECT
- `panel_group`.`id` AS `id`,
- `panel_group`.`name` AS `NAME`,
- `panel_group`.`name` AS `label`,(
- CASE
- `panel_group`.`id`
- WHEN 'panel_list' THEN
- '0'
- WHEN 'default_panel' THEN
- '0' ELSE `panel_group`.`pid`
- END
- ) AS `pid`,
- IF
- (( `panel_group`.`node_type` = 'folder' ), 'spine', 'leaf' ) AS `node_type`,
- 'panel' AS `model_type`,
- `panel_group`.`panel_type` AS `model_inner_type`,
- 'source' AS `auth_type`,
- `panel_group`.`create_by` AS `create_by`
- FROM
- `panel_group` UNION ALL
- SELECT
- `sys_menu`.`menu_id` AS `menu_id`,
- `sys_menu`.`title` AS `name`,
- `sys_menu`.`title` AS `label`,
- `sys_menu`.`pid` AS `pid`,
- IF
- (( `sys_menu`.`sub_count` > 0 ), 'spine', 'leaf' ) AS `node_type`,
- 'menu' AS `model_type`,(
- CASE
- `sys_menu`.`type`
- WHEN 0 THEN
- 'folder'
- WHEN 1 THEN
- 'menu'
- WHEN 2 THEN
- 'button'
- END
- ) AS `model_inner_type`,
- 'source' AS `auth_type`,
- `sys_menu`.`create_by` AS `create_by`
- FROM
- `sys_menu`
- WHERE
- (sys_menu.i_frame !=1 or sys_menu.i_frame is null) UNION ALL
- SELECT
- `plugin_sys_menu`.`menu_id` AS `menu_id`,
- `plugin_sys_menu`.`title` AS `name`,
- `plugin_sys_menu`.`title` AS `label`,
- `plugin_sys_menu`.`pid` AS `pid`,
- IF
- (( `plugin_sys_menu`.`sub_count` > 0 ), 'spine', 'leaf' ) AS `node_type`,
- 'menu' AS `model_type`,(
- CASE
- `plugin_sys_menu`.`type`
- WHEN 0 THEN
- 'folder'
- WHEN 1 THEN
- 'menu'
- WHEN 2 THEN
- 'button'
- END
- ) AS `model_inner_type`,
- 'source' AS `auth_type`,
- `plugin_sys_menu`.`create_by` AS `create_by`
- FROM
- `plugin_sys_menu`
- WHERE
- (plugin_sys_menu.i_frame !=1 or plugin_sys_menu.i_frame is null);
diff --git a/backend/src/main/resources/db/migration/V18__area_mapping.sql b/backend/src/main/resources/db/migration/V18__area_mapping.sql
index c284a85698..de30335fc4 100644
--- a/backend/src/main/resources/db/migration/V18__area_mapping.sql
+++ b/backend/src/main/resources/db/migration/V18__area_mapping.sql
@@ -1,3 +1,6 @@
+ALTER TABLE `chart_view` ADD COLUMN `ext_stack` LONGTEXT COMMENT '堆叠项' AFTER `y_axis`;
+UPDATE `chart_view` SET `ext_stack` = '[]';
+
/*
Navicat Premium Data Transfer
From 7f2751dcba180979eccf1c55c79baefe19da41cd Mon Sep 17 00:00:00 2001
From: fit2cloud-chenyw
Date: Thu, 29 Jul 2021 11:09:36 +0800
Subject: [PATCH 3/3] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E6=95=B0?=
=?UTF-8?q?=E5=AD=97=E5=8C=BA=E9=97=B4=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/DeDrag/index.vue | 2 +-
frontend/src/components/dataease/DeOutWidget.vue | 5 +++--
frontend/src/views/panel/filter/index.vue | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue
index 91a53a6c3b..d45a63efff 100644
--- a/frontend/src/components/DeDrag/index.vue
+++ b/frontend/src/components/DeDrag/index.vue
@@ -1463,7 +1463,7 @@ export default {
// 记录当前样式 矩阵处理
recordMatrixCurStyle() {
- debugger
+ // debugger
const left = Math.round(this.left / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth
const top = Math.round(this.top / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight
const width = Math.round(this.width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth
diff --git a/frontend/src/components/dataease/DeOutWidget.vue b/frontend/src/components/dataease/DeOutWidget.vue
index 223b91fd83..7ce1807214 100644
--- a/frontend/src/components/dataease/DeOutWidget.vue
+++ b/frontend/src/components/dataease/DeOutWidget.vue
@@ -151,8 +151,7 @@ export default {
}
.first-element-contaner {
width: calc(100% - 10px);
- background: #fff;
- border: 1px solid #d7dae2;
+ background: initial;
position:absolute;
bottom: 5px;
margin: 0 4px;
@@ -161,6 +160,8 @@ export default {
}
}
.first-element-grid-contaner {
+ background: #fff;
+ border: 1px solid #d7dae2;
top: 5px;
}
.condition-main-line {
diff --git a/frontend/src/views/panel/filter/index.vue b/frontend/src/views/panel/filter/index.vue
index 8f4a442542..1f602f894b 100644
--- a/frontend/src/views/panel/filter/index.vue
+++ b/frontend/src/views/panel/filter/index.vue
@@ -232,7 +232,7 @@ export default {
height: 24px;
position: relative;
flex-shrink: 0;
- font-size: 24px;
+ font-size: 24px !important;
margin: auto;
font-family: fineui;
font-style: normal;