Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
dfd0f046
提交
dfd0f046
authored
7月 14, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 仪表板条件过滤组件增加标题
上级
aa99b45c
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
86 行增加
和
35 行删除
+86
-35
package.json
frontend/package.json
+1
-1
ComponentWrapper.vue
.../components/canvas/components/Editor/ComponentWrapper.vue
+4
-3
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+23
-2
NumberSelectServiceImpl.js
.../components/widget/serviceImpl/NumberSelectServiceImpl.js
+2
-1
TextInputServiceImpl.js
...src/components/widget/serviceImpl/TextInputServiceImpl.js
+2
-1
TextSelectServiceImpl.js
...rc/components/widget/serviceImpl/TextSelectServiceImpl.js
+1
-1
TimeDateRangeServiceImpl.js
...components/widget/serviceImpl/TimeDateRangeServiceImpl.js
+2
-1
TimeDateServiceImpl.js
.../src/components/widget/serviceImpl/TimeDateServiceImpl.js
+2
-1
TimeMonthServiceImpl.js
...src/components/widget/serviceImpl/TimeMonthServiceImpl.js
+2
-1
TimeYearServiceImpl.js
.../src/components/widget/serviceImpl/TimeYearServiceImpl.js
+2
-1
filterDialog.vue
frontend/src/views/panel/filter/filterDialog.vue
+45
-22
没有找到文件。
frontend/package.json
浏览文件 @
dfd0f046
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"axios"
:
"^0.21.1"
,
"axios"
:
"^0.21.1"
,
"core-js"
:
"^2.6.5"
,
"core-js"
:
"^2.6.5"
,
"echarts"
:
"^5.0.1"
,
"echarts"
:
"^5.0.1"
,
"element-resize-detector"
:
"^1.2.
2
"
,
"element-resize-detector"
:
"^1.2.
3
"
,
"element-ui"
:
"2.13.0"
,
"element-ui"
:
"2.13.0"
,
"file-save"
:
"^0.2.0"
,
"file-save"
:
"^0.2.0"
,
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
...
...
frontend/src/components/canvas/components/Editor/ComponentWrapper.vue
浏览文件 @
dfd0f046
...
@@ -5,8 +5,7 @@
...
@@ -5,8 +5,7 @@
class="component"
class="component"
@click="handleClick"
@click="handleClick"
>
>
<component
<de-out-widget
:is=
"config.component"
v-if=
"config.type==='custom'"
v-if=
"config.type==='custom'"
:id=
"'component' + config.id"
:id=
"'component' + config.id"
class=
"component-custom"
class=
"component-custom"
...
@@ -14,6 +13,7 @@
...
@@ -14,6 +13,7 @@
:out-style=
"config.style"
:out-style=
"config.style"
:element=
"config"
:element=
"config"
/>
/>
<component
<component
:is=
"config.component"
:is=
"config.component"
v-else
v-else
...
@@ -31,8 +31,9 @@ import { getStyle } from '@/components/canvas/utils/style'
...
@@ -31,8 +31,9 @@ import { getStyle } from '@/components/canvas/utils/style'
import
runAnimation
from
'@/components/canvas/utils/runAnimation'
import
runAnimation
from
'@/components/canvas/utils/runAnimation'
import
{
mixins
}
from
'@/components/canvas/utils/events'
import
{
mixins
}
from
'@/components/canvas/utils/events'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
DeOutWidget
from
'@/components/dataease/DeOutWidget'
export
default
{
export
default
{
components
:
{
DeOutWidget
},
mixins
:
[
mixins
],
mixins
:
[
mixins
],
props
:
{
props
:
{
config
:
{
config
:
{
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
dfd0f046
...
@@ -44,6 +44,27 @@
...
@@ -44,6 +44,27 @@
:active=
"item === curComponent"
:active=
"item === curComponent"
@
input=
"handleInput"
@
input=
"handleInput"
/>
/>
<!--
<out-widget
:is=
"item.component"
v-else-if=
"item.type==='custom'"
:id=
"'component' + item.id"
class=
"component"
:style=
"getComponentStyleDefault(item.style)"
:prop-value=
"item.propValue"
:element=
"item"
:out-style=
"getShapeStyleInt(item.style)"
:active=
"item === curComponent"
/>
-->
<de-out-widget
v-else-if=
"item.type==='custom'"
:id=
"'component' + item.id"
class=
"component"
:style=
"getComponentStyleDefault(item.style)"
:prop-value=
"item.propValue"
:element=
"item"
:out-style=
"getShapeStyleInt(item.style)"
:active=
"item === curComponent"
/>
<component
<component
:is=
"item.component"
:is=
"item.component"
v-else-if=
"item.type==='other'"
v-else-if=
"item.type==='other'"
...
@@ -127,9 +148,9 @@ import Grid from './Grid'
...
@@ -127,9 +148,9 @@ import Grid from './Grid'
import
{
changeStyleWithScale
}
from
'@/components/canvas/utils/translate'
import
{
changeStyleWithScale
}
from
'@/components/canvas/utils/translate'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
UserViewDialog
from
'@/components/canvas/custom-component/UserViewDialog'
import
UserViewDialog
from
'@/components/canvas/custom-component/UserViewDialog'
import
DeOutWidget
from
'@/components/dataease/DeOutWidget'
export
default
{
export
default
{
components
:
{
Shape
,
ContextMenu
,
MarkLine
,
Area
,
Grid
,
DeDrag
,
UserViewDialog
},
components
:
{
Shape
,
ContextMenu
,
MarkLine
,
Area
,
Grid
,
DeDrag
,
UserViewDialog
,
DeOutWidget
},
props
:
{
props
:
{
isEdit
:
{
isEdit
:
{
type
:
Boolean
,
type
:
Boolean
,
...
...
frontend/src/components/widget/serviceImpl/NumberSelectServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -26,7 +26,8 @@ const drawPanel = {
...
@@ -26,7 +26,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
47
,
// height: 47,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TextInputServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -22,7 +22,8 @@ const drawPanel = {
...
@@ -22,7 +22,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
45.5
,
// height: 45.5,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TextSelectServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -27,7 +27,7 @@ const drawPanel = {
...
@@ -27,7 +27,7 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
38
,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TimeDateRangeServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -24,7 +24,8 @@ const drawPanel = {
...
@@ -24,7 +24,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
47
,
// height: 47,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TimeDateServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -22,7 +22,8 @@ const drawPanel = {
...
@@ -22,7 +22,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
47
,
// height: 47,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TimeMonthServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -22,7 +22,8 @@ const drawPanel = {
...
@@ -22,7 +22,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
47
,
// height: 47,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/components/widget/serviceImpl/TimeYearServiceImpl.js
浏览文件 @
dfd0f046
...
@@ -22,7 +22,8 @@ const drawPanel = {
...
@@ -22,7 +22,8 @@ const drawPanel = {
type
:
'custom'
,
type
:
'custom'
,
style
:
{
style
:
{
width
:
300
,
width
:
300
,
height
:
47
,
// height: 47,
height
:
90
,
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
500
,
fontWeight
:
500
,
lineHeight
:
''
,
lineHeight
:
''
,
...
...
frontend/src/views/panel/filter/filterDialog.vue
浏览文件 @
dfd0f046
...
@@ -182,28 +182,44 @@
...
@@ -182,28 +182,44 @@
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"16"
><div
class=
"filter-options-right"
>
<el-col
:span=
"16"
><div
class=
"filter-options-right"
>
<el-checkbox
v-model=
"componentInfo.options.attrs.enableRange"
@
change=
"enableRangeChange"
><span>
{{ $t('panel.custom_scope') }}
</span>
</el-checkbox>
<el-col
:span=
"8"
>
<el-checkbox
v-model=
"componentInfo.options.attrs.showTitle"
@
change=
"showTitleChange"
>
显示标题
</el-checkbox>
<el-popover
<el-popover
v-model=
"popovervisible"
v-model=
"titlePopovervisible"
placement=
"bottom-end"
placement=
"bottom-end"
:disabled=
"!componentInfo.options.attrs.enableRange"
:disabled=
"!componentInfo.options.attrs.showTitle"
width=
"200"
width=
"200"
>
>
<div
class=
"view-container-class"
>
<div
style=
"width: 100%;overflow-y: auto;overflow-x: hidden;word-break: break-all;position: relative;"
>
<el-checkbox-group
v-model=
"componentInfo.options.attrs.viewIds"
@
change=
"checkedViewsChange"
>
<el-input
v-model=
"componentInfo.options.attrs.title"
placeholder=
"请输入标题"
type=
"textarea"
maxlength=
"15"
show-word-limit
/>
<el-checkbox
v-for=
"(item ) in viewInfos"
:key=
"item.id"
:label=
"item.id"
>
</div>
<span>
<svg-icon
:icon-class=
"item.type"
class=
"chart-icon"
/>
<i
slot=
"reference"
:class=
"{'i-filter-active': componentInfo.options.attrs.showTitle, 'i-filter-inactive': !componentInfo.options.attrs.showTitle}"
class=
"el-icon-setting i-filter"
/>
<span
style=
"margin-left: 6px"
>
{{ item.name }}
</span>
</el-popover>
</span>
</el-col>
</el-checkbox>
<el-col
:span=
"8"
>
</el-checkbox-group>
<el-checkbox
v-model=
"componentInfo.options.attrs.enableRange"
@
change=
"enableRangeChange"
><span>
{{ $t('panel.custom_scope') }}
</span>
</el-checkbox>
</div>
<el-popover
v-model=
"popovervisible"
placement=
"bottom-end"
:disabled=
"!componentInfo.options.attrs.enableRange"
width=
"200"
>
<div
class=
"view-container-class"
>
<el-checkbox-group
v-model=
"componentInfo.options.attrs.viewIds"
@
change=
"checkedViewsChange"
>
<el-checkbox
v-for=
"(item ) in viewInfos"
:key=
"item.id"
:label=
"item.id"
>
<span>
<svg-icon
:icon-class=
"item.type"
class=
"chart-icon"
/>
<span
style=
"margin-left: 6px"
>
{{ item.name }}
</span>
</span>
</el-checkbox>
</el-checkbox-group>
</div>
<i
slot=
"reference"
:class=
"{'i-filter-active': componentInfo.options.attrs.enableRange, 'i-filter-inactive': !componentInfo.options.attrs.enableRange}"
class=
"el-icon-setting i-filter"
/>
<i
slot=
"reference"
:class=
"{'i-filter-active': componentInfo.options.attrs.enableRange, 'i-filter-inactive': !componentInfo.options.attrs.enableRange}"
class=
"el-icon-setting i-filter"
/>
</el-popover>
</el-popover>
<
!-- <el-checkbox disabled>备选项</el-checkbox> --
>
<
/el-col
>
</div>
</div>
</el-col>
</el-col>
...
@@ -301,7 +317,8 @@ export default {
...
@@ -301,7 +317,8 @@ export default {
keyWord
:
''
,
keyWord
:
''
,
timer
:
null
,
timer
:
null
,
expandedArray
:
[],
expandedArray
:
[],
viewKeyWord
:
''
viewKeyWord
:
''
,
titlePopovervisible
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -610,6 +627,12 @@ export default {
...
@@ -610,6 +627,12 @@ export default {
}
}
// this.componentInfo.options.attrs.enableRange = value
// this.componentInfo.options.attrs.enableRange = value
this
.
$emit
(
're-fresh-component'
,
this
.
componentInfo
)
this
.
$emit
(
're-fresh-component'
,
this
.
componentInfo
)
},
showTitleChange
(
value
)
{
if
(
!
value
)
{
this
.
componentInfo
.
options
.
attrs
.
title
=
''
}
this
.
$emit
(
're-fresh-component'
,
this
.
componentInfo
)
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论