Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
a783be25
提交
a783be25
authored
4月 06, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 过滤组件弹框选择数据
上级
f8f504f3
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
208 行增加
和
4 行删除
+208
-4
TimeYearServiceImpl.js
.../src/components/widget/serviceImpl/TimeYearServiceImpl.js
+2
-1
index.scss
frontend/src/styles/index.scss
+14
-0
index.vue
frontend/src/views/panel/edit/index.vue
+23
-3
filterDialog.vue
frontend/src/views/panel/filter/filterDialog.vue
+169
-0
没有找到文件。
frontend/src/components/widget/serviceImpl/TimeYearServiceImpl.js
浏览文件 @
a783be25
...
...
@@ -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
浏览文件 @
a783be25
...
...
@@ -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/panel/edit/index.vue
浏览文件 @
a783be25
...
...
@@ -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
浏览文件 @
a783be25
<
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
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论