Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
917e6fe5
提交
917e6fe5
authored
12月 07, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.5' of github.com:dataease/dataease into v1.5
上级
0bb789db
8cf7ae32
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
28 行增加
和
34 行删除
+28
-34
IndexController.java
...src/main/java/io/dataease/controller/IndexController.java
+10
-5
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+4
-6
Group.vue
frontend/src/views/chart/group/Group.vue
+2
-8
Group.vue
frontend/src/views/dataset/group/Group.vue
+2
-8
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+10
-7
没有找到文件。
backend/src/main/java/io/dataease/controller/IndexController.java
浏览文件 @
917e6fe5
package
io
.
dataease
.
controller
;
import
io.dataease.commons.exception.DEException
;
import
io.dataease.commons.license.DefaultLicenseService
;
import
io.dataease.commons.license.F2CLicenseResponse
;
import
io.dataease.commons.utils.LogUtil
;
import
io.dataease.commons.utils.ServletUtils
;
import
io.dataease.service.panel.PanelLinkService
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -11,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
javax.annotation.Resource
;
import
javax.servlet.http.Cookie
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
@Controller
@RequestMapping
...
...
@@ -45,13 +48,15 @@ public class IndexController {
}
@GetMapping
(
"/link/{index}"
)
public
String
link
(
@PathVariable
(
value
=
"index"
,
required
=
true
)
Long
index
)
{
public
void
link
(
@PathVariable
(
value
=
"index"
,
required
=
true
)
Long
index
)
{
String
url
=
panelLinkService
.
getUrlByIndex
(
index
);
HttpServletResponse
response
=
ServletUtils
.
response
();
String
param
=
url
.
substring
(
url
.
indexOf
(
"?"
)
+
1
);
Cookie
cookie
=
new
Cookie
(
"link"
,
param
.
split
(
"="
)[
1
]);
response
.
addCookie
(
cookie
);
return
url
;
try
{
response
.
sendRedirect
(
url
);
}
catch
(
IOException
e
)
{
LogUtil
.
error
(
e
.
getMessage
());
DEException
.
throwException
(
e
);
}
}
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
917e6fe5
...
...
@@ -327,7 +327,7 @@ function init() {
const
vm
=
this
recalcCellWidth
.
call
(
this
)
resetPositionBox
.
call
(
this
)
//
initPosition(this)
initPosition
(
this
)
let
i
=
0
const
timeid
=
setInterval
(
function
()
{
if
(
i
>=
vm
.
yourList
.
length
)
{
...
...
@@ -471,13 +471,11 @@ function removeItem(index) {
this
.
yourList
.
splice
(
index
,
1
,
{})
}
//
eslint-disable-next-line no-unused-vars
//
矩阵设计初始化的时候 预占位,防止编辑仪表板页面,初始化和视图编辑返回时出现组件位置变化问题
function
initPosition
(
_this
)
{
_this
.
yourList
.
forEach
(
item
=>
{
checkItemPosition
.
call
(
_this
,
item
,
{
x
:
item
.
x
,
y
:
item
.
y
})
fillPositionBox
.
call
(
_this
,
item
.
y
+
item
.
sizey
)
addItemToPositionBox
.
call
(
_this
,
item
)
})
}
...
...
frontend/src/views/chart/group/Group.vue
浏览文件 @
917e6fe5
...
...
@@ -44,6 +44,8 @@
:expand-on-click-node=
"true"
:filter-node-method=
"filterNode"
@
node-click=
"nodeClick"
@
node-expand=
"nodeExpand"
@
node-collapse=
"nodeCollapse"
>
<span
v-if=
"data.modelInnerType ==='group'"
slot-scope=
"
{ node, data }" class="custom-tree-node father">
<span
style=
"display: flex;flex: 1;width: 0;"
>
...
...
@@ -673,14 +675,6 @@ export default {
if
(
data
.
modelInnerType
!==
'group'
)
{
this
.
$emit
(
'switchComponent'
,
{
name
:
'ChartEdit'
,
param
:
data
})
}
if
(
node
.
expanded
)
{
this
.
expandedArray
.
push
(
data
.
id
)
}
else
{
const
index
=
this
.
expandedArray
.
indexOf
(
data
.
id
)
if
(
index
>
-
1
)
{
this
.
expandedArray
.
splice
(
index
,
1
)
}
}
},
back
()
{
...
...
frontend/src/views/dataset/group/Group.vue
浏览文件 @
917e6fe5
...
...
@@ -45,6 +45,8 @@
highlight-current
:expand-on-click-node=
"true"
:filter-node-method=
"filterNode"
@
node-expand=
"nodeExpand"
@
node-collapse=
"nodeCollapse"
@
node-click=
"nodeClick"
>
<span
v-if=
"data.modelInnerType === 'group'"
slot-scope=
"
{ node, data }" class="custom-tree-node father">
...
...
@@ -524,14 +526,6 @@ export default {
if
(
data
.
modelInnerType
!==
'group'
)
{
this
.
$emit
(
'switchComponent'
,
{
name
:
'ViewTable'
,
param
:
data
})
}
if
(
node
.
expanded
)
{
this
.
expandedArray
.
push
(
data
.
id
)
}
else
{
const
index
=
this
.
expandedArray
.
indexOf
(
data
.
id
)
if
(
index
>
-
1
)
{
this
.
expandedArray
.
splice
(
index
,
1
)
}
}
},
back
()
{
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
917e6fe5
...
...
@@ -29,7 +29,6 @@
<div
class=
"block"
>
<el-tree
ref=
"default_panel_tree"
:default-expanded-keys=
"expandedArray"
:data=
"defaultData"
node-key=
"id"
:highlight-current=
"activeTree==='system'"
...
...
@@ -84,6 +83,8 @@
:highlight-current=
"activeTree==='self'"
:expand-on-click-node=
"true"
:filter-node-method=
"filterNode"
@
node-expand=
"nodeExpand"
@
node-collapse=
"nodeCollapse"
@
node-click=
"nodeClick"
>
<span
slot-scope=
"
{ node, data }" class="custom-tree-node-list father">
...
...
@@ -677,13 +678,15 @@ export default {
bus
.
$emit
(
'set-panel-show-type'
,
0
)
})
}
if
(
node
.
expanded
)
{
},
nodeExpand
(
data
)
{
if
(
data
.
id
)
{
this
.
expandedArray
.
push
(
data
.
id
)
}
else
{
const
index
=
this
.
expandedArray
.
indexOf
(
data
.
id
)
if
(
index
>
-
1
)
{
this
.
expandedArray
.
splice
(
index
,
1
)
}
}
},
nodeCollapse
(
data
)
{
if
(
data
.
id
)
{
this
.
expandedArray
.
splice
(
this
.
expandedArray
.
indexOf
(
data
.
id
),
1
)
}
},
back
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论