Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
f01ca979
Unverified
提交
f01ca979
authored
4月 01, 2022
作者:
王嘉豪
提交者:
GitHub
4月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2022 from dataease/dev
Dev
上级
32918108
7f9aa976
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
66 行增加
和
15 行删除
+66
-15
FrameLinks.vue
...nd/src/components/canvas/components/Editor/FrameLinks.vue
+2
-0
Hyperlinks.vue
...nd/src/components/canvas/components/Editor/Hyperlinks.vue
+2
-0
StreamMediaLinks.vue
.../components/canvas/components/Editor/StreamMediaLinks.vue
+16
-10
VideoLinks.vue
...nd/src/components/canvas/components/Editor/VideoLinks.vue
+2
-0
DeStreamMedia.vue
.../src/components/canvas/custom-component/DeStreamMedia.vue
+25
-2
urlUtils.js
frontend/src/utils/urlUtils.js
+9
-0
index.vue
frontend/src/views/panel/LinkJumpSet/index.vue
+5
-3
form.vue
frontend/src/views/system/datasource/form.vue
+5
-0
没有找到文件。
frontend/src/components/canvas/components/Editor/FrameLinks.vue
浏览文件 @
f01ca979
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
checkAddHttp
}
from
'@/utils/urlUtils'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -69,6 +70,7 @@ export default {
...
@@ -69,6 +70,7 @@ export default {
this
.
linkInfoTemp
=
deepCopy
(
this
.
linkInfo
)
this
.
linkInfoTemp
=
deepCopy
(
this
.
linkInfo
)
},
},
onSubmit
()
{
onSubmit
()
{
this
.
linkInfoTemp
.
src
=
checkAddHttp
(
this
.
linkInfoTemp
.
src
)
this
.
curComponent
.
frameLinks
=
this
.
linkInfoTemp
this
.
curComponent
.
frameLinks
=
this
.
linkInfoTemp
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
state
.
styleChangeTimes
++
this
.
popoverClose
()
this
.
popoverClose
()
...
...
frontend/src/components/canvas/components/Editor/Hyperlinks.vue
浏览文件 @
f01ca979
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
checkAddHttp
}
from
'@/utils/urlUtils'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -60,6 +61,7 @@ export default {
...
@@ -60,6 +61,7 @@ export default {
},
},
methods
:
{
methods
:
{
onSubmit
()
{
onSubmit
()
{
this
.
linkInfo
.
content
=
checkAddHttp
(
this
.
linkInfo
.
content
)
this
.
curComponent
.
hyperlinks
=
deepCopy
(
this
.
linkInfo
)
this
.
curComponent
.
hyperlinks
=
deepCopy
(
this
.
linkInfo
)
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
state
.
styleChangeTimes
++
this
.
popoverClose
()
this
.
popoverClose
()
...
...
frontend/src/components/canvas/components/Editor/StreamMediaLinks.vue
浏览文件 @
f01ca979
...
@@ -13,28 +13,30 @@
...
@@ -13,28 +13,30 @@
<!--
<el-radio
:label=
"'hls'"
>
HLS 直播
</el-radio>
-->
<!--
<el-radio
:label=
"'hls'"
>
HLS 直播
</el-radio>
-->
<!--
<el-radio
:label=
"'rtmp'"
>
{{
$t
(
'panel.streaming_media'
)
}}
</el-radio>
-->
<!--
<el-radio
:label=
"'rtmp'"
>
{{
$t
(
'panel.streaming_media'
)
}}
</el-radio>
-->
</el-radio-group>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('panel.auto_play')"
>
<el-switch
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].autoplay"
size=
"mini"
/>
<span
style=
"color: #909399; font-size: 8px;margin-left: 3px"
>
<span
style=
"color: #909399; font-size: 8px;margin-left: 3px"
>
Tips:
{{
$t
(
'panel.live_tips'
)
}}
Tips:
{{
$t
(
'panel.live_tips'
)
}}
</span>
</span>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"streamMediaInfoTemp.videoType==='flv'"
:label=
"$t('panel.play_frequency')"
>
<el-row
v-if=
"streamMediaInfoTemp.videoType==='flv'"
>
<el-radio-group
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].loop"
>
<el-form-item
:label=
"$t('panel.is_live')"
>
<el-radio
:label=
"false"
>
{{
$t
(
'panel.play_once'
)
}}
</el-radio>
<el-radio
:label=
"true"
>
{{
$t
(
'panel.play_circle'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if=
"streamMediaInfoTemp.videoType==='flv'"
:label=
"$t('panel.is_live')"
>
<el-radio-group
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].isLive"
>
<el-radio-group
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].isLive"
>
<el-radio
:label=
"true"
>
{{
$t
(
'panel.yes'
)
}}
</el-radio>
<el-radio
:label=
"true"
>
{{
$t
(
'panel.yes'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'panel.no'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'panel.no'
)
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"!streamMediaInfoTemp[streamMediaInfoTemp.videoType].isLive"
:label=
"$t('panel.auto_play')"
>
<el-switch
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].autoplay"
size=
"mini"
/>
</el-form-item>
<el-form-item
v-if=
"!streamMediaInfoTemp[streamMediaInfoTemp.videoType].isLive"
:label=
"$t('panel.play_frequency')"
>
<el-radio-group
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].loop"
>
<el-radio
:label=
"false"
>
{{
$t
(
'panel.play_once'
)
}}
</el-radio>
<el-radio
:label=
"true"
>
{{
$t
(
'panel.play_circle'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('panel.video_links')"
>
<el-form-item
:label=
"$t('panel.video_links')"
>
<el-input
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].url"
/>
<el-input
v-model=
"streamMediaInfoTemp[streamMediaInfoTemp.videoType].url"
/>
</el-form-item>
</el-form-item>
</el-row>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
{{
$t
(
'panel.confirm'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
{{
$t
(
'panel.confirm'
)
}}
</el-button>
<el-button
@
click=
"onClose"
>
{{
$t
(
'panel.cancel'
)
}}
</el-button>
<el-button
@
click=
"onClose"
>
{{
$t
(
'panel.cancel'
)
}}
</el-button>
...
@@ -48,6 +50,8 @@
...
@@ -48,6 +50,8 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
bus
from
'@/utils/bus'
import
{
checkAddHttp
}
from
'@/utils/urlUtils'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -90,8 +94,10 @@ export default {
...
@@ -90,8 +94,10 @@ export default {
this
.
streamMediaInfoTemp
=
deepCopy
(
this
.
linkInfo
)
this
.
streamMediaInfoTemp
=
deepCopy
(
this
.
linkInfo
)
},
},
onSubmit
()
{
onSubmit
()
{
this
.
streamMediaInfoTemp
[
this
.
streamMediaInfoTemp
.
videoType
].
url
=
checkAddHttp
(
this
.
streamMediaInfoTemp
[
this
.
streamMediaInfoTemp
.
videoType
].
url
)
this
.
curComponent
.
streamMediaLinks
=
this
.
streamMediaInfoTemp
this
.
curComponent
.
streamMediaLinks
=
this
.
streamMediaInfoTemp
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
state
.
styleChangeTimes
++
bus
.
$emit
(
'streamMediaLinksChange-'
+
this
.
curComponent
.
id
)
this
.
popoverClose
()
this
.
popoverClose
()
},
},
onClose
()
{
onClose
()
{
...
...
frontend/src/components/canvas/components/Editor/VideoLinks.vue
浏览文件 @
f01ca979
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
checkAddHttp
}
from
'@/utils/urlUtils'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -84,6 +85,7 @@ export default {
...
@@ -84,6 +85,7 @@ export default {
this
.
linkInfoTemp
=
deepCopy
(
this
.
linkInfo
)
this
.
linkInfoTemp
=
deepCopy
(
this
.
linkInfo
)
},
},
onSubmit
()
{
onSubmit
()
{
this
.
linkInfoTemp
[
this
.
linkInfoTemp
.
videoType
].
sources
[
0
].
src
=
checkAddHttp
(
this
.
linkInfoTemp
[
this
.
linkInfoTemp
.
videoType
].
sources
[
0
].
src
)
this
.
curComponent
.
videoLinks
=
this
.
linkInfoTemp
this
.
curComponent
.
videoLinks
=
this
.
linkInfoTemp
this
.
$store
.
state
.
styleChangeTimes
++
this
.
$store
.
state
.
styleChangeTimes
++
this
.
popoverClose
()
this
.
popoverClose
()
...
...
frontend/src/components/canvas/custom-component/DeStreamMedia.vue
浏览文件 @
f01ca979
<
template
>
<
template
>
<el-row
ref=
"mainPlayer"
style=
"width: 100%;height: 100%"
>
<el-row
ref=
"mainPlayer"
style=
"width: 100%;height: 100%"
>
<div
v-if=
"element.streamMediaLinks[element.streamMediaLinks.videoType].url"
class=
"video-container"
>
<div
v-if=
"element.streamMediaLinks[element.streamMediaLinks.videoType].url"
class=
"video-container"
>
<video
ref=
"player"
class=
"centered-video"
name=
"centeredVideo"
:controls=
"editMode!=='edit'"
:loop=
"pOption.loop"
muted
/>
<video
ref=
"player"
class=
"centered-video"
name=
"centeredVideo"
:loop=
"pOption.loop"
controls
muted
/>
<div
v-if=
"editMode==='edit'"
class=
"stream-mask"
/>
</div>
</div>
<div
v-else
class=
"info-stream-class"
>
<div
v-else
class=
"info-stream-class"
>
{{
$t
(
'panel.stream_media_add_tips'
)
}}
{{
$t
(
'panel.stream_media_add_tips'
)
}}
...
@@ -12,6 +13,7 @@
...
@@ -12,6 +13,7 @@
import
flvjs
from
'flv.js'
import
flvjs
from
'flv.js'
import
'@/custom-theme.css'
import
'@/custom-theme.css'
import
bus
from
'@/utils/bus'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -67,6 +69,9 @@ export default {
...
@@ -67,6 +69,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
initOption
()
this
.
initOption
()
bus
.
$on
(
'streamMediaLinksChange-'
+
this
.
element
.
id
,
()
=>
{
this
.
initOption
()
})
},
},
methods
:
{
methods
:
{
initOption
()
{
initOption
()
{
...
@@ -89,7 +94,7 @@ export default {
...
@@ -89,7 +94,7 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.info-stream-class
{
.info-stream-class
{
text-align
:
center
;
text-align
:
center
;
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
...
@@ -99,16 +104,19 @@ export default {
...
@@ -99,16 +104,19 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
color
:
#000000
;
color
:
#000000
;
}
}
.move-bg
{
.move-bg
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background-color
:
#000000
;
background-color
:
#000000
;
}
}
.video-container
{
.video-container
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background-color
:
#000000
;
background-color
:
#000000
;
}
}
.centered-video
{
.centered-video
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
@@ -116,5 +124,20 @@ export default {
...
@@ -116,5 +124,20 @@ export default {
margin-right
:
auto
;
margin-right
:
auto
;
margin-bottom
:
auto
;
margin-bottom
:
auto
;
}
}
.stream-mask
{
display
:
flex
;
height
:
calc
(
100%
-
60px
)
!important
;
width
:
100%
!important
;
background-color
:
#5c5e61
;
opacity
:
0
;
position
:
absolute
;
top
:
0px
;
left
:
0px
;
z-index
:
2
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
</
style
>
frontend/src/utils/urlUtils.js
0 → 100644
浏览文件 @
f01ca979
export
function
checkAddHttp
(
url
)
{
if
(
!
url
)
{
return
url
}
else
if
(
/^
(
http
(
s
)?
:
\/\/)
/
.
test
(
url
.
toLowerCase
()))
{
return
url
}
else
{
return
'http://'
+
url
}
}
frontend/src/views/panel/LinkJumpSet/index.vue
浏览文件 @
f01ca979
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
:disable-branch-nodes=
"true"
:disable-branch-nodes=
"true"
:normalizer=
"normalizer"
:normalizer=
"normalizer"
:placeholder=
"$t('panel.select_jump_panel')"
:placeholder=
"$t('panel.select_jump_panel')"
:no
ChildrenT
ext=
"$t('commons.treeselect.no_children_text')"
:no
-children-t
ext=
"$t('commons.treeselect.no_children_text')"
:no
OptionsT
ext=
"$t('commons.treeselect.no_options_text')"
:no
-options-t
ext=
"$t('commons.treeselect.no_options_text')"
:no
ResultsT
ext=
"$t('commons.treeselect.no_results_text')"
:no
-results-t
ext=
"$t('commons.treeselect.no_results_text')"
style=
"margin-right: 10px"
style=
"margin-right: 10px"
@
select=
"panelNodeClick"
@
select=
"panelNodeClick"
@
input=
"inputVal"
@
input=
"inputVal"
...
@@ -166,6 +166,7 @@ import { groupTree } from '@/api/panel/panel'
...
@@ -166,6 +166,7 @@ import { groupTree } from '@/api/panel/panel'
import
{
detailList
}
from
'@/api/panel/panelView'
import
{
detailList
}
from
'@/api/panel/panelView'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
checkAddHttp
}
from
'@/utils/urlUtils'
export
default
{
export
default
{
components
:
{
},
components
:
{
},
...
@@ -271,6 +272,7 @@ export default {
...
@@ -271,6 +272,7 @@ export default {
this
.
$emit
(
'closeJumpSetDialog'
)
this
.
$emit
(
'closeJumpSetDialog'
)
},
},
save
()
{
save
()
{
this
.
linkJumpInfo
.
content
=
checkAddHttp
(
this
.
linkJumpInfo
.
content
)
updateJumpSet
(
this
.
linkJump
).
then
(
rsp
=>
{
updateJumpSet
(
this
.
linkJump
).
then
(
rsp
=>
{
this
.
$message
({
this
.
$message
({
message
:
'保存成功'
,
message
:
'保存成功'
,
...
...
frontend/src/views/system/datasource/form.vue
浏览文件 @
f01ca979
...
@@ -539,8 +539,13 @@ export default {
...
@@ -539,8 +539,13 @@ export default {
return
return
}
}
let
configuration
=
JSON
.
parse
(
child
.
configuration
)
let
configuration
=
JSON
.
parse
(
child
.
configuration
)
if
(
!
configuration
){
return
}
switch
(
this
.
form
.
type
)
{
switch
(
this
.
form
.
type
)
{
case
'mysql'
:
case
'mysql'
:
case
'TiDB'
:
case
'StarRocks'
:
case
'hive'
:
case
'hive'
:
case
'mariadb'
:
case
'mariadb'
:
case
'ds_doris'
:
case
'ds_doris'
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论