Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
09595350
提交
09595350
authored
5月 08, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 背景图片空url 问题
上级
aec257ef
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
45 行增加
和
21 行删除
+45
-21
V12__panel_table.sql
backend/src/main/resources/db/migration/V12__panel_table.sql
+39
-14
index.html
frontend/public/index.html
+1
-1
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+1
-1
PreviewEject.vue
.../src/components/canvas/components/Editor/PreviewEject.vue
+1
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+1
-1
SubjectTemplateItem.vue
...s/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
+1
-1
SubjectTemplateItemback.vue
...nel/SubjectSetting/PreSubject/SubjectTemplateItemback.vue
+1
-1
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+0
-1
没有找到文件。
backend/src/main/resources/db/migration/V12__panel_table.sql
浏览文件 @
09595350
...
...
@@ -17,7 +17,6 @@ CREATE TABLE `panel_design` (
`update_person`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'修改人'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'仪表盘和组件的关联关系 组件分为普通视图和系统组件'
;
-- ----------------------------
-- Table structure for panel_group
-- ----------------------------
...
...
@@ -66,21 +65,32 @@ SET FOREIGN_KEY_CHECKS = 1;
DROP
function
IF
EXISTS
GET_PANEL_
CHILDREN
_CHILDREN
;
DROP
function
IF
EXISTS
GET_PANEL_
GROUP_WITH
_CHILDREN
;
DELIMITER
$$
CREATE
FUNCTION
`GET_PANEL_
CHILDREN
_CHILDREN`
(
parentId
varchar
(
8000
))
RETURNS
varchar
(
8000
)
CHARSET
utf8
READS
SQL
DATA
CREATE
FUNCTION
`GET_PANEL_
GROUP_WITH
_CHILDREN`
(
parentId
varchar
(
8000
))
RETURNS
varchar
(
8000
)
CHARSET
utf8
READS
SQL
DATA
BEGIN
DECLARE
oTemp
VARCHAR
(
8000
);
DECLARE
oTempChild
VARCHAR
(
8000
);
SET
oTemp
=
''
;
SET
oTempChild
=
CAST
(
parentId
AS
CHAR
);
WHILE
oTempChild
IS
NOT
NULL
DO
SET
oTemp
=
CONCAT
(
oTemp
,
','
,
oTempChild
);
SELECT
GROUP_CONCAT
(
id
)
INTO
oTempChild
FROM
panel_group
WHERE
FIND_IN_SET
(
pid
,
oTempChild
)
>
0
;
END
WHILE
;
RETURN
oTemp
;
DECLARE
oTemp
VARCHAR
(
8000
);
DECLARE
oTempChild
VARCHAR
(
8000
);
SET
oTemp
=
''
;
SET
oTempChild
=
CAST
(
parentId
AS
CHAR
);
WHILE
oTempChild
IS
NOT
NULL
DO
SET
oTemp
=
CONCAT
(
oTemp
,
','
,
oTempChild
);
SELECT
GROUP_CONCAT
(
id
)
INTO
oTempChild
FROM
panel_group
WHERE
FIND_IN_SET
(
pid
,
oTempChild
)
>
0
;
END
WHILE
;
RETURN
oTemp
;
END
$$
DELIMITER
;
...
...
@@ -183,3 +193,18 @@ CREATE TABLE `panel_template` (
`dynamic_data`
longtext
COMMENT
'预存数据'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
DROP
TABLE
IF
EXISTS
`panel_subject`
;
CREATE
TABLE
`panel_subject`
(
`id`
varchar
(
50
)
NOT
NULL
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'主题名称'
,
`type`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'主题类型 system 系统主题,self 自定义主题'
,
`details`
longtext
COMMENT
'主题内容'
,
`create_time`
bigint
(
13
)
DEFAULT
NULL
COMMENT
'创建时间'
,
`create_by`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'创建人'
,
`update_time`
bigint
(
13
)
DEFAULT
NULL
COMMENT
'更新时间'
,
`update_by`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'更新人'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
frontend/public/index.html
浏览文件 @
09595350
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico">--
>
<title><
%=
webpackConfig
.
name
%
></title>
</head>
<body>
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
09595350
...
...
@@ -54,7 +54,7 @@ export default {
customStyle
()
{
let
style
=
{}
if
(
this
.
canvasStyleData
.
openCommonStyle
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
&&
this
.
canvasStyleData
.
panel
.
imageUrl
)
{
style
=
{
width
:
'100%'
,
height
:
'100%'
,
...
...
frontend/src/components/canvas/components/Editor/PreviewEject.vue
浏览文件 @
09595350
...
...
@@ -57,7 +57,7 @@ export default {
customStyle
()
{
let
style
=
{}
if
(
this
.
canvasStyleData
.
openCommonStyle
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
&&
this
.
canvasStyleData
.
panel
.
imageUrl
)
{
style
=
{
width
:
'100%'
,
height
:
'100%'
,
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
09595350
...
...
@@ -109,7 +109,7 @@ export default {
height
:
this
.
changeStyleWithScale
(
this
.
canvasStyleData
.
height
)
+
'px'
}
if
(
this
.
canvasStyleData
.
openCommonStyle
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
&&
this
.
canvasStyleData
.
panel
.
imageUrl
)
{
style
=
{
width
:
this
.
changeStyleWithScale
(
this
.
canvasStyleData
.
width
)
+
'px'
,
height
:
this
.
changeStyleWithScale
(
this
.
canvasStyleData
.
height
)
+
'px'
,
...
...
frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
浏览文件 @
09595350
...
...
@@ -80,7 +80,7 @@ export default {
background
:
'background: 0% 0% / cover rgb(255, 255, 255)'
}
if
(
this
.
subjectItemDetails
)
{
if
(
this
.
subjectItemDetails
.
panel
.
backgroundType
===
'image'
)
{
if
(
this
.
subjectItemDetails
.
panel
.
backgroundType
===
'image'
&&
this
.
subjectItemDetails
.
panel
.
imageUrl
)
{
style
=
{
width
:
'100%'
,
height
:
'100%'
,
...
...
frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItemback.vue
浏览文件 @
09595350
...
...
@@ -80,7 +80,7 @@ export default {
background
:
'0% 0% / cover rgb(239, 241, 244)'
}
if
(
this
.
subjectItemDetails
)
{
if
(
this
.
subjectItemDetails
.
panel
.
backgroundType
===
'image'
)
{
if
(
this
.
subjectItemDetails
.
panel
.
backgroundType
===
'image'
&&
this
.
subjectItemDetails
.
panel
.
imageUrl
)
{
style
=
{
width
:
'100%'
,
height
:
'100%'
,
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
09595350
...
...
@@ -468,7 +468,6 @@ export default {
const
temp
=
JSON
.
parse
(
response
.
data
.
panelStyle
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
temp
)
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
data
)
this
.
currGroup
=
data
})
}
if
(
node
.
expanded
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论