Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5edb7dad
Unverified
提交
5edb7dad
authored
9月 01, 2021
作者:
王嘉豪
提交者:
GitHub
9月 01, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #744 from dataease/v1.2
V1.2
上级
cbb574d4
06145622
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
132 行增加
和
54 行删除
+132
-54
ExtPanelViewMapper.xml
...n/java/io/dataease/base/mapper/ext/ExtPanelViewMapper.xml
+2
-2
V25__add_auth.sql
backend/src/main/resources/db/migration/V25__add_auth.sql
+69
-0
package.json
frontend/package.json
+1
-1
index.vue
frontend/src/components/DeDrag/index.vue
+1
-1
ContextMenu.vue
...d/src/components/canvas/components/Editor/ContextMenu.vue
+6
-6
SettingMenu.vue
...d/src/components/canvas/components/Editor/SettingMenu.vue
+6
-6
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+11
-11
FilterTextAttr.vue
frontend/src/components/canvas/components/FilterTextAttr.vue
+1
-2
RectangleAttr.vue
frontend/src/components/canvas/components/RectangleAttr.vue
+1
-1
TextAttr.vue
frontend/src/components/canvas/components/TextAttr.vue
+1
-1
Toolbar.vue
frontend/src/components/canvas/components/Toolbar.vue
+4
-4
VText.vue
frontend/src/components/canvas/custom-component/VText.vue
+1
-0
index.vue
frontend/src/components/canvas/index.vue
+1
-1
snapshot.js
frontend/src/components/canvas/store/snapshot.js
+5
-0
DeDate.vue
frontend/src/components/widget/DeWidget/DeDate.vue
+1
-1
DeNumberRange.vue
frontend/src/components/widget/DeWidget/DeNumberRange.vue
+2
-2
DeSelect.vue
frontend/src/components/widget/DeWidget/DeSelect.vue
+1
-1
DeSelectGrid.vue
frontend/src/components/widget/DeWidget/DeSelectGrid.vue
+1
-1
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+4
-1
QuotaItem.vue
frontend/src/views/chart/components/drag-item/QuotaItem.vue
+1
-1
index.vue
frontend/src/views/panel/AssistComponent/index.vue
+1
-1
BackgroundSelector.vue
...ws/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
+1
-1
ComponentGap.vue
...rc/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue
+1
-1
SubjectTemplateItem.vue
...s/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
+1
-1
index.vue
frontend/src/views/panel/SubjectSetting/index.vue
+1
-1
index.vue
frontend/src/views/panel/edit/index.vue
+7
-6
没有找到文件。
backend/src/main/java/io/dataease/base/mapper/ext/ExtPanelViewMapper.xml
浏览文件 @
5edb7dad
...
...
@@ -17,7 +17,7 @@
<where>
FIND_IN_SET(chart_group.id,cids)
</where>
order by
create_time de
sc
order by
`type` desc,name a
sc
</select>
...
...
@@ -27,7 +27,7 @@
<where>
FIND_IN_SET(chart_view.id,cids)
</where>
order by
create_time de
sc
order by
`type` desc,name a
sc
</select>
...
...
backend/src/main/resources/db/migration/V25__add_auth.sql
浏览文件 @
5edb7dad
...
...
@@ -383,3 +383,72 @@ INSERT INTO `sys_auth_detail` (`id`, `auth_id`, `privilege_name`, `privilege_typ
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dc1d32ff-064a-11ec-a2b0-0242ac130003'
,
'd78c6e77-9cc7-44f8-a730-32ca6ca33f60'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1629967913000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dc1d3358-064a-11ec-a2b0-0242ac130003'
,
'd78c6e77-9cc7-44f8-a730-32ca6ca33f60'
,
'i18n_auth_manage'
,
5
,
0
,
'manage'
,
'基础权限-管理'
,
'admin'
,
1629967913000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dc1d33a4-064a-11ec-a2b0-0242ac130003'
,
'd78c6e77-9cc7-44f8-a730-32ca6ca33f60'
,
'i18n_auth_view'
,
1
,
1
,
'view'
,
'基础权限-查看'
,
'admin'
,
1629967913000
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'00590a7c-8e7b-45f4-8428-55532be07602'
,
'10'
,
'menu'
,
'1'
,
'role'
,
1630482462199
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'06ba0edb-143d-4b51-a864-8cfcf2b5d71e'
,
'1'
,
'menu'
,
'1'
,
'role'
,
1630482426344
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'1a18aa12-8daa-4f47-b5eb-999e473273df'
,
'6'
,
'menu'
,
'1'
,
'role'
,
1630482450994
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'1bf39d8d-7fe9-4832-8df3-f74b21a69288'
,
'4'
,
'menu'
,
'1'
,
'role'
,
1630482450458
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'359771bb-95b8-40ad-a6c5-b5c39c93cb10'
,
'24'
,
'menu'
,
'1'
,
'role'
,
1630482459156
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'5960fd93-013c-4636-8f6b-2e6b49b7e869'
,
'5'
,
'menu'
,
'1'
,
'role'
,
1630482450626
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'5e0a9ad5-81ed-4f83-91f6-a74be724bda7'
,
'23'
,
'menu'
,
'1'
,
'role'
,
1630482452131
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'5ec5c9a7-04c0-4655-9b63-9ca5a439e2f3'
,
'18'
,
'menu'
,
'1'
,
'role'
,
1630482451166
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'60b3644b-2493-4805-8204-90880cfac9c6'
,
'8'
,
'menu'
,
'1'
,
'role'
,
1630482460538
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'74ff225f-2a79-4221-9b32-c6eb9bcadd61'
,
'19'
,
'menu'
,
'1'
,
'role'
,
1630482451329
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'7823499e-dbb6-42a9-a28f-22377de18a39'
,
'40'
,
'menu'
,
'1'
,
'role'
,
1630482427369
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'88c778e6-ede3-4397-af4c-375e1feac8ef'
,
'41'
,
'menu'
,
'1'
,
'role'
,
1630482452340
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'998e402b-6f15-48dc-ae4d-2cd04460a3f3'
,
'15'
,
'menu'
,
'1'
,
'role'
,
1630482426695
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'9f01c7ef-753b-4dea-97d4-c199f84c2c74'
,
'17'
,
'menu'
,
'1'
,
'role'
,
1630482427049
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'a6837d68-80a6-4a26-a7c0-e84001dfc817'
,
'34'
,
'menu'
,
'1'
,
'role'
,
1630482458991
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'b319dc39-c499-423b-8e99-22e9a0caba6f'
,
'58'
,
'menu'
,
'1'
,
'role'
,
1630482427545
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'bdd3bed8-35d4-4aa8-84c2-85e2412d6cbb'
,
'2'
,
'menu'
,
'1'
,
'role'
,
1630482426513
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'c18b47e9-aa22-4f17-b12c-a3459ca4dd90'
,
'28'
,
'menu'
,
'1'
,
'role'
,
1630482427208
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'd3d558e5-b0b1-4475-bb69-f20fa5c47f4f'
,
'22'
,
'menu'
,
'1'
,
'role'
,
1630482451962
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'd400c00f-9c18-4eb6-a70f-9c8caf8dddfe'
,
'21'
,
'menu'
,
'1'
,
'role'
,
1630482451749
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'd8d18115-c7b9-4e99-96a8-fd1bbfddf543'
,
'16'
,
'menu'
,
'1'
,
'role'
,
1630482426857
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth`
(
`id`
,
`auth_source`
,
`auth_source_type`
,
`auth_target`
,
`auth_target_type`
,
`auth_time`
,
`auth_details`
,
`auth_user`
,
`update_time`
)
VALUES
(
'f17dc7f3-c97a-41b4-a2f4-1a04a857ae8a'
,
'20'
,
'menu'
,
'1'
,
'role'
,
1630482451497
,
NULL
,
'admin'
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf3c570c-0af8-11ec-a2b0-0242ac130003'
,
'06ba0edb-143d-4b51-a864-8cfcf2b5d71e'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482428000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf3c59d1-0af8-11ec-a2b0-0242ac130003'
,
'06ba0edb-143d-4b51-a864-8cfcf2b5d71e'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482428000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf573296-0af8-11ec-a2b0-0242ac130003'
,
'bdd3bed8-35d4-4aa8-84c2-85e2412d6cbb'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482428000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf57354a-0af8-11ec-a2b0-0242ac130003'
,
'bdd3bed8-35d4-4aa8-84c2-85e2412d6cbb'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482428000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf705f77-0af8-11ec-a2b0-0242ac130003'
,
'998e402b-6f15-48dc-ae4d-2cd04460a3f3'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf7061d1-0af8-11ec-a2b0-0242ac130003'
,
'998e402b-6f15-48dc-ae4d-2cd04460a3f3'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf8b490d-0af8-11ec-a2b0-0242ac130003'
,
'd8d18115-c7b9-4e99-96a8-fd1bbfddf543'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cf8b4b35-0af8-11ec-a2b0-0242ac130003'
,
'd8d18115-c7b9-4e99-96a8-fd1bbfddf543'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfa66a8d-0af8-11ec-a2b0-0242ac130003'
,
'9f01c7ef-753b-4dea-97d4-c199f84c2c74'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfa66ca4-0af8-11ec-a2b0-0242ac130003'
,
'9f01c7ef-753b-4dea-97d4-c199f84c2c74'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfbf0608-0af8-11ec-a2b0-0242ac130003'
,
'c18b47e9-aa22-4f17-b12c-a3459ca4dd90'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfbf0839-0af8-11ec-a2b0-0242ac130003'
,
'c18b47e9-aa22-4f17-b12c-a3459ca4dd90'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfd814bc-0af8-11ec-a2b0-0242ac130003'
,
'7823499e-dbb6-42a9-a28f-22377de18a39'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cfd816d7-0af8-11ec-a2b0-0242ac130003'
,
'7823499e-dbb6-42a9-a28f-22377de18a39'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cff28219-0af8-11ec-a2b0-0242ac130003'
,
'b319dc39-c499-423b-8e99-22e9a0caba6f'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'cff28507-0af8-11ec-a2b0-0242ac130003'
,
'b319dc39-c499-423b-8e99-22e9a0caba6f'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482429000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dd9ba5c6-0af8-11ec-a2b0-0242ac130003'
,
'1bf39d8d-7fe9-4832-8df3-f74b21a69288'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482452000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dd9ba7e8-0af8-11ec-a2b0-0242ac130003'
,
'1bf39d8d-7fe9-4832-8df3-f74b21a69288'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482452000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'ddb3094b-0af8-11ec-a2b0-0242ac130003'
,
'5960fd93-013c-4636-8f6b-2e6b49b7e869'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482452000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'ddb30bd2-0af8-11ec-a2b0-0242ac130003'
,
'5960fd93-013c-4636-8f6b-2e6b49b7e869'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482452000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'ddec6eab-0af8-11ec-a2b0-0242ac130003'
,
'1a18aa12-8daa-4f47-b5eb-999e473273df'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'ddeccfa8-0af8-11ec-a2b0-0242ac130003'
,
'1a18aa12-8daa-4f47-b5eb-999e473273df'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de0719cb-0af8-11ec-a2b0-0242ac130003'
,
'5ec5c9a7-04c0-4655-9b63-9ca5a439e2f3'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de071bd9-0af8-11ec-a2b0-0242ac130003'
,
'5ec5c9a7-04c0-4655-9b63-9ca5a439e2f3'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de202758-0af8-11ec-a2b0-0242ac130003'
,
'74ff225f-2a79-4221-9b32-c6eb9bcadd61'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de202961-0af8-11ec-a2b0-0242ac130003'
,
'74ff225f-2a79-4221-9b32-c6eb9bcadd61'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de42f5ec-0af8-11ec-a2b0-0242ac130003'
,
'f17dc7f3-c97a-41b4-a2f4-1a04a857ae8a'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de42f8b4-0af8-11ec-a2b0-0242ac130003'
,
'f17dc7f3-c97a-41b4-a2f4-1a04a857ae8a'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482453000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de65f6d9-0af8-11ec-a2b0-0242ac130003'
,
'd400c00f-9c18-4eb6-a70f-9c8caf8dddfe'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de65fa72-0af8-11ec-a2b0-0242ac130003'
,
'd400c00f-9c18-4eb6-a70f-9c8caf8dddfe'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de80ddc9-0af8-11ec-a2b0-0242ac130003'
,
'd3d558e5-b0b1-4475-bb69-f20fa5c47f4f'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de80e001-0af8-11ec-a2b0-0242ac130003'
,
'd3d558e5-b0b1-4475-bb69-f20fa5c47f4f'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de9f30cd-0af8-11ec-a2b0-0242ac130003'
,
'5e0a9ad5-81ed-4f83-91f6-a74be724bda7'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'de9f32d3-0af8-11ec-a2b0-0242ac130003'
,
'5e0a9ad5-81ed-4f83-91f6-a74be724bda7'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dec15e1b-0af8-11ec-a2b0-0242ac130003'
,
'88c778e6-ede3-4397-af4c-375e1feac8ef'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'dec16031-0af8-11ec-a2b0-0242ac130003'
,
'88c778e6-ede3-4397-af4c-375e1feac8ef'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482454000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e2b029b9-0af8-11ec-a2b0-0242ac130003'
,
'a6837d68-80a6-4a26-a7c0-e84001dfc817'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482461000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e2b02bcb-0af8-11ec-a2b0-0242ac130003'
,
'a6837d68-80a6-4a26-a7c0-e84001dfc817'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482461000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e2c9aba7-0af8-11ec-a2b0-0242ac130003'
,
'359771bb-95b8-40ad-a6c5-b5c39c93cb10'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482461000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e2c9adc8-0af8-11ec-a2b0-0242ac130003'
,
'359771bb-95b8-40ad-a6c5-b5c39c93cb10'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482461000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e39cb3fe-0af8-11ec-a2b0-0242ac130003'
,
'60b3644b-2493-4805-8204-90880cfac9c6'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482462000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e39cb619-0af8-11ec-a2b0-0242ac130003'
,
'60b3644b-2493-4805-8204-90880cfac9c6'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482462000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e49bef48-0af8-11ec-a2b0-0242ac130003'
,
'00590a7c-8e7b-45f4-8428-55532be07602'
,
'i18n_auth_grant'
,
15
,
0
,
'grant'
,
'基础权限-授权'
,
'admin'
,
1630482464000
,
NULL
);
INSERT
INTO
`sys_auth_detail`
(
`id`
,
`auth_id`
,
`privilege_name`
,
`privilege_type`
,
`privilege_value`
,
`privilege_extend`
,
`remark`
,
`create_user`
,
`create_time`
,
`update_time`
)
VALUES
(
'e49bf17e-0af8-11ec-a2b0-0242ac130003'
,
'00590a7c-8e7b-45f4-8428-55532be07602'
,
'i18n_auth_use'
,
1
,
1
,
'use'
,
'基础权限-使用'
,
'admin'
,
1630482464000
,
NULL
);
frontend/package.json
浏览文件 @
5edb7dad
...
...
@@ -42,7 +42,7 @@
"vue-axios"
:
"3.2.4"
,
"vue-clipboard2"
:
"0.3.1"
,
"vue-codemirror"
:
"^4.0.6"
,
"vue-fullscreen"
:
"^2.5.
1
"
,
"vue-fullscreen"
:
"^2.5.
2
"
,
"vue-i18n"
:
"7.3.2"
,
"vue-router"
:
"3.0.6"
,
"vue-uuid"
:
"2.0.2"
,
...
...
frontend/src/components/DeDrag/index.vue
浏览文件 @
5edb7dad
...
...
@@ -1176,7 +1176,7 @@ export default {
if
(
this
.
canvasStyleData
.
auxiliaryMatrix
)
{
this
.
recordMatrixCurStyle
()
}
this
.
hasMove
&&
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
hasMove
&&
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleUp'
)
// 记录snapshot后 移动已记录设置为false
this
.
hasMove
=
false
...
...
frontend/src/components/canvas/components/Editor/ContextMenu.vue
浏览文件 @
5edb7dad
...
...
@@ -87,13 +87,13 @@ export default {
paste
()
{
this
.
$store
.
commit
(
'paste'
,
true
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'paste'
)
},
deleteComponent
()
{
this
.
deleteCurCondition
()
this
.
$store
.
commit
(
'deleteComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'deleteComponent'
)
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
null
,
index
:
null
})
},
...
...
@@ -106,22 +106,22 @@ export default {
upComponent
()
{
this
.
$store
.
commit
(
'upComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'upComponent'
)
},
downComponent
()
{
this
.
$store
.
commit
(
'downComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'downComponent'
)
},
topComponent
()
{
this
.
$store
.
commit
(
'topComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'topComponent'
)
},
bottomComponent
()
{
this
.
$store
.
commit
(
'bottomComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'bottomComponent'
)
}
}
}
...
...
frontend/src/components/canvas/components/Editor/SettingMenu.vue
浏览文件 @
5edb7dad
...
...
@@ -86,13 +86,13 @@ export default {
paste
()
{
this
.
$store
.
commit
(
'paste'
,
true
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'paste'
)
},
deleteComponent
()
{
this
.
deleteCurCondition
()
this
.
$store
.
commit
(
'deleteComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'deleteComponent'
)
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
null
,
index
:
null
})
},
...
...
@@ -105,22 +105,22 @@ export default {
upComponent
()
{
this
.
$store
.
commit
(
'upComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'upComponent'
)
},
downComponent
()
{
this
.
$store
.
commit
(
'downComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'downComponent'
)
},
topComponent
()
{
this
.
$store
.
commit
(
'topComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'topComponent'
)
},
bottomComponent
()
{
this
.
$store
.
commit
(
'bottomComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'bottomComponent'
)
},
linkageSetting
()
{
debugger
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
5edb7dad
...
...
@@ -292,17 +292,17 @@ export default {
},
deep
:
true
},
canvasStyleData
:
{
handler
(
newVal
,
oldVla
)
{
// 第一次变化 不需要 重置边界 待改进
if
(
this
.
changeIndex
++
>
0
)
{
this
.
resizeParentBounds
()
this
.
$store
.
state
.
styleChangeTimes
++
}
// this.changeScale()
},
deep
:
true
},
//
canvasStyleData: {
//
handler(newVal, oldVla) {
//
// 第一次变化 不需要 重置边界 待改进
//
if (this.changeIndex++ > 0) {
// //
this.resizeParentBounds()
//
this.$store.state.styleChangeTimes++
//
}
//
// this.changeScale()
//
},
//
deep: true
//
},
componentData
:
{
handler
(
newVal
,
oldVla
)
{
// console.log('11111')
...
...
frontend/src/components/canvas/components/FilterTextAttr.vue
浏览文件 @
5edb7dad
...
...
@@ -154,8 +154,7 @@ export default {
}
},
styleChange
()
{
debugger
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
...
...
frontend/src/components/canvas/components/RectangleAttr.vue
浏览文件 @
5edb7dad
...
...
@@ -206,7 +206,7 @@ export default {
}
},
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
...
...
frontend/src/components/canvas/components/TextAttr.vue
浏览文件 @
5edb7dad
...
...
@@ -189,7 +189,7 @@ export default {
}
},
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
...
...
frontend/src/components/canvas/components/Toolbar.vue
浏览文件 @
5edb7dad
...
...
@@ -214,12 +214,12 @@ export default {
compose
()
{
this
.
$store
.
commit
(
'compose'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'compose'
)
},
decompose
()
{
this
.
$store
.
commit
(
'decompose'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'decompose'
)
},
undo
()
{
...
...
@@ -267,7 +267,7 @@ export default {
}
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleFileChange'
)
}
img
.
src
=
fileResult
...
...
@@ -306,7 +306,7 @@ export default {
clearCanvas
()
{
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'clearCanvas'
)
},
handlePreviewChange
()
{
...
...
frontend/src/components/canvas/custom-component/VText.vue
浏览文件 @
5edb7dad
...
...
@@ -67,6 +67,7 @@ export default {
methods
:
{
handleInput
(
e
)
{
this
.
$emit
(
'input'
,
this
.
element
,
e
.
target
.
innerHTML
)
this
.
$store
.
commit
(
'recordStyleChange'
)
},
handleKeydown
(
e
)
{
...
...
frontend/src/components/canvas/index.vue
浏览文件 @
5edb7dad
...
...
@@ -96,7 +96,7 @@ export default {
component
.
style
.
left
=
e
.
offsetX
component
.
id
=
generateID
()
this
.
$store
.
commit
(
'addComponent'
,
{
component
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleDrop'
)
},
handleDragOver
(
e
)
{
...
...
frontend/src/components/canvas/store/snapshot.js
浏览文件 @
5edb7dad
...
...
@@ -52,6 +52,11 @@ export default {
refreshSaveStatus
(
state
)
{
state
.
changeTimes
=
0
state
.
lastSaveSnapshotIndex
=
deepCopy
(
state
.
snapshotIndex
)
},
recordStyleChange
(
state
)
{
if
(
state
.
curComponent
)
{
state
.
styleChangeTimes
++
}
}
}
}
frontend/src/components/widget/DeWidget/DeDate.vue
浏览文件 @
5edb7dad
...
...
@@ -86,7 +86,7 @@ export default {
}
},
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
...
...
frontend/src/components/widget/DeWidget/DeNumberRange.vue
浏览文件 @
5edb7dad
...
...
@@ -142,7 +142,7 @@ export default {
}
this
.
setCondition
()
this
.
styleChange
(
)
this
.
$store
.
commit
(
'recordStyleChange'
)
})
},
setCondition
()
{
...
...
@@ -177,7 +177,7 @@ export default {
}
},
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
...
...
frontend/src/components/widget/DeWidget/DeSelect.vue
浏览文件 @
5edb7dad
...
...
@@ -104,7 +104,7 @@ export default {
this
.
inDraw
&&
this
.
$store
.
commit
(
'addViewFilter'
,
param
)
},
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
...
...
frontend/src/components/widget/DeWidget/DeSelectGrid.vue
浏览文件 @
5edb7dad
...
...
@@ -211,7 +211,7 @@ export default {
// return data[this.defaultProp.label].indexOf(value) !== -1
// },
styleChange
()
{
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
...
...
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
5edb7dad
...
...
@@ -241,7 +241,10 @@ export default {
trackClick
(
trackAction
)
{
const
param
=
this
.
pointParam
if
(
!
param
||
!
param
.
data
||
!
param
.
data
.
dimensionList
)
{
this
.
$warning
(
this
.
$t
(
'panel.no_drill_field'
))
// 地图提示没有关联字段 其他没有维度信息的 直接返回
if
(
this
.
chart
.
type
===
'map'
)
{
this
.
$warning
(
this
.
$t
(
'panel.no_drill_field'
))
}
return
}
const
linkageParam
=
{
...
...
frontend/src/views/chart/components/drag-item/QuotaItem.vue
浏览文件 @
5edb7dad
...
...
@@ -274,7 +274,7 @@ export default {
.item-span-style
{
display
:
inline-block
;
width
:
7
0px
;
width
:
8
0px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
...
...
frontend/src/views/panel/AssistComponent/index.vue
浏览文件 @
5edb7dad
...
...
@@ -115,7 +115,7 @@ export default {
}
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleFileChange'
)
}
img
.
src
=
fileResult
...
...
frontend/src/views/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
浏览文件 @
5edb7dad
...
...
@@ -80,7 +80,7 @@ export default {
const
canvasStyleData
=
deepCopy
(
this
.
canvasStyleData
)
canvasStyleData
.
panel
=
this
.
panel
this
.
$store
.
commit
(
'setCanvasStyle'
,
canvasStyleData
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'commitStyle'
)
},
onChangeType
()
{
this
.
commitStyle
()
...
...
frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue
浏览文件 @
5edb7dad
...
...
@@ -44,7 +44,7 @@ export default {
const
canvasStyleData
=
deepCopy
(
this
.
canvasStyleData
)
canvasStyleData
.
panel
=
this
.
panel
this
.
$store
.
commit
(
'setCanvasStyle'
,
canvasStyleData
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'onChangePanelStyle'
)
}
}
}
...
...
frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
浏览文件 @
5edb7dad
...
...
@@ -189,7 +189,7 @@ export default {
},
subjectChange
()
{
this
.
$store
.
commit
(
'setCanvasStyle'
,
JSON
.
parse
(
this
.
subjectItem
.
details
))
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'subjectChange'
)
bus
.
$emit
(
'onSubjectChange'
)
},
templateEdit
()
{
...
...
frontend/src/views/panel/SubjectSetting/index.vue
浏览文件 @
5edb7dad
...
...
@@ -135,7 +135,7 @@ export default {
chart
.
customFilter
=
JSON
.
stringify
(
this
.
chart
.
customFilter
)
canvasStyleData
.
chart
=
chart
this
.
$store
.
commit
(
'setCanvasStyle'
,
canvasStyleData
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'save'
)
}
}
}
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
5edb7dad
...
...
@@ -311,6 +311,7 @@ export default {
this
.
init
(
newVal
.
id
)
},
'$store.state.styleChangeTimes'
()
{
// console.log('styleChangeTimes' + this.$store.state.styleChangeTimes)
if
(
this
.
$store
.
state
.
styleChangeTimes
>
0
)
{
this
.
destroyTimeMachine
()
this
.
recordStyleChange
(
this
.
$store
.
state
.
styleChangeTimes
)
...
...
@@ -383,7 +384,7 @@ export default {
// this.$store.commit('setComponentData', this.resetID(JSON.parse(response.data.panelData)))
const
panelStyle
=
JSON
.
parse
(
response
.
data
.
panelStyle
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
panelStyle
)
this
.
$store
.
commit
(
'recordSnapshot'
)
// 记录快照
this
.
$store
.
commit
(
'recordSnapshot'
,
'init'
)
// 记录快照
// 刷新联动信息
getPanelAllLinkageInfo
(
panelId
).
then
(
rsp
=>
{
this
.
$store
.
commit
(
'setNowPanelTrackInfo'
,
rsp
.
data
)
...
...
@@ -493,7 +494,7 @@ export default {
component
.
style
.
left
=
this
.
getPositionX
(
e
.
layerX
)
component
.
id
=
newComponentId
this
.
$store
.
commit
(
'addComponent'
,
{
component
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleDrop'
)
this
.
clearCurrentInfo
()
// // 文字组件
...
...
@@ -545,7 +546,7 @@ export default {
// this.$store.commit('addComponent', { component })
this
.
$store
.
commit
(
'setComponentWithId'
,
component
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'sureFilter'
)
this
.
cancelFilter
()
},
reFreshComponent
(
component
)
{
...
...
@@ -625,7 +626,7 @@ export default {
}
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'handleFileChange'
)
}
img
.
src
=
fileResult
...
...
@@ -677,7 +678,7 @@ export default {
component
.
style
.
left
=
600
component
.
id
=
newComponentId
this
.
$store
.
commit
(
'addComponent'
,
{
component
})
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'newViewInfo'
)
this
.
clearCurrentInfo
()
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
component
,
index
:
this
.
componentData
.
length
-
1
})
...
...
@@ -703,7 +704,7 @@ export default {
recordStyleChange
(
index
)
{
this
.
timeMachine
=
setTimeout
(()
=>
{
if
(
index
===
this
.
$store
.
state
.
styleChangeTimes
)
{
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'recordStyleChange'
)
this
.
$store
.
state
.
styleChangeTimes
=
0
}
this
.
destroyTimeMachine
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论