Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
ef6385d5
提交
ef6385d5
authored
6月 15, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'main' of github.com:dataease/dataease into main
上级
a75734b9
bbfb242b
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
77 行增加
和
67 行删除
+77
-67
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+3
-0
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+4
-4
AppMain.vue
frontend/src/layout/components/AppMain.vue
+5
-7
index.vue
frontend/src/layout/components/Sidebar/index.vue
+11
-14
index.vue
frontend/src/layout/index.vue
+31
-19
sidebar.scss
frontend/src/styles/sidebar.scss
+5
-3
DimensionFilterEditor.vue
...c/views/chart/components/filter/DimensionFilterEditor.vue
+1
-1
QuotaFilterEditor.vue
...d/src/views/chart/components/filter/QuotaFilterEditor.vue
+1
-1
ResultFilterEditor.vue
.../src/views/chart/components/filter/ResultFilterEditor.vue
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+10
-8
index.vue
frontend/src/views/panel/edit/index.vue
+5
-9
没有找到文件。
backend/src/main/java/io/dataease/service/chart/ChartViewService.java
浏览文件 @
ef6385d5
...
...
@@ -180,6 +180,9 @@ public class ChartViewService {
}
data
=
datasourceProvider
.
getData
(
datasourceRequest
);
}
if
(
StringUtils
.
containsIgnoreCase
(
view
.
getType
(),
"pie"
)
&&
data
.
size
()
>
1000
)
{
data
=
data
.
subList
(
0
,
1000
);
}
// 图表组件可再扩展
List
<
String
>
x
=
new
ArrayList
<>();
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
ef6385d5
<
template
>
<div
id=
"canvasInfo"
:style=
"customStyle"
class=
"bg"
>
<div
id=
"canvasInfo
Temp
"
:style=
"customStyle"
class=
"bg"
>
<el-row
v-if=
"componentDataShow.length===0"
style=
"height: 100%;"
class=
"custom-position"
>
{{
$t
(
'panel.panelNull'
)
}}
</el-row>
...
...
@@ -101,7 +101,7 @@ export default {
const
_this
=
this
const
erd
=
elementResizeDetectorMaker
()
// 监听div变动事件
erd
.
listenTo
(
document
.
getElementById
(
'canvasInfo'
),
element
=>
{
erd
.
listenTo
(
document
.
getElementById
(
'canvasInfo
Temp
'
),
element
=>
{
_this
.
$nextTick
(()
=>
{
_this
.
restore
()
})
...
...
@@ -116,8 +116,8 @@ export default {
getStyle
,
restore
()
{
debugger
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo'
).
offsetHeight
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo'
).
offsetWidth
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo
Temp
'
).
offsetHeight
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo
Temp
'
).
offsetWidth
this
.
scaleWidth
=
canvasWidth
*
100
/
parseInt
(
this
.
canvasStyleData
.
width
)
// 获取宽度比
this
.
scaleHeight
=
canvasHeight
*
100
/
parseInt
(
this
.
canvasStyleData
.
height
)
// 获取高度比
if
(
this
.
showType
===
'width'
)
{
...
...
frontend/src/layout/components/AppMain.vue
浏览文件 @
ef6385d5
...
...
@@ -2,9 +2,7 @@
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<el-main
class=
"ms-main-container"
>
<!--
<keep-alive>
-->
<router-view
:key=
"key"
/>
<!--
</keep-alive>
-->
</el-main>
</transition>
</section>
...
...
@@ -26,11 +24,11 @@ export default {
.app-main
{
/* topbar 56 */
min-height
:
calc
(
100vh
-
56px
);
width
:
100%
;
height
:
100%
;
position
:
relative
;
overflow
:
hidden
;
//
min-height: calc(100vh - 56px);
//
width: 100%;
//
height: 100%;
//
position: relative;
//
overflow: hidden;
}
.fixed-header
+
.app-main
{
...
...
frontend/src/layout/components/Sidebar/index.vue
浏览文件 @
ef6385d5
<
template
>
<div
:class=
"
{'has-logo':showLogo}">
<logo
v-if=
"showLogo"
:collapse=
"isCollapse"
/>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
:default-active=
"activeMenu"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
<el-menu
:default-active=
"activeMenu"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
:unique-opened=
"false"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<sidebar-item
v-for=
"route in routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</el-menu>
</el-scrollbar>
:unique-opened=
"false"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<sidebar-item
v-for=
"route in routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</el-menu>
</div>
</
template
>
...
...
@@ -23,7 +21,6 @@ import { mapGetters } from 'vuex'
import
Logo
from
'./Logo'
import
SidebarItem
from
'./SidebarItem'
import
variables
from
'@/styles/variables.scss'
export
default
{
components
:
{
SidebarItem
,
Logo
},
computed
:
{
...
...
frontend/src/layout/index.vue
浏览文件 @
ef6385d5
...
...
@@ -2,35 +2,43 @@
<div
:class=
"classObj"
class=
"app-wrapper"
>
<licbar
/>
<topbar
/>
<div
v-if=
"device==='mobile'&&sidebar.opened"
class=
"drawer-bg"
@
click=
"handleClickOutside"
/>
<sidebar
v-if=
"!sidebar.hide"
class=
"sidebar-container"
/>
<div
:class=
"
{sidebarHide: sidebar.hide}" class="main-container">
<div
:class=
"
{'fixed-header':fixedHeader}">
<!--
<navbar
/>
-->
</div>
<de-container
style=
"padding-top: 56px;"
>
<de-aside-container
v-if=
"!sidebar.hide"
>
<sidebar
class=
"sidebar-container"
/>
</de-aside-container>
<de-main-container
class=
"la-main-container"
>
<app-main
/>
</de-main-container>
</de-container>
<!--
<de-main-container>
<app-main
/>
</de-main-container>
-->
<!--
<div
:class=
"
{sidebarHide: sidebar.hide}" class="main-container">
<app-main
/>
<right-panel
v-if=
"showSettings"
>
<settings
/>
</right-panel>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
RightPanel
from
'@/components/RightPanel'
import
{
Sidebar
,
Settings
,
AppMain
,
Topbar
,
Licbar
}
from
'./components'
// import { Sidebar, Settings, AppMain, Topbar } from './components'
import
{
Sidebar
,
AppMain
,
Topbar
,
Licbar
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
DeMainContainer
from
'@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DeAsideContainer
from
'@/components/dataease/DeAsideContainer'
export
default
{
name
:
'Layout'
,
components
:
{
RightPanel
,
Sidebar
,
Settings
,
AppMain
,
Topbar
,
Licbar
Licbar
,
DeMainContainer
,
DeContainer
,
DeAsideContainer
},
mixins
:
[
ResizeMixin
],
computed
:
{
...
...
@@ -70,8 +78,8 @@ export default {
.app-wrapper
{
@include
clearfix
;
position
:
relative
;
//
height: 100%;
height
:
$contentHeight
;
height
:
100%
;
//
height: $contentHeight;
width
:
100%
;
&
.mobile.openSidebar
{
position
:
fixed
;
...
...
@@ -104,4 +112,8 @@ export default {
.mobile
.fixed-header
{
width
:
100%
;
}
.la-main-container
{
padding
:
0px
!
important
;
}
</
style
>
frontend/src/styles/sidebar.scss
浏览文件 @
ef6385d5
...
...
@@ -13,9 +13,9 @@
}
.sidebar-container
{
transition
:
width
0
.28s
;
width
:
$sideBarWidth
!
important
;
//
width: $sideBarWidth !important;
background-color
:
$menuBg
;
// height: 100%
;
// width: 260px
;
height
:
$contentHeight
;
position
:
fixed
;
font-size
:
0px
;
...
...
@@ -25,7 +25,9 @@
left
:
0
;
z-index
:
999
;
overflow
:
hidden
;
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.12
);
// min-width: 260px;
// max-width: 400px;
// border-right: 1px solid rgba(0, 0, 0, 0.12);
// reset element-ui css
.horizontal-collapse-transition
{
...
...
frontend/src/views/chart/components/filter/DimensionFilterEditor.vue
浏览文件 @
ef6385d5
...
...
@@ -23,7 +23,7 @@
</el-select>
</el-col>
<el-col
:span=
"6"
>
<el-input
v-model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
<el-input
v-
show=
"!f.term.includes('null')"
v-
model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
</el-col>
<el-col
:span=
"6"
>
<el-button
type=
"text"
icon=
"el-icon-delete"
circle
style=
"float: right"
@
click=
"removeFilter(index)"
/>
...
...
frontend/src/views/chart/components/filter/QuotaFilterEditor.vue
浏览文件 @
ef6385d5
...
...
@@ -23,7 +23,7 @@
</el-select>
</el-col>
<el-col
:span=
"6"
>
<el-input
v-model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
<el-input
v-
show=
"!f.term.includes('null')"
v-
model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
</el-col>
<el-col
:span=
"6"
>
<el-button
type=
"text"
icon=
"el-icon-delete"
circle
style=
"float: right"
@
click=
"removeFilter(index)"
/>
...
...
frontend/src/views/chart/components/filter/ResultFilterEditor.vue
浏览文件 @
ef6385d5
...
...
@@ -37,7 +37,7 @@
</el-select>
</el-col>
<el-col
:span=
"6"
>
<el-input
v-model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
<el-input
v-
show=
"!f.term.includes('null')"
v-
model=
"f.value"
class=
"value-item"
:placeholder=
"$t('chart.no_limit')"
size=
"mini"
clearable
/>
</el-col>
<el-col
:span=
"6"
>
<el-button
type=
"text"
icon=
"el-icon-delete"
circle
style=
"float: right"
@
click=
"removeFilter(index)"
/>
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
ef6385d5
...
...
@@ -334,7 +334,7 @@
</
template
>
<
script
>
import
{
post
,
ajaxGetData
}
from
'@/api/chart/chart'
import
{
ajaxGetData
,
post
}
from
'@/api/chart/chart'
import
draggable
from
'vuedraggable'
import
DimensionItem
from
'../components/drag-item/DimensionItem'
import
QuotaItem
from
'../components/drag-item/QuotaItem'
...
...
@@ -342,18 +342,17 @@ import ResultFilterEditor from '../components/filter/ResultFilterEditor'
import
ChartComponent
from
'../components/ChartComponent'
import
bus
from
'@/utils/bus'
import
DatasetChartDetail
from
'../../dataset/common/DatasetChartDetail'
// shape attr,component style
import
{
DEFAULT_BACKGROUND_COLOR
,
DEFAULT_COLOR_CASE
,
DEFAULT_LABEL
,
DEFAULT_LEGEND_STYLE
,
DEFAULT_SIZE
,
DEFAULT_TITLE_STYLE
,
DEFAULT_LEGEND_STYLE
,
DEFAULT_LABEL
,
DEFAULT_TOOLTIP
,
DEFAULT_XAXIS_STYLE
,
DEFAULT_YAXIS_STYLE
,
DEFAULT_BACKGROUND_COLOR
DEFAULT_YAXIS_STYLE
}
from
'../chart/chart'
import
ColorSelector
from
'../components/shape-attr/ColorSelector'
import
SizeSelector
from
'../components/shape-attr/SizeSelector'
...
...
@@ -646,6 +645,9 @@ export default {
this
.
resetView
()
this
.
httpRequest
.
status
=
err
.
response
.
data
.
success
this
.
httpRequest
.
msg
=
err
.
response
.
data
.
message
this
.
$nextTick
(()
=>
{
this
.
getChart
(
id
)
})
return
true
})
}
else
{
...
...
@@ -666,9 +668,9 @@ export default {
response
.
data
.
data
=
this
.
data
this
.
chart
=
response
.
data
this
.
httpRequest
.
status
=
true
//
this.httpRequest.status = true
}).
catch
(
err
=>
{
this
.
resetView
()
//
this.resetView()
this
.
httpRequest
.
status
=
err
.
response
.
data
.
success
this
.
httpRequest
.
msg
=
err
.
response
.
data
.
message
return
true
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
ef6385d5
...
...
@@ -101,7 +101,7 @@
@
mousedown=
"handleMouseDown"
@
mouseup=
"deselectCurComponent"
>
<Editor
:out-style=
"outStyle"
/>
<Editor
v-if=
"!previewVisible"
:out-style=
"outStyle"
/>
</div>
</de-main-container>
<de-aside-container
v-if=
"aidedButtonActive"
:class=
"aidedButtonActive ? 'show' : 'hidden'"
class=
"style-aside"
>
...
...
@@ -135,14 +135,10 @@
</div>
</el-dialog>
<el-dialog
v-if=
"previewVisible"
:visible
.
sync=
"previewVisible"
:fullscreen=
"true"
custom-class=
"preview-dialog"
>
<PreviewFullScreen
:fullscreen=
"previewVisible"
/>
</el-dialog>
<fullscreen
style=
"height: 100%;background: none"
:fullscreen
.
sync=
"previewVisible"
>
<Preview
v-if=
"previewVisible"
:show-type=
"canvasStyleData.selfAdaption?'full':'width'"
/>
</fullscreen>
</el-row>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论