Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
09b772bc
提交
09b772bc
authored
4月 07, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/main' into main
# Conflicts: # frontend/src/components/canvas/components/Editor/PreviewEject.vue
上级
547801ce
26a25d03
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
211 行增加
和
13 行删除
+211
-13
ContextMenu.vue
...d/src/components/canvas/components/Editor/ContextMenu.vue
+0
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+0
-1
Toolbar.vue
frontend/src/components/canvas/components/Toolbar.vue
+0
-1
index.vue
frontend/src/components/canvas/index.vue
+3
-4
TimeYearServiceImpl.js
.../src/components/widget/serviceImpl/TimeYearServiceImpl.js
+2
-1
index.scss
frontend/src/styles/index.scss
+14
-0
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+0
-1
index.vue
frontend/src/views/panel/edit/index.vue
+23
-3
filterDialog.vue
frontend/src/views/panel/filter/filterDialog.vue
+169
-0
index.vue
frontend/src/views/panel/index.vue
+0
-1
没有找到文件。
frontend/src/components/canvas/components/Editor/ContextMenu.vue
浏览文件 @
09b772bc
...
...
@@ -41,7 +41,6 @@ export default {
]),
methods
:
{
edit
()
{
debugger
// 编辑时临时保存 当前修改的画布
localStorage
.
setItem
(
'canvasDataEditTmp'
,
JSON
.
stringify
(
this
.
componentData
))
localStorage
.
setItem
(
'canvasStyleEditTmp'
,
JSON
.
stringify
(
this
.
canvasStyleData
))
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
09b772bc
...
...
@@ -134,7 +134,6 @@ export default {
this
.
isShowArea
=
true
const
move
=
(
moveEvent
)
=>
{
debugger
this
.
width
=
Math
.
abs
(
moveEvent
.
clientX
-
startX
)
this
.
height
=
Math
.
abs
(
moveEvent
.
clientY
-
startY
)
if
(
moveEvent
.
clientX
<
startX
)
{
...
...
frontend/src/components/canvas/components/Toolbar.vue
浏览文件 @
09b772bc
...
...
@@ -87,7 +87,6 @@ export default {
},
methods
:
{
closePanelEdit
()
{
debugger
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelMain'
})
},
goFile
()
{
...
...
frontend/src/components/canvas/index.vue
浏览文件 @
09b772bc
...
...
@@ -4,9 +4,9 @@
<main>
<!-- 左侧组件列表 -->
<!--
<section
class=
"left"
>
-->
<!--
<ComponentList
/>
-->
<!--
</section>
-->
<!--
<section
class=
"left"
>
-->
<!--
<ComponentList
/>
-->
<!--
</section>
-->
<!-- 中间画布 -->
<section
class=
"center"
>
<div
...
...
@@ -80,7 +80,6 @@ export default {
e
.
preventDefault
()
e
.
stopPropagation
()
debugger
let
component
const
id
=
e
.
dataTransfer
.
getData
(
'componentId'
)
componentList
.
forEach
(
componentTemp
=>
{
...
...
frontend/src/components/widget/serviceImpl/TimeYearServiceImpl.js
浏览文件 @
09b772bc
...
...
@@ -22,7 +22,8 @@ const defaultOptions = {
value
:
''
},
defaultClass
:
'time-filter'
,
component
:
'de-date'
component
:
'de-date'
,
filterDialog
:
true
}
class
TimeYearServiceImpl
extends
WidgetService
{
...
...
frontend/src/styles/index.scss
浏览文件 @
09b772bc
...
...
@@ -85,6 +85,20 @@ div:focus {
}
}
.de-filter-dialog
{
min-width
:
500px
!
important
;
width
:
50%
!
important
;
.el-dialog__header
{
background-color
:
#f4f4f5
;
padding
:
10px
20px
!
important
;
}
.el-dialog__body
{
padding
:
1px
20px
!
important
;
}
}
.de-search-header
{
.el-tabs__header
{
display
:
none
!
important
;;
...
...
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
09b772bc
...
...
@@ -56,7 +56,6 @@ export default {
},
methods
:
{
drawEcharts
()
{
// debugger
const
chart
=
this
.
chart
let
chart_option
=
{}
// type
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
09b772bc
...
...
@@ -68,6 +68,14 @@
</de-main-container>
</de-container>
<el-dialog
title=
"过滤组件"
:visible
.
sync=
"filterVisible"
custom-class=
"de-filter-dialog"
>
<filter-dialog
/>
</el-dialog>
</el-container>
</
template
>
...
...
@@ -94,6 +102,7 @@ import '@/components/canvas/styles/animate.css'
import
'element-ui/lib/theme-chalk/index.css'
import
'@/components/canvas/styles/reset.css'
import
{
ApplicationContext
}
from
'@/utils/ApplicationContext'
import
FilterDialog
from
'../filter/filterDialog'
export
default
{
name
:
'PanelEdit'
,
components
:
{
...
...
@@ -103,7 +112,8 @@ export default {
FilterGroup
,
ViewSelect
,
Editor
,
Toolbar
Toolbar
,
FilterDialog
},
data
()
{
return
{
...
...
@@ -112,7 +122,8 @@ export default {
clickNotClose
:
false
,
showIndex
:
-
1
,
activeName
:
'attr'
,
reSelectAnimateIndex
:
undefined
reSelectAnimateIndex
:
undefined
,
filterVisible
:
false
}
},
...
...
@@ -249,7 +260,13 @@ export default {
}
})
}
else
{
component
=
deepCopy
(
ApplicationContext
.
getService
(
componentInfo
.
id
))
const
wd
=
ApplicationContext
.
getService
(
componentInfo
.
id
)
if
(
wd
.
filterDialog
)
{
this
.
show
=
false
this
.
openFilterDiolog
()
return
}
component
=
deepCopy
(
wd
)
}
component
.
style
.
top
=
e
.
offsetY
...
...
@@ -282,6 +299,9 @@ export default {
if
(
e
.
button
!==
2
)
{
this
.
$store
.
commit
(
'hideContextMenu'
)
}
},
openFilterDiolog
()
{
this
.
filterVisible
=
true
}
}
...
...
frontend/src/views/panel/filter/filterDialog.vue
0 → 100644
浏览文件 @
09b772bc
<
template
>
<de-container
class=
"de-dialog-container"
>
<de-aside-container
class=
"ms-aside-container"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
:lazy=
"true"
class=
"de-tab"
label=
"按表选择"
name=
"dataset"
>
按表选择
</el-tab-pane>
<el-tab-pane
:lazy=
"true"
class=
"de-tab"
label=
"按组件选择"
name=
"assembly"
>
按组件选择
</el-tab-pane>
</el-tabs>
</de-aside-container>
<!--画布区域-->
<de-main-container
class=
"ms-main-container"
>
<div>
<el-row>
<el-col
:span=
"24"
>
<div
class=
"filter-field"
>
<div
class=
"field-content"
>
<div
class=
"field-content-left"
>
<div
class=
"field-content-text"
>
字段
</div>
</div>
<div
class=
"field-content-right"
>
请拖入左侧字段
</div>
</div>
</div>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<div
class=
"filter-options-left"
>
<el-switch
active-text=
"单选"
inactive-text=
"多选"
/>
</div>
</el-col>
<el-col
:span=
"16"
><div
class=
"filter-options-right"
>
<el-checkbox
disabled
>
备选项1
</el-checkbox>
<el-checkbox
disabled
>
备选项
</el-checkbox>
</div>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<div
class=
"filter-content"
/>
</el-col>
</el-row>
</div>
</de-main-container>
</de-container>
</
template
>
<
script
>
import
DeMainContainer
from
'@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DeAsideContainer
from
'@/components/dataease/DeAsideContainer'
export
default
{
name
:
'FilterDialog'
,
components
:
{
DeMainContainer
,
DeContainer
,
DeAsideContainer
},
data
()
{
return
{
activeName
:
'dataset'
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.de-dialog-container
{
height
:
50vh
!
important
;
}
.ms-aside-container
{
width
:
40%
!
important
;
min-width
:
230px
!
important
;
max-width
:
260px
!
important
;
height
:
100%
;
min-height
:
400px
;
padding
:
5px
;
border
:
none
;
}
.ms-main-container
{
height
:
100%
;
min-height
:
400px
;
}
.filter-field
{
// background: #99a9bf;
border-radius
:
4px
;
height
:
45px
;
.field-content
{
position
:
relative
;
display
:
table
;
width
:
100%
;
height
:
100%
;
white-space
:
nowrap
;
.field-content-left
{
width
:
50px
;
max-width
:
50px
;
position
:
relative
;
display
:
table-cell
;
vertical-align
:
middle
;
margin
:
0px
;
padding
:
8px
;
height
:
100%
;
border-right
:
none
;
border
:
1px
solid
#E6E6E6
;
.field-content-text
{
box-sizing
:
border-box
;
overflow
:
hidden
;
overflow-x
:
hidden
;
overflow-y
:
hidden
;
word-break
:
break-all
;
}
}
.field-content-right
{
border-left
:
none
;
color
:
#9ea6b2
;
border
:
1px
solid
#E6E6E6
;
width
:
0%
;
max-width
:
0%
;
position
:
relative
;
display
:
table-cell
;
vertical-align
:
middle
;
margin
:
0px
;
padding
:
0
0
0
10px
;
height
:
100%
;
}
}
}
.filter-options-left
{
align-items
:
center
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
flex-start
;
flex-wrap
:
nowrap
;
height
:
50px
;
}
.filter-options-right
{
align-items
:
center
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
flex-end
;
flex-wrap
:
nowrap
;
height
:
50px
;
}
.filter-content
{
height
:
calc
(
50vh
-
150px
);
top
:
160px
;
background
:
#99a9bf
;
}
</
style
>
frontend/src/views/panel/index.vue
浏览文件 @
09b772bc
...
...
@@ -25,7 +25,6 @@ export default {
},
mounted
()
{
bus
.
$on
(
'PanelSwitchComponent'
,
(
c
)
=>
{
debugger
console
.
log
(
c
)
this
.
param
=
c
.
param
switch
(
c
.
name
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论