Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
05ea4148
Unverified
提交
05ea4148
authored
4月 15, 2022
作者:
fit2cloud-chenyw
提交者:
GitHub
4月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2120 from dataease/pr@dev@fix_mobile_bubble_map_detail
fix: 移动端插件视图不能查看详情
上级
028db23f
9a66a586
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
28 行增加
和
19 行删除
+28
-19
UserViewDialog.vue
...src/components/canvas/custom-component/UserViewDialog.vue
+13
-9
UserViewMobileDialog.vue
...mponents/canvas/custom-component/UserViewMobileDialog.vue
+15
-10
没有找到文件。
frontend/src/components/canvas/custom-component/UserViewDialog.vue
浏览文件 @
05ea4148
...
...
@@ -41,7 +41,6 @@ import { exportDetails } from '@/api/panel/panel'
import
html2canvas
from
'html2canvasde'
import
{
hexColorToRGBA
}
from
'@/views/chart/chart/util'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
get
}
from
'@/api/system/dynamic'
export
default
{
name
:
'UserView'
,
components
:
{
LabelNormalText
,
ChartComponentS2
,
ChartComponentG2
,
DeMainContainer
,
DeContainer
,
DeAsideContainer
,
ChartComponent
,
TableNormal
,
LabelNormal
,
PluginCom
},
...
...
@@ -62,13 +61,7 @@ export default {
}
},
computed
:
{
mapChart
()
{
if
(
this
.
chart
.
type
&&
(
this
.
chart
.
type
===
'map'
||
this
.
chart
.
type
===
'buddle-map'
))
{
const
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
return
{
...
temp
,
...{
DetailAreaCode
:
this
.
curComponent
.
DetailAreaCode
}}
}
return
null
},
showChartCanvas
()
{
return
!
this
.
chart
.
type
.
includes
(
'table'
)
},
...
...
@@ -117,7 +110,18 @@ export default {
'curComponent'
,
'componentData'
,
'canvasStyleData'
])
]),
mapChart
()
{
if
(
this
.
chart
.
type
&&
(
this
.
chart
.
type
===
'map'
||
this
.
chart
.
type
===
'buddle-map'
))
{
const
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
let
DetailAreaCode
=
null
if
(
this
.
curComponent
&&
this
.
curComponent
.
DetailAreaCode
&&
this
.
curComponent
.
DetailAreaCode
.
length
)
{
DetailAreaCode
=
this
.
curComponent
.
DetailAreaCode
}
return
{
...
temp
,
...{
DetailAreaCode
:
DetailAreaCode
}}
}
return
null
}
},
mounted
()
{
this
.
element
=
deepCopy
(
this
.
curComponent
)
...
...
frontend/src/components/canvas/custom-component/UserViewMobileDialog.vue
浏览文件 @
05ea4148
...
...
@@ -30,10 +30,10 @@ import DeMainContainer from '@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
LabelNormalText
from
'@/views/chart/components/normal/LabelNormalText'
import
ChartComponentS2
from
'@/views/chart/components/ChartComponentS2'
import
PluginCom
from
'@/views/system/plugin/PluginCom'
export
default
{
name
:
'UserViewMobileDialog'
,
components
:
{
ChartComponentS2
,
LabelNormalText
,
DeContainer
,
DeMainContainer
,
ChartComponentG2
,
ChartComponent
,
TableNormal
,
LabelNormal
},
components
:
{
ChartComponentS2
,
LabelNormalText
,
DeContainer
,
DeMainContainer
,
ChartComponentG2
,
ChartComponent
,
TableNormal
,
LabelNormal
,
PluginCom
},
props
:
{
chart
:
{
type
:
Object
,
...
...
@@ -50,13 +50,7 @@ export default {
}
},
computed
:
{
mapChart
()
{
if
(
this
.
chart
.
type
&&
(
this
.
chart
.
type
===
'map'
||
this
.
chart
.
type
===
'buddle-map'
))
{
const
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
return
{
...
temp
,
...{
DetailAreaCode
:
this
.
curComponent
.
DetailAreaCode
}}
}
return
null
},
customStyle
()
{
let
style
=
{
}
...
...
@@ -83,7 +77,18 @@ export default {
'curComponent'
,
'componentData'
,
'canvasStyleData'
])
]),
mapChart
()
{
if
(
this
.
chart
.
type
&&
(
this
.
chart
.
type
===
'map'
||
this
.
chart
.
type
===
'buddle-map'
))
{
const
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
let
DetailAreaCode
=
null
if
(
this
.
curComponent
&&
this
.
curComponent
.
DetailAreaCode
&&
this
.
curComponent
.
DetailAreaCode
.
length
)
{
DetailAreaCode
=
this
.
curComponent
.
DetailAreaCode
}
return
{
...
temp
,
...{
DetailAreaCode
:
DetailAreaCode
}}
}
return
null
}
},
methods
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论