Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
c0f13964
提交
c0f13964
authored
5月 25, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
7122929c
73a9a0bd
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
54 行增加
和
32 行删除
+54
-32
AboutService.java
backend/src/main/java/io/dataease/service/AboutService.java
+6
-2
PanelGroupService.java
...ain/java/io/dataease/service/panel/PanelGroupService.java
+7
-7
component-list.js
.../src/components/canvas/custom-component/component-list.js
+23
-21
multiplexing.vue
frontend/src/views/panel/ViewSelect/multiplexing.vue
+18
-2
没有找到文件。
backend/src/main/java/io/dataease/service/AboutService.java
浏览文件 @
c0f13964
...
@@ -9,6 +9,7 @@ import io.dataease.commons.utils.LogUtil;
...
@@ -9,6 +9,7 @@ import io.dataease.commons.utils.LogUtil;
import
io.dataease.listener.util.CacheUtils
;
import
io.dataease.listener.util.CacheUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -25,6 +26,10 @@ public class AboutService {
...
@@ -25,6 +26,10 @@ public class AboutService {
@Resource
@Resource
private
DefaultLicenseService
defaultLicenseService
;
private
DefaultLicenseService
defaultLicenseService
;
@Value
(
"${version}"
)
private
String
version
;
public
F2CLicenseResponse
updateLicense
(
String
licenseKey
)
{
public
F2CLicenseResponse
updateLicense
(
String
licenseKey
)
{
F2CLicenseResponse
f2CLicenseResponse
=
defaultLicenseService
.
updateLicense
(
product
,
licenseKey
);
F2CLicenseResponse
f2CLicenseResponse
=
defaultLicenseService
.
updateLicense
(
product
,
licenseKey
);
Optional
.
ofNullable
(
f2CLicenseResponse
).
ifPresent
(
resp
->
{
Optional
.
ofNullable
(
f2CLicenseResponse
).
ifPresent
(
resp
->
{
...
@@ -62,8 +67,7 @@ public class AboutService {
...
@@ -62,8 +67,7 @@ public class AboutService {
return
version
;
return
version
;
}
}
}
}
String
property
=
CommonBeanFactory
.
getBean
(
Environment
.
class
).
getProperty
(
"cmp.version"
);
return
Optional
.
ofNullable
(
version
).
orElse
(
"V1.0"
);
return
Optional
.
ofNullable
(
property
).
orElse
(
"V1.0"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
"failed to get build version."
,
e
);
LogUtil
.
error
(
"failed to get build version."
,
e
);
}
}
...
...
backend/src/main/java/io/dataease/service/panel/PanelGroupService.java
浏览文件 @
c0f13964
...
@@ -329,13 +329,13 @@ public class PanelGroupService {
...
@@ -329,13 +329,13 @@ public class PanelGroupService {
// result.addAll(viewResult);
// result.addAll(viewResult);
// }
// }
result
=
TreeUtils
.
mergeTree
(
result
,
"panel_list"
);
result
=
TreeUtils
.
mergeTree
(
result
,
"panel_list"
);
//
if (AuthUtils.getUser().getIsAdmin()) {
if
(
AuthUtils
.
getUser
().
getIsAdmin
())
{
//
// 原有视图的目录结构
// 原有视图的目录结构
//
List<VAuthModelDTO> viewOriginal = extVAuthModelMapper.queryAuthViewsOriginal(viewRequest);
List
<
VAuthModelDTO
>
viewOriginal
=
extVAuthModelMapper
.
queryAuthViewsOriginal
(
viewRequest
);
//
if (CollectionUtils.isNotEmpty(viewOriginal) && viewOriginal.size() > 1) {
if
(
CollectionUtils
.
isNotEmpty
(
viewOriginal
)
&&
viewOriginal
.
size
()
>
1
)
{
//
result.addAll(TreeUtils.mergeTree(viewOriginal, "public_chart"));
result
.
addAll
(
TreeUtils
.
mergeTree
(
viewOriginal
,
"public_chart"
));
//
}
}
//
}
}
}
}
return
result
;
return
result
;
...
...
frontend/src/components/canvas/custom-component/component-list.js
浏览文件 @
c0f13964
...
@@ -226,6 +226,28 @@ export const otherList = [
...
@@ -226,6 +226,28 @@ export const otherList = [
}
}
]
]
export
const
USER_VIEW
=
{
id
:
'10005'
,
component
:
'user-view'
,
label
:
'用户视图'
,
propValue
:
''
,
icon
:
'juxing'
,
type
:
'view'
,
mobileStyle
:
BASE_MOBILE_STYLE
,
hyperlinks
:
HYPERLINKS
,
style
:
{
width
:
300
,
height
:
200
},
x
:
1
,
y
:
108
,
sizex
:
12
,
sizey
:
6
,
auxiliaryMatrix
:
true
,
miniSizex
:
1
,
miniSizey
:
1
}
// 编辑器左侧组件列表
// 编辑器左侧组件列表
const
list
=
[
const
list
=
[
{
{
...
@@ -337,27 +359,7 @@ const list = [
...
@@ -337,27 +359,7 @@ const list = [
miniSizex
:
1
,
miniSizex
:
1
,
miniSizey
:
1
miniSizey
:
1
},
},
{
USER_VIEW
,
id
:
'10005'
,
component
:
'user-view'
,
label
:
'用户视图'
,
propValue
:
''
,
icon
:
'juxing'
,
type
:
'view'
,
mobileStyle
:
BASE_MOBILE_STYLE
,
hyperlinks
:
HYPERLINKS
,
style
:
{
width
:
300
,
height
:
200
},
x
:
1
,
y
:
108
,
sizex
:
12
,
sizey
:
6
,
auxiliaryMatrix
:
true
,
miniSizex
:
1
,
miniSizey
:
1
},
{
{
id
:
'10006'
,
id
:
'10006'
,
component
:
'de-tabs'
,
component
:
'de-tabs'
,
...
...
frontend/src/views/panel/ViewSelect/multiplexing.vue
浏览文件 @
c0f13964
...
@@ -27,9 +27,12 @@ import DeMainContainer from '@/components/dataease/DeMainContainer'
...
@@ -27,9 +27,12 @@ import DeMainContainer from '@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DeAsideContainer
from
'@/components/dataease/DeAsideContainer'
import
DeAsideContainer
from
'@/components/dataease/DeAsideContainer'
import
{
findOne
}
from
'@/api/panel/panel'
import
{
findOne
}
from
'@/api/panel/panel'
import
{
panelDataPrepare
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
,
panelDataPrepare
}
from
'@/components/canvas/utils/utils'
import
Preview
from
'@/components/canvas/components/Editor/Preview'
import
Preview
from
'@/components/canvas/components/Editor/Preview'
import
MultiplexingView
from
'@/views/panel/ViewSelect/multiplexingView'
import
MultiplexingView
from
'@/views/panel/ViewSelect/multiplexingView'
import
{
DEFAULT_COMMON_CANVAS_STYLE_STRING
}
from
'@/views/panel/panel'
import
{
USER_VIEW
}
from
'@/components/canvas/custom-component/component-list'
import
{
uuid
}
from
'vue-uuid'
export
default
{
export
default
{
name
:
'Multiplexing'
,
name
:
'Multiplexing'
,
...
@@ -61,7 +64,7 @@ export default {
...
@@ -61,7 +64,7 @@ export default {
methods
:
{
methods
:
{
showDetails
(
params
)
{
showDetails
(
params
)
{
const
_this
=
this
const
_this
=
this
_this
.
selectedPanel
=
params
.
showId
_this
.
selectedPanel
=
params
if
(
params
.
showType
===
'panel'
)
{
if
(
params
.
showType
===
'panel'
)
{
this
.
panelLoading
=
true
this
.
panelLoading
=
true
findOne
(
params
.
showId
).
then
(
response
=>
{
findOne
(
params
.
showId
).
then
(
response
=>
{
...
@@ -71,6 +74,19 @@ export default {
...
@@ -71,6 +74,19 @@ export default {
_this
.
canvasStyleData
=
rsp
.
componentStyle
_this
.
canvasStyleData
=
rsp
.
componentStyle
})
})
})
})
}
else
if
(
params
.
showType
===
'view'
)
{
const
componentId
=
uuid
.
v1
()
_this
.
canvasStyleData
=
deepCopy
(
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
const
userView
=
{
...
deepCopy
(
USER_VIEW
),
'id'
:
componentId
}
userView
.
style
.
width
=
_this
.
canvasStyleData
.
width
userView
.
style
.
height
=
_this
.
canvasStyleData
.
height
userView
[
'propValue'
]
=
{
'viewId'
:
params
.
showId
,
'id'
:
componentId
}
_this
.
componentData
.
push
(
userView
)
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论