Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5490dd15
提交
5490dd15
authored
5月 26, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
f4b52c54
c7133be6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
66 行增加
和
123 行删除
+66
-123
EditBarView.vue
...d/src/components/canvas/components/Editor/EditBarView.vue
+7
-2
TextAttr.vue
frontend/src/components/canvas/components/TextAttr.vue
+5
-3
UserView.vue
frontend/src/components/canvas/custom-component/UserView.vue
+1
-1
DeOutWidget.vue
frontend/src/components/dataease/DeOutWidget.vue
+38
-91
TitlePostion.vue
frontend/src/components/widget/DeWidget/TitlePostion.vue
+7
-23
multiplexing.vue
frontend/src/views/panel/ViewSelect/multiplexing.vue
+8
-3
没有找到文件。
frontend/src/components/canvas/components/Editor/EditBarView.vue
浏览文件 @
5490dd15
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</span>
</span>
</div>
</div>
<div
v-if=
"positionCheck('multiplexing')"
style=
"margin-right: -1px;width: 18px;z-index: 5"
>
<div
v-if=
"positionCheck('multiplexing')"
style=
"margin-right: -1px;width: 18px;z-index: 5"
>
<el-checkbox
size=
"medium"
@
change=
"multiplexingCheck"
/>
<el-checkbox
v-model=
"multiplexingCheckModel"
size=
"medium"
@
change=
"multiplexingCheck"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -41,6 +41,7 @@ export default {
...
@@ -41,6 +41,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
multiplexingCheckModel
:
false
,
componentType
:
null
,
componentType
:
null
,
linkageActiveStatus
:
false
,
linkageActiveStatus
:
false
,
editFilter
:
[
editFilter
:
[
...
@@ -67,6 +68,10 @@ export default {
...
@@ -67,6 +68,10 @@ export default {
])
])
},
},
mounted
()
{
mounted
()
{
if
(
this
.
showPosition
===
'multiplexing-view'
)
{
this
.
multiplexingCheckModel
=
true
this
.
multiplexingCheck
(
this
.
multiplexingCheckModel
)
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
},
},
...
@@ -86,7 +91,7 @@ export default {
...
@@ -86,7 +91,7 @@ export default {
this
.
$emit
(
'showViewDetails'
)
this
.
$emit
(
'showViewDetails'
)
},
},
positionCheck
(
position
)
{
positionCheck
(
position
)
{
return
this
.
showPosition
===
position
return
this
.
showPosition
.
includes
(
position
)
},
},
multiplexingCheck
(
val
)
{
multiplexingCheck
(
val
)
{
if
(
val
)
{
if
(
val
)
{
...
...
frontend/src/components/canvas/components/TextAttr.vue
浏览文件 @
5490dd15
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<div
v-if=
"attrShow('titlePostion')"
style=
"width: 20px;float: left;margin-top: 2px;margin-left: 10px;"
>
<div
v-if=
"attrShow('titlePostion')"
style=
"width: 20px;float: left;margin-top: 2px;margin-left: 10px;"
>
<el-tooltip
content=
"标题位置"
>
<el-tooltip
content=
"标题位置"
>
<title-postion
:style-info=
"styleInfo"
/>
<title-postion
:s
how-vertical=
"showVertical"
:s
tyle-info=
"styleInfo"
/>
</el-tooltip>
</el-tooltip>
</div>
</div>
<!--tab 内部组件样式-->
<!--tab 内部组件样式-->
...
@@ -181,7 +181,6 @@
...
@@ -181,7 +181,6 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
Hyperlinks
from
'@/components/canvas/components/Editor/Hyperlinks'
import
VideoLinks
from
'@/components/canvas/components/Editor/VideoLinks'
import
VideoLinks
from
'@/components/canvas/components/Editor/VideoLinks'
import
StreamMediaLinks
from
'@/components/canvas/components/Editor/StreamMediaLinks'
import
StreamMediaLinks
from
'@/components/canvas/components/Editor/StreamMediaLinks'
import
DateFormat
from
'@/components/canvas/components/Editor/DateFormat'
import
DateFormat
from
'@/components/canvas/components/Editor/DateFormat'
...
@@ -189,7 +188,7 @@ import { COLOR_PANEL } from '@/views/chart/chart/chart'
...
@@ -189,7 +188,7 @@ import { COLOR_PANEL } from '@/views/chart/chart/chart'
import
FrameLinks
from
'@/components/canvas/components/Editor/FrameLinks'
import
FrameLinks
from
'@/components/canvas/components/Editor/FrameLinks'
export
default
{
export
default
{
components
:
{
FrameLinks
,
Hyperlinks
,
DateFormat
,
VideoLinks
,
StreamMediaLinks
},
components
:
{
FrameLinks
,
DateFormat
,
VideoLinks
,
StreamMediaLinks
},
props
:
{
props
:
{
scrollLeft
:
{
scrollLeft
:
{
type
:
Number
,
type
:
Number
,
...
@@ -356,6 +355,9 @@ export default {
...
@@ -356,6 +355,9 @@ export default {
canvasWidth
()
{
canvasWidth
()
{
return
this
.
canvasStyleData
.
width
*
this
.
curCanvasScale
.
scalePointWidth
return
this
.
canvasStyleData
.
width
*
this
.
curCanvasScale
.
scalePointWidth
},
},
showVertical
()
{
return
!
[
'textSelectGridWidget'
,
'numberSelectGridWidget'
].
includes
(
this
.
curComponent
.
serviceName
)
},
...
mapState
([
...
mapState
([
'curComponent'
,
'curComponent'
,
'curCanvasScale'
,
'curCanvasScale'
,
...
...
frontend/src/components/canvas/custom-component/UserView.vue
浏览文件 @
5490dd15
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
}
}
},
},
editBarViewShowFlag
()
{
editBarViewShowFlag
()
{
return
(
this
.
active
&&
this
.
inTab
&&
!
this
.
mobileLayoutStatus
)
||
this
.
showPosition
===
'multiplexing'
return
(
this
.
active
&&
this
.
inTab
&&
!
this
.
mobileLayoutStatus
)
||
this
.
showPosition
.
includes
(
'multiplexing'
)
},
},
charViewShowFlag
()
{
charViewShowFlag
()
{
return
this
.
httpRequest
.
status
&&
this
.
chart
.
type
&&
!
this
.
chart
.
type
.
includes
(
'table'
)
&&
!
this
.
chart
.
type
.
includes
(
'text'
)
&&
this
.
chart
.
type
!==
'label'
&&
this
.
renderComponent
()
===
'echarts'
return
this
.
httpRequest
.
status
&&
this
.
chart
.
type
&&
!
this
.
chart
.
type
.
includes
(
'table'
)
&&
!
this
.
chart
.
type
.
includes
(
'text'
)
&&
this
.
chart
.
type
!==
'label'
&&
this
.
renderComponent
()
===
'echarts'
...
...
frontend/src/components/dataease/DeOutWidget.vue
浏览文件 @
5490dd15
<
template
>
<
template
>
<div
ref=
"myContainer"
class=
"my-container"
>
<div
ref=
"myContainer"
class=
"my-container"
>
<div
ref=
"conditionMain"
class=
"condition-main"
:class=
"mainClass
"
>
<div
ref=
"conditionMain"
:style=
"outsideStyle"
class=
"condition-main
"
>
<div
v-if=
"element.options.attrs.title"
ref=
"deTitleContainer"
class=
"condition-title"
>
<div
v-if=
"element.options.attrs.title"
ref=
"deTitleContainer"
:style=
"titleStyle"
class=
"condition-title"
>
<div
class=
"condition-title-absolute"
>
<div
class=
"condition-title-absolute"
>
<div
class=
"first-title"
>
<div
class=
"first-title"
>
<div
class=
"span-container"
>
<div
class=
"span-container"
>
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<div
<div
ref=
"deContentContainer"
ref=
"deContentContainer"
class=
"condition-content"
class=
"condition-content"
:style=
"titleStyle"
:class=
"element.options.attrs.title ? '' : 'condition-content-default'"
:class=
"element.options.attrs.title ? '' : 'condition-content-default'"
>
>
<div
class=
"condition-content-container"
>
<div
class=
"condition-content-container"
>
...
@@ -43,7 +44,6 @@
...
@@ -43,7 +44,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
elementResizeDetectorMaker
from
'element-resize-detector'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'DeOutWidget'
,
name
:
'DeOutWidget'
,
...
@@ -81,7 +81,9 @@ export default {
...
@@ -81,7 +81,9 @@ export default {
showNumber
:
false
,
showNumber
:
false
,
mainClass
:
''
,
mainClass
:
''
,
mainHeight
:
75
,
mainHeight
:
75
,
duHeight
:
46
duHeight
:
46
,
titleStyle
:
null
,
outsideStyle
:
null
}
}
},
},
computed
:
{
computed
:
{
...
@@ -101,61 +103,43 @@ export default {
...
@@ -101,61 +103,43 @@ export default {
])
])
},
},
watch
:
{
watch
:
{
element
:
{
'element.style'
:
{
handler
()
{
handler
(
val
)
{
this
.
watchSize
(
)
this
.
handlerPositionChange
(
val
)
},
},
deep
:
true
deep
:
true
,
immediate
:
true
}
}
},
},
mounted
()
{
mounted
()
{
this
.
watchSize
()
//
this.watchSize()
},
},
created
()
{
created
()
{
// console.log('aaaaaa')
const
{
horizontal
,
vertical
}
=
this
.
element
.
style
this
.
$set
(
this
.
element
.
style
,
'horizontal'
,
horizontal
||
'left'
)
this
.
$set
(
this
.
element
.
style
,
'vertical'
,
vertical
||
'top'
)
},
},
methods
:
{
methods
:
{
handlerPositionChange
(
val
)
{
watchSize
()
{
const
{
horizontal
=
'left'
,
vertical
=
'top'
}
=
val
const
erd
=
elementResizeDetectorMaker
()
this
.
titleStyle
=
{
erd
.
listenTo
(
this
.
$refs
.
myContainer
,
ele
=>
{
width
:
'100%'
,
const
deContentContainer
=
this
.
$refs
.
deContentContainer
textAlign
:
horizontal
const
height
=
ele
.
offsetHeight
}
this
.
mainHeight
=
height
this
.
outsideStyle
=
{
if
(
!
this
.
element
.
options
.
attrs
.
title
)
{
flexWrap
:
'wrap'
this
.
duHeight
=
this
.
mainHeight
}
deContentContainer
.
style
.
marginLeft
=
'0px'
if
(
vertical
!==
'top'
)
{
return
this
.
titleStyle
=
null
this
.
outsideStyle
=
{
flexDirection
:
horizontal
===
'right'
?
'row-reverse'
:
''
,
alignItems
:
'center'
}
}
const
titleWidth
=
this
.
$refs
.
deTitle
.
offsetWidth
}
this
.
$nextTick
(()
=>
{
let
numRange
=
0
let
min
=
this
.
element
.
style
.
fontSize
*
2
+
30
if
(
this
.
element
.
component
===
'de-number-range'
)
{
min
=
this
.
element
.
style
.
fontSize
*
2
+
55
numRange
=
25
}
if
(
height
<
min
)
{
this
.
duHeight
=
height
-
numRange
this
.
mainClass
=
'condition-main-line'
if
(
deContentContainer
)
{
deContentContainer
.
style
.
top
=
'0px'
deContentContainer
.
style
.
marginLeft
=
(
titleWidth
+
15
)
+
'px'
}
}
else
{
this
.
duHeight
=
height
-
titleWidth
+
numRange
this
.
mainClass
=
''
if
(
deContentContainer
)
{
deContentContainer
.
style
.
top
=
'2em'
deContentContainer
.
style
.
marginLeft
=
'0px'
}
}
})
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -167,7 +151,6 @@ export default {
...
@@ -167,7 +151,6 @@ export default {
bottom
:
0px
;
bottom
:
0px
;
left
:
0px
;
left
:
0px
;
}
}
.ccondition-main
{
.ccondition-main
{
position
:
absolute
;
position
:
absolute
;
overflow
:
auto
;
overflow
:
auto
;
...
@@ -175,53 +158,23 @@ export default {
...
@@ -175,53 +158,23 @@ export default {
right
:
0px
;
right
:
0px
;
bottom
:
0px
;
bottom
:
0px
;
left
:
0px
;
left
:
0px
;
display
:
flex
;
}
}
.condition-title
{
.condition-title
{
top
:
0px
;
right
:
0px
;
bottom
:
0px
;
left
:
0px
;
position
:
absolute
;
height
:
2em
;
height
:
2em
;
cursor
:
-
webkit-grab
;
cursor
:
-
webkit-grab
;
line-height
:
2em
;
white-space
:
nowrap
;
}
}
.first-title
{
width
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
color
:
inherit
;
display
:
flex
;
align-items
:
center
;
}
.condition-title-absolute
{
right
:
0px
;
bottom
:
0px
;
position
:
absolute
;
top
:
0px
;
left
:
4px
;
display
:
flex
;
align-items
:
flex-end
;
}
.span-container
{
.span-container
{
overflow
:
hidden
auto
;
overflow
:
hidden
auto
;
position
:
relative
;
position
:
relative
;
padding
:
0
5px
;
padding
:
0
5px
;
}
}
.condition-content
{
.condition-content
{
overflow
:
auto
hidden
;
overflow
:
auto
hidden
;
top
:
2em
;
left
:
0px
;
right
:
0px
;
bottom
:
0px
;
position
:
absolute
;
letter-spacing
:
0px
!
important
;
letter-spacing
:
0px
!
important
;
}
}
.condition-content-container
{
.condition-content-container
{
position
:
relative
;
position
:
relative
;
display
:
table
;
display
:
table
;
...
@@ -229,7 +182,6 @@ export default {
...
@@ -229,7 +182,6 @@ export default {
height
:
100%
;
height
:
100%
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.first-element
{
.first-element
{
position
:
relative
;
position
:
relative
;
display
:
table-cell
;
display
:
table-cell
;
...
@@ -238,34 +190,29 @@ export default {
...
@@ -238,34 +190,29 @@ export default {
padding
:
0px
;
padding
:
0px
;
height
:
100%
;
height
:
100%
;
}
}
.first-element-contaner
{
.first-element-contaner
{
width
:
calc
(
100%
-
10px
);
width
:
calc
(
100%
-
10px
);
background
:
initial
;
background
:
initial
;
position
:
absolute
;
bottom
:
5px
;
margin
:
0
4px
;
margin
:
0
4px
;
div
{
div
{
width
:
100%
;
width
:
100%
;
}
}
display
:
flex
;
display
:
flex
;
align-items
:
flex-end
;
align-items
:
flex-end
;
}
}
.first-element-grid-contaner
{
.first-element-grid-contaner
{
background
:
#fff
;
background
:
#fff
;
border
:
1px
solid
#d7dae2
;
border
:
1px
solid
#d7dae2
;
top
:
5px
;
top
:
5px
;
}
}
.condition-main-line
{
.condition-main-line
{
height
:
40px
!
important
;
height
:
40px
!
important
;
}
}
.condition-main
{
display
:
flex
;
padding-top
:
5px
;
}
.condition-content-default
{
.condition-content-default
{
inset
:
0px
0px
0px
!
important
;
inset
:
0px
0px
0px
!
important
;
}
}
</
style
>
</
style
>
frontend/src/components/widget/DeWidget/TitlePostion.vue
浏览文件 @
5490dd15
...
@@ -7,17 +7,16 @@
...
@@ -7,17 +7,16 @@
<el-col>
<el-col>
<el-form
ref=
"tabsStyleForm"
:model=
"styleInfo"
label-width=
"80px"
size=
"mini"
class=
"demo-form-inline"
>
<el-form
ref=
"tabsStyleForm"
:model=
"styleInfo"
label-width=
"80px"
size=
"mini"
class=
"demo-form-inline"
>
<el-form-item
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"styleInfo.h
Position"
size=
"mini"
@
change=
"styleChange
"
>
<el-radio-group
v-model=
"styleInfo.h
orizontal"
size=
"mini
"
>
<el-radio-button
label=
"left"
>
{{
$t
(
'chart.text_pos_left'
)
}}
</el-radio-button>
<el-radio-button
label=
"left"
>
{{
$t
(
'chart.text_pos_left'
)
}}
</el-radio-button>
<el-radio-button
label=
"center"
>
{{
$t
(
'chart.text_pos_center'
)
}}
</el-radio-button>
<el-radio-button
label=
"center"
>
{{
$t
(
'chart.text_pos_center'
)
}}
</el-radio-button>
<el-radio-button
label=
"right"
>
{{
$t
(
'chart.text_pos_right'
)
}}
</el-radio-button>
<el-radio-button
label=
"right"
>
{{
$t
(
'chart.text_pos_right'
)
}}
</el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_v_position')"
class=
"form-item"
>
<el-form-item
v-if=
"showVertical"
:label=
"$t('chart.text_v_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"styleInfo.v
Position"
size=
"mini"
@
change=
"styleChange
"
>
<el-radio-group
v-model=
"styleInfo.v
ertical"
size=
"mini
"
>
<el-radio-button
label=
"top"
>
{{
$t
(
'chart.text_pos_top'
)
}}
</el-radio-button>
<el-radio-button
label=
"top"
>
{{
$t
(
'chart.text_pos_top'
)
}}
</el-radio-button>
<el-radio-button
label=
"center"
>
{{
$t
(
'chart.text_pos_center'
)
}}
</el-radio-button>
<el-radio-button
label=
"center"
>
{{
$t
(
'chart.text_pos_center'
)
}}
</el-radio-button>
<el-radio-button
label=
"bottom"
>
{{
$t
(
'chart.text_pos_bottom'
)
}}
</el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
...
@@ -37,25 +36,10 @@ export default {
...
@@ -37,25 +36,10 @@ export default {
styleInfo
:
{
styleInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
null
default
:
null
}
},
},
showVertical
:
{
type
:
Boolean
,
data
()
{
default
:
false
return
{
defaultPosition
:
{
hPosition
:
'left'
,
vPosition
:
'center'
}
}
},
created
()
{
},
methods
:
{
styleChange
()
{
this
.
$store
.
commit
(
'recordStyleChange'
)
}
}
}
}
...
...
frontend/src/views/panel/ViewSelect/multiplexing.vue
浏览文件 @
5490dd15
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
v-if=
"selectedPanel"
v-if=
"selectedPanel"
:component-data=
"componentData"
:component-data=
"componentData"
:canvas-style-data=
"canvasStyleData"
:canvas-style-data=
"canvasStyleData"
:show-position=
"
'multiplexing'
"
:show-position=
"
showPosition
"
/>
/>
<el-col
v-else
style=
"height: 100%;"
>
<el-col
v-else
style=
"height: 100%;"
>
<el-row
style=
"height: 100%; background-color: var(--ContentBG);"
class=
"custom-position"
>
<el-row
style=
"height: 100%; background-color: var(--ContentBG);"
class=
"custom-position"
>
...
@@ -45,6 +45,7 @@ export default {
...
@@ -45,6 +45,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
showPosition
:
'multiplexing'
,
activeName
:
'PanelList'
,
activeName
:
'PanelList'
,
viewLoading
:
false
,
viewLoading
:
false
,
panelLoading
:
false
,
panelLoading
:
false
,
...
@@ -60,21 +61,25 @@ export default {
...
@@ -60,21 +61,25 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$store
.
commit
(
'initCurMultiplexingComponents'
)
},
},
methods
:
{
methods
:
{
showDetails
(
params
)
{
showDetails
(
params
)
{
this
.
$store
.
commit
(
'initCurMultiplexingComponents'
)
const
_this
=
this
const
_this
=
this
_this
.
selectedPanel
=
params
_this
.
selectedPanel
=
params
if
(
params
.
showType
===
'panel'
)
{
if
(
params
.
showType
===
'panel'
)
{
this
.
panelLoading
=
true
_this
.
showPosition
=
'multiplexing'
_this
.
panelLoading
=
true
findOne
(
params
.
showId
).
then
(
response
=>
{
findOne
(
params
.
showId
).
then
(
response
=>
{
this
.
panelLoading
=
false
_
this
.
panelLoading
=
false
panelDataPrepare
(
JSON
.
parse
(
response
.
data
.
panelData
),
JSON
.
parse
(
response
.
data
.
panelStyle
),
function
(
rsp
)
{
panelDataPrepare
(
JSON
.
parse
(
response
.
data
.
panelData
),
JSON
.
parse
(
response
.
data
.
panelStyle
),
function
(
rsp
)
{
_this
.
componentData
=
rsp
.
componentData
_this
.
componentData
=
rsp
.
componentData
_this
.
canvasStyleData
=
rsp
.
componentStyle
_this
.
canvasStyleData
=
rsp
.
componentStyle
})
})
})
})
}
else
if
(
params
.
showType
===
'view'
)
{
}
else
if
(
params
.
showType
===
'view'
)
{
_this
.
showPosition
=
'multiplexing-view'
_this
.
componentData
=
[]
_this
.
componentData
=
[]
const
componentId
=
uuid
.
v1
()
const
componentId
=
uuid
.
v1
()
_this
.
canvasStyleData
=
deepCopy
(
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
_this
.
canvasStyleData
=
deepCopy
(
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论