Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
803792fe
提交
803792fe
authored
5月 30, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
d49f617c
030ffb3e
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
61 行增加
和
26 行删除
+61
-26
ExtChartViewMapper.xml
backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml
+2
-0
index.vue
frontend/src/components/DeDrag/index.vue
+3
-0
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+5
-4
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+16
-0
UserView.vue
frontend/src/components/canvas/custom-component/UserView.vue
+20
-9
component-list.js
.../src/components/canvas/custom-component/component-list.js
+1
-2
gauge.js
frontend/src/views/chart/chart/gauge/gauge.js
+1
-1
XAxisSelectorAntV.vue
...ws/chart/components/component-style/XAxisSelectorAntV.vue
+1
-1
ChartDragItem.vue
...nd/src/views/chart/components/drag-item/ChartDragItem.vue
+1
-1
LabelNormalText.vue
...end/src/views/chart/components/normal/LabelNormalText.vue
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+10
-7
没有找到文件。
backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml
浏览文件 @
803792fe
...
...
@@ -365,6 +365,7 @@
custom_filter,
drill_fields,
SNAPSHOT,
senior,
data_from)
SELECT pv_copy.chart_view_id AS id,
`name`,
...
...
@@ -392,6 +393,7 @@
custom_filter,
drill_fields,
SNAPSHOT,
senior,
data_from
FROM (
SELECT panel_id,
...
...
frontend/src/components/DeDrag/index.vue
浏览文件 @
803792fe
...
...
@@ -751,6 +751,9 @@ export default {
}
return
[
null
,
null
]
},
triggerPluginEdit
(
e
)
{
this
.
elementMouseDown
(
e
)
},
// 元素触摸按下
elementTouchDown
(
e
)
{
eventsFor
=
events
.
touch
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
803792fe
...
...
@@ -2,10 +2,11 @@
<div
class=
"bg"
:style=
"customStyle"
@
scroll=
"canvasScroll"
>
<div
id=
"canvasInfoMain"
ref=
"canvasInfoMain"
:style=
"canvasInfoMainStyle"
>
<el-row
v-if=
"showUnpublishedArea"
class=
"custom-position"
>
<pre>
<svg-icon
icon-class=
"unpublished"
style=
"font-size: 75px"
/>
{{
$t
(
'panel.panel_off'
)
}}
</pre>
<div
style=
"text-align: center"
>
<svg-icon
icon-class=
"unpublished"
style=
"font-size: 75px"
/>
<br>
<span>
{{
$t
(
'panel.panel_off'
)
}}
</span>
</div>
</el-row>
<el-row
v-else-if=
"componentDataShow.length===0"
class=
"custom-position"
>
{{
$t
(
'panel.panelNull'
)
}}
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
803792fe
...
...
@@ -100,6 +100,7 @@
:h=
"getShapeStyleIntDeDrag(item.style,'height')"
:canvas-style-data=
"canvasStyleData"
@
input=
"handleInput"
@
trigger-plugin-edit=
"pluginEditHandler"
/>
</de-drag>
<!--拖拽阴影部分-->
...
...
@@ -1067,6 +1068,21 @@ export default {
created
()
{
},
methods
:
{
pluginEditHandler
({
e
,
id
})
{
let
index
=
-
1
for
(
let
i
=
0
;
i
<
this
.
componentData
.
length
;
i
++
)
{
const
item
=
this
.
componentData
[
i
]
const
itemId
=
item
.
id
if
(
id
===
itemId
)
{
index
=
i
break
}
}
if
(
index
>=
0
)
{
const
_this
=
this
_this
.
$refs
.
deDragRef
&&
_this
.
$refs
.
deDragRef
[
index
]
&&
_this
.
$refs
.
deDragRef
[
index
].
triggerPluginEdit
&&
_this
.
$refs
.
deDragRef
[
index
].
triggerPluginEdit
(
e
)
}
},
linkageActiveCheck
(
item
)
{
return
this
.
linkageSettingStatus
&&
item
===
this
.
curLinkageView
},
...
...
frontend/src/components/canvas/custom-component/UserView.vue
浏览文件 @
803792fe
...
...
@@ -36,6 +36,7 @@
class="chart-class"
@onChartClick="chartClick"
@onJumpClick="jumpClick"
@trigger-edit-click="pluginEditHandler"
/>
<chart-component
v-else-if=
"charViewShowFlag"
...
...
@@ -417,6 +418,9 @@ export default {
}
},
methods
:
{
pluginEditHandler
(
e
)
{
this
.
$emit
(
'trigger-plugin-edit'
,
{
e
,
id
:
this
.
element
.
id
})
},
batchOptChange
(
param
)
{
if
(
this
.
curBatchOptComponents
.
includes
(
this
.
element
.
propValue
.
viewId
))
{
this
.
$store
.
state
.
styleChangeTimes
++
...
...
@@ -545,14 +549,7 @@ export default {
// 将视图传入echart组件
if
(
response
.
success
)
{
this
.
chart
=
response
.
data
if
(
this
.
isEdit
)
{
this
.
componentViewsData
[
this
.
chart
.
id
]
=
{
'title'
:
this
.
chart
.
title
,
'render'
:
this
.
chart
.
render
,
'type'
:
this
.
chart
.
type
,
'isPlugin'
:
this
.
chart
.
isPlugin
}
}
this
.
getDataOnly
(
response
.
data
)
this
.
chart
[
'position'
]
=
this
.
inTab
?
'tab'
:
'panel'
// 记录当前数据
this
.
panelViewDetailsInfo
[
id
]
=
JSON
.
stringify
(
this
.
chart
)
...
...
@@ -609,7 +606,6 @@ export default {
tableChart
.
customStyle
=
JSON
.
stringify
(
tableChart
.
customStyle
)
eventBus
.
$emit
(
'openChartDetailsDialog'
,
{
chart
:
this
.
chart
,
tableChart
:
tableChart
})
},
chartClick
(
param
)
{
if
(
this
.
drillClickDimensionList
.
length
<
this
.
chart
.
drillFields
.
length
-
1
)
{
(
this
.
chart
.
type
===
'map'
||
this
.
chart
.
type
===
'buddle-map'
)
&&
this
.
sendToChildren
(
param
)
...
...
@@ -863,6 +859,21 @@ export default {
}
this
.
mergeScale
()
}
},
getDataOnly
(
sourceResponseData
)
{
if
(
this
.
isEdit
)
{
if
((
this
.
filter
.
filter
&&
this
.
filter
.
filter
.
length
)
||
(
this
.
filter
.
linkageFilters
&&
this
.
filter
.
linkageFilters
.
length
))
{
viewData
(
this
.
chart
.
id
,
this
.
panelInfo
.
id
,
{
filter
:
[],
drill
:
[],
queryFrom
:
'panel'
}).
then
(
response
=>
{
this
.
componentViewsData
[
this
.
chart
.
id
]
=
response
.
data
})
}
else
{
this
.
componentViewsData
[
this
.
chart
.
id
]
=
sourceResponseData
}
}
}
}
}
...
...
frontend/src/components/canvas/custom-component/component-list.js
浏览文件 @
803792fe
...
...
@@ -411,8 +411,7 @@ const list = [
verticalAlign
:
'middle'
,
borderStyle
:
'solid'
,
borderColor
:
'#000000'
,
time_margin
:
0
,
padding
:
10
time_margin
:
0
},
formatInfo
:
{
openMode
:
'0'
,
...
...
frontend/src/views/chart/chart/gauge/gauge.js
浏览文件 @
803792fe
...
...
@@ -130,7 +130,7 @@ export function baseGaugeOption(chart_option, chart, scale = 1) {
}
}
}
console
.
log
(
chart_option
.
series
[
0
])
//
console.log(chart_option.series[0])
// console.log(chart_option);
componentStyle
(
chart_option
,
chart
)
return
chart_option
...
...
frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue
浏览文件 @
803792fe
...
...
@@ -71,7 +71,7 @@
</el-form-item>
<span
v-show=
"showProperty('axisLabel') && axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle('axisLabel')"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle('axisLabel')"
/>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeXAxisStyle('axisLabel')"
/>
...
...
frontend/src/views/chart/components/drag-item/ChartDragItem.vue
浏览文件 @
803792fe
...
...
@@ -257,7 +257,7 @@ export default {
.item-span-style
{
display
:
inline-block
;
width
:
10
0px
;
width
:
8
0px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
...
...
frontend/src/views/chart/components/normal/LabelNormalText.vue
浏览文件 @
803792fe
<
template
>
<div
ref=
"tableContainer"
:style=
"bg_class"
style=
"
padding: 8px;
width: 100%;height: 100%;overflow: hidden;"
>
<div
ref=
"tableContainer"
:style=
"bg_class"
style=
"width: 100%;height: 100%;overflow: hidden;"
>
<view-track-bar
ref=
"viewTrack"
:track-menu=
"trackMenu"
class=
"track-bar"
:style=
"trackBarStyleTime"
@
trackClick=
"trackClick"
/>
<p
v-show=
"title_show"
ref=
"title"
:style=
"title_class"
>
{{
chart
.
title
}}
</p>
<div
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
803792fe
...
...
@@ -1191,7 +1191,7 @@ export default {
return
this
.
chartConfig
?
this
.
chartConfig
.
propertyInner
:
null
},
chartType
()
{
return
this
.
chart
.
type
return
this
.
chart
?
this
.
chart
.
type
:
null
},
panelInfo
()
{
return
this
.
$store
.
state
.
panel
.
panelInfo
...
...
@@ -1199,7 +1199,8 @@ export default {
...
mapState
([
'curComponent'
,
'panelViewEditInfo'
,
'allViewRender'
'allViewRender'
,
'componentViewsData'
])
/* pluginRenderOptions() {
const plugins = localStorage.getItem('plugin-views') && JSON.parse(localStorage.getItem('plugin-views')) || []
...
...
@@ -1238,6 +1239,9 @@ export default {
}
},
created
()
{
this
.
bindPluginEvent
()
this
.
initFromPanel
()
this
.
chartInit
()
const
plugins
=
localStorage
.
getItem
(
'plugin-views'
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
'plugin-views'
))
if
(
plugins
)
{
this
.
loadPluginType
()
...
...
@@ -1253,9 +1257,6 @@ export default {
}
},
mounted
()
{
this
.
bindPluginEvent
()
this
.
initFromPanel
()
this
.
chartInit
()
},
activated
()
{
},
...
...
@@ -1282,7 +1283,9 @@ export default {
this
.
resetDrill
()
this
.
initFromPanel
()
this
.
getChart
(
this
.
param
.
id
)
this
.
getData
(
this
.
param
.
id
)
if
(
this
.
componentViewsData
[
this
.
param
.
id
])
{
this
.
chart
=
this
.
componentViewsData
[
this
.
param
.
id
]
}
},
bindPluginEvent
()
{
bus
.
$on
(
'show-dimension-edit-filter'
,
this
.
showDimensionEditFilter
)
...
...
@@ -1599,7 +1602,7 @@ export default {
const
view
=
this
.
buildParam
(
true
,
'chart'
,
false
,
switchType
)
if
(
!
view
)
return
viewEditSave
(
this
.
panelInfo
.
id
,
view
).
then
(()
=>
{
this
.
getData
(
this
.
param
.
id
)
//
this.getData(this.param.id)
bus
.
$emit
(
'view-in-cache'
,
{
type
:
'propChange'
,
viewId
:
this
.
param
.
id
})
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论