Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
d2e40baf
提交
d2e40baf
authored
10月 20, 2021
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:增加默认颜色等
上级
92bd7041
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
140 行增加
和
99 行删除
+140
-99
more_v.svg
frontend/src/icons/svg/more_v.svg
+1
-0
chart.js
frontend/src/views/chart/chart/chart.js
+13
-0
ChartComponentG2.vue
frontend/src/views/chart/components/ChartComponentG2.vue
+0
-2
BackgroundColorSelector.vue
...rt/components/component-style/BackgroundColorSelector.vue
+4
-3
LegendSelector.vue
...views/chart/components/component-style/LegendSelector.vue
+4
-3
LegendSelectorAntV.vue
...s/chart/components/component-style/LegendSelectorAntV.vue
+4
-3
SplitSelector.vue
.../views/chart/components/component-style/SplitSelector.vue
+7
-6
SplitSelectorAntV.vue
...ws/chart/components/component-style/SplitSelectorAntV.vue
+5
-4
TitleSelector.vue
.../views/chart/components/component-style/TitleSelector.vue
+4
-3
TitleSelectorAntV.vue
...ws/chart/components/component-style/TitleSelectorAntV.vue
+4
-3
XAxisSelector.vue
.../views/chart/components/component-style/XAxisSelector.vue
+6
-5
XAxisSelectorAntV.vue
...ws/chart/components/component-style/XAxisSelectorAntV.vue
+6
-5
YAxisExtSelector.vue
...ews/chart/components/component-style/YAxisExtSelector.vue
+6
-5
YAxisExtSelectorAntV.vue
...chart/components/component-style/YAxisExtSelectorAntV.vue
+6
-5
YAxisSelector.vue
.../views/chart/components/component-style/YAxisSelector.vue
+6
-5
YAxisSelectorAntV.vue
...ws/chart/components/component-style/YAxisSelectorAntV.vue
+6
-5
ColorSelector.vue
...d/src/views/chart/components/shape-attr/ColorSelector.vue
+9
-8
LabelSelector.vue
...d/src/views/chart/components/shape-attr/LabelSelector.vue
+5
-4
LabelSelectorAntV.vue
...c/views/chart/components/shape-attr/LabelSelectorAntV.vue
+5
-4
TooltipSelector.vue
...src/views/chart/components/shape-attr/TooltipSelector.vue
+4
-3
TooltipSelectorAntV.vue
...views/chart/components/shape-attr/TooltipSelectorAntV.vue
+4
-3
Group.vue
frontend/src/views/chart/group/Group.vue
+5
-2
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+3
-1
ChartType.vue
frontend/src/views/chart/view/ChartType.vue
+14
-12
ViewTable.vue
frontend/src/views/dataset/data/ViewTable.vue
+4
-3
Group.vue
frontend/src/views/dataset/group/Group.vue
+5
-2
没有找到文件。
frontend/src/icons/svg/more_v.svg
0 → 100644
浏览文件 @
d2e40baf
<svg
t=
"1634698675666"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2280"
width=
"200"
height=
"200"
><path
d=
"M437.333333 224C437.333333 183.466667 471.466667 149.333333 512 149.333333s74.666667 34.133333 74.666667 74.666667S552.533333 298.666667 512 298.666667s-74.666667-34.133333-74.666667-74.666667zM439.466667 512c0-40.533333 34.133333-74.666667 74.666666-74.666667s74.666667 34.133333 74.666667 74.666667-34.133333 74.666667-74.666667 74.666667-74.666667-34.133333-74.666666-74.666667zM437.333333 800c0-40.533333 34.133333-74.666667 74.666667-74.666667s74.666667 34.133333 74.666667 74.666667S552.533333 874.666667 512 874.666667s-74.666667-34.133333-74.666667-74.666667z"
p-id=
"2281"
></path></svg>
frontend/src/views/chart/chart/chart.js
浏览文件 @
d2e40baf
...
@@ -853,3 +853,16 @@ export const BASE_MIX = {
...
@@ -853,3 +853,16 @@ export const BASE_MIX = {
}
}
]
]
}
}
export
const
COLOR_PANEL
=
[
'#ff4500'
,
'#ff8c00'
,
'#ffd700'
,
'#90ee90'
,
'#00ced1'
,
'#1e90ff'
,
'#c71585'
,
'#999999'
,
'#ffffff'
,
'#000000'
]
frontend/src/views/chart/components/ChartComponentG2.vue
浏览文件 @
d2e40baf
...
@@ -145,8 +145,6 @@ export default {
...
@@ -145,8 +145,6 @@ export default {
this
.
myChart
=
baseAreaOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
this
.
myChart
=
baseAreaOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
}
else
if
(
chart
.
type
===
'scatter'
)
{
}
else
if
(
chart
.
type
===
'scatter'
)
{
this
.
myChart
=
baseScatterOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
this
.
myChart
=
baseScatterOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
}
else
if
(
chart
.
type
===
'chart-mix'
)
{
this
.
myChart
=
baseMixOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
}
else
if
(
chart
.
type
===
'radar'
)
{
}
else
if
(
chart
.
type
===
'radar'
)
{
this
.
myChart
=
baseRadarOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
this
.
myChart
=
baseRadarOptionAntV
(
this
.
myChart
,
this
.
chartId
,
chart
,
this
.
antVAction
)
}
else
if
(
chart
.
type
===
'gauge'
)
{
}
else
if
(
chart
.
type
===
'gauge'
)
{
...
...
frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue
浏览文件 @
d2e40baf
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-col>
<el-col>
<el-form
ref=
"colorForm"
:model=
"colorForm"
label-width=
"80px"
size=
"mini"
:disabled=
"param && !hasDataPermission('manage',param.privileges)"
>
<el-form
ref=
"colorForm"
:model=
"colorForm"
label-width=
"80px"
size=
"mini"
:disabled=
"param && !hasDataPermission('manage',param.privileges)"
>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.color"
class=
"color-picker-style"
@
change=
"changeBackgroundStyle"
/>
<el-color-picker
v-model=
"colorForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeBackgroundStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.not_alpha')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.not_alpha')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"colorForm.alpha"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBackgroundStyle"
/>
<el-slider
v-model=
"colorForm.alpha"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBackgroundStyle"
/>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_BACKGROUND_COLOR
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_BACKGROUND_COLOR
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'BackgroundColorSelector'
,
name
:
'BackgroundColorSelector'
,
...
@@ -34,7 +34,8 @@ export default {
...
@@ -34,7 +34,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
colorForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_BACKGROUND_COLOR
))
colorForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_BACKGROUND_COLOR
)),
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/LegendSelector.vue
浏览文件 @
d2e40baf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"legendForm.textStyle.color"
class=
"color-picker-style"
@
change=
"changeLegendStyle"
/>
<el-color-picker
v-model=
"legendForm.textStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLegendStyle"
/>
</el-form-item>
</el-form-item>
<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=
"legendForm.hPosition"
size=
"mini"
@
change=
"changeLegendStyle"
>
<el-radio-group
v-model=
"legendForm.hPosition"
size=
"mini"
@
change=
"changeLegendStyle"
>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_LEGEND_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_LEGEND_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'LegendSelector'
,
name
:
'LegendSelector'
,
...
@@ -77,7 +77,8 @@ export default {
...
@@ -77,7 +77,8 @@ export default {
{
name
:
this
.
$t
(
'chart.line_symbol_triangle'
),
value
:
'triangle'
},
{
name
:
this
.
$t
(
'chart.line_symbol_triangle'
),
value
:
'triangle'
},
{
name
:
this
.
$t
(
'chart.line_symbol_diamond'
),
value
:
'diamond'
}
{
name
:
this
.
$t
(
'chart.line_symbol_diamond'
),
value
:
'diamond'
}
],
],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/LegendSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"legendForm.textStyle.color"
class=
"color-picker-style"
@
change=
"changeLegendStyle"
/>
<el-color-picker
v-model=
"legendForm.textStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLegendStyle"
/>
</el-form-item>
</el-form-item>
<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=
"legendForm.hPosition"
size=
"mini"
@
change=
"changeLegendStyle"
>
<el-radio-group
v-model=
"legendForm.hPosition"
size=
"mini"
@
change=
"changeLegendStyle"
>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_LEGEND_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_LEGEND_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'LegendSelectorAntV'
,
name
:
'LegendSelectorAntV'
,
...
@@ -75,7 +75,8 @@ export default {
...
@@ -75,7 +75,8 @@ export default {
{
name
:
this
.
$t
(
'chart.line_symbol_triangle'
),
value
:
'triangle'
},
{
name
:
this
.
$t
(
'chart.line_symbol_triangle'
),
value
:
'triangle'
},
{
name
:
this
.
$t
(
'chart.line_symbol_diamond'
),
value
:
'diamond'
}
{
name
:
this
.
$t
(
'chart.line_symbol_diamond'
),
value
:
'diamond'
}
],
],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/SplitSelector.vue
浏览文件 @
d2e40baf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-checkbox
v-model=
"splitForm.name.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.name.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.name.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.name.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_fontsize')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.text_fontsize')"
class=
"form-item form-item-slider"
>
<el-select
v-model=
"splitForm.name.fontSize"
:placeholder=
"$t('chart.text_fontsize')"
@
change=
"changeSplitStyle"
>
<el-select
v-model=
"splitForm.name.fontSize"
:placeholder=
"$t('chart.text_fontsize')"
@
change=
"changeSplitStyle"
>
...
@@ -17,13 +17,13 @@
...
@@ -17,13 +17,13 @@
<el-checkbox
v-model=
"splitForm.axisLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.axisLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.axisLine.lineStyle.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.axisLine.lineStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label')"
class=
"form-item"
>
<el-checkbox
v-model=
"splitForm.axisLabel.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.axisLabel.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.axisLabel.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.axisLabel.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.label_fontsize')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.label_fontsize')"
class=
"form-item form-item-slider"
>
<el-select
v-model=
"splitForm.axisLabel.fontSize"
:placeholder=
"$t('chart.label_fontsize')"
@
change=
"changeSplitStyle"
>
<el-select
v-model=
"splitForm.axisLabel.fontSize"
:placeholder=
"$t('chart.label_fontsize')"
@
change=
"changeSplitStyle"
>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<el-checkbox
v-model=
"splitForm.splitLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.splitLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.split_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.split_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.splitLine.lineStyle.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.splitLine.lineStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.shadow')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.shadow')"
class=
"form-item"
>
<el-checkbox
v-model=
"splitForm.splitArea.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.splitArea.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_SPLIT
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_SPLIT
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'SplitSelector'
,
name
:
'SplitSelector'
,
...
@@ -63,7 +63,8 @@ export default {
...
@@ -63,7 +63,8 @@ export default {
return
{
return
{
splitForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_SPLIT
)),
splitForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_SPLIT
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/SplitSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-checkbox
v-model=
"splitForm.name.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"splitForm.name.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.name.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.name.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_fontsize')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.text_fontsize')"
class=
"form-item form-item-slider"
>
<el-select
v-model=
"splitForm.name.fontSize"
:placeholder=
"$t('chart.text_fontsize')"
@
change=
"changeSplitStyle"
>
<el-select
v-model=
"splitForm.name.fontSize"
:placeholder=
"$t('chart.text_fontsize')"
@
change=
"changeSplitStyle"
>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!--
<el-checkbox
v-model=
"splitForm.axisLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
-->
<!--
<el-checkbox
v-model=
"splitForm.axisLine.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
-->
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"splitForm.axisLine.lineStyle.color"
class=
"color-picker-style"
@
change=
"changeSplitStyle"
/>
<el-color-picker
v-model=
"splitForm.axisLine.lineStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeSplitStyle"
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
:label=
"$t('chart.axis_label')"
class=
"form-item"
>
-->
<!--
<el-form-item
:label=
"$t('chart.axis_label')"
class=
"form-item"
>
-->
<!--
<el-checkbox
v-model=
"splitForm.axisLabel.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
-->
<!--
<el-checkbox
v-model=
"splitForm.axisLabel.show"
@
change=
"changeSplitStyle"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
-->
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_SPLIT
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_SPLIT
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'SplitSelectorAntV'
,
name
:
'SplitSelectorAntV'
,
...
@@ -63,7 +63,8 @@ export default {
...
@@ -63,7 +63,8 @@ export default {
return
{
return
{
splitForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_SPLIT
)),
splitForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_SPLIT
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/TitleSelector.vue
浏览文件 @
d2e40baf
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"titleForm.color"
class=
"color-picker-style"
@
change=
"changeTitleStyle"
/>
<el-color-picker
v-model=
"titleForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeTitleStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"titleForm.hPosition"
size=
"mini"
@
change=
"changeTitleStyle"
>
<el-radio-group
v-model=
"titleForm.hPosition"
size=
"mini"
@
change=
"changeTitleStyle"
>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'TitleSelector'
,
name
:
'TitleSelector'
,
...
@@ -67,7 +67,8 @@ export default {
...
@@ -67,7 +67,8 @@ export default {
return
{
return
{
titleForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TITLE_STYLE
)),
titleForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TITLE_STYLE
)),
fontSize
:
[],
fontSize
:
[],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"titleForm.color"
class=
"color-picker-style"
@
change=
"changeTitleStyle"
/>
<el-color-picker
v-model=
"titleForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeTitleStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.text_h_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"titleForm.hPosition"
size=
"mini"
@
change=
"changeTitleStyle"
>
<el-radio-group
v-model=
"titleForm.hPosition"
size=
"mini"
@
change=
"changeTitleStyle"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_TITLE_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'TitleSelectorAntV'
,
name
:
'TitleSelectorAntV'
,
...
@@ -60,7 +60,8 @@ export default {
...
@@ -60,7 +60,8 @@ export default {
return
{
return
{
titleForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TITLE_STYLE
)),
titleForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TITLE_STYLE
)),
fontSize
:
[],
fontSize
:
[],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/XAxisSelector.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeXAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeXAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeXAxisStyle"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_XAXIS_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_XAXIS_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'XAxisSelector'
,
name
:
'XAxisSelector'
,
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_XAXIS_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_XAXIS_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeXAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeXAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeXAxisStyle"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeXAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeXAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeXAxisStyle"
/>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_XAXIS_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_XAXIS_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'XAxisSelectorAntV'
,
name
:
'XAxisSelectorAntV'
,
...
@@ -107,7 +107,8 @@ export default {
...
@@ -107,7 +107,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_XAXIS_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_XAXIS_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/YAxisExtSelector.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_YAXIS_EXT_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_YAXIS_EXT_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'YAxisExtSelector'
,
name
:
'YAxisExtSelector'
,
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_EXT_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_EXT_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_YAXIS_EXT_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_YAXIS_EXT_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'YAxisExtSelectorAntV'
,
name
:
'YAxisExtSelectorAntV'
,
...
@@ -107,7 +107,8 @@ export default {
...
@@ -107,7 +107,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_EXT_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_EXT_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/YAxisSelector.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_YAXIS_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_YAXIS_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'YAxisSelector'
,
name
:
'YAxisSelector'
,
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
<el-input
v-model=
"axisForm.name"
size=
"mini"
@
blur=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.nameTextStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_name_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
<el-select
v-model=
"axisForm.nameTextStyle.fontSize"
:placeholder=
"$t('chart.axis_name_fontsize')"
@
change=
"changeYAxisStyle"
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.splitLine.show"
>
<span
v-show=
"axisForm.splitLine.show"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.splitLine.lineStyle.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-form-item
:label=
"$t('chart.axis_width')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.splitLine.lineStyle.width"
:min=
"1"
:max=
"10"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</el-form-item>
</el-form-item>
<span
v-show=
"axisForm.axisLabel.show"
>
<span
v-show=
"axisForm.axisLabel.show"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.axis_label_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
@
change=
"changeYAxisStyle"
/>
<el-color-picker
v-model=
"axisForm.axisLabel.color"
class=
"el-color-picker"
:predefine=
"predefineColors"
@
change=
"changeYAxisStyle"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.axis_label_rotate')"
class=
"form-item form-item-slider"
>
<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=
"changeYAxisStyle"
/>
<el-slider
v-model=
"axisForm.axisLabel.rotate"
show-input
:show-input-controls=
"false"
:min=
"-90"
:max=
"90"
input-size=
"mini"
@
change=
"changeYAxisStyle"
/>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_YAXIS_STYLE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_YAXIS_STYLE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'YAxisSelectorAntV'
,
name
:
'YAxisSelectorAntV'
,
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
return
{
return
{
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_STYLE
)),
axisForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_YAXIS_STYLE
)),
isSetting
:
false
,
isSetting
:
false
,
fontSize
:
[]
fontSize
:
[],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/shape-attr/ColorSelector.vue
浏览文件 @
d2e40baf
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<span
class=
"color-label"
/>
<span
class=
"color-label"
/>
<span>
<span>
<el-color-picker
v-model=
"customColor"
class=
"color-picker-style"
@
change=
"switchColorCase"
/>
<el-color-picker
v-model=
"customColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"switchColorCase"
/>
</span>
</span>
</div>
</div>
</div>
</div>
...
@@ -47,21 +47,21 @@
...
@@ -47,21 +47,21 @@
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.quota_color')"
class=
"form-item"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.quota_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.quotaColor"
class=
"color-picker-style"
@
change=
"changeColorCase"
/>
<el-color-picker
v-model=
"colorForm.quotaColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeColorCase"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.dimension_color')"
class=
"form-item"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.dimension_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.dimensionColor"
class=
"color-picker-style"
@
change=
"changeColorCase"
/>
<el-color-picker
v-model=
"colorForm.dimensionColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeColorCase"
/>
</el-form-item>
</el-form-item>
</div>
</div>
<div
v-if=
"sourceType==='view' || sourceType==='panelTable'"
>
<div
v-if=
"sourceType==='view' || sourceType==='panelTable'"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_header_bg')"
class=
"form-item"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_header_bg')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.tableHeaderBgColor"
class=
"color-picker-style"
@
change=
"changeColorCase"
/>
<el-color-picker
v-model=
"colorForm.tableHeaderBgColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeColorCase"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_bg')"
class=
"form-item"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_bg')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.tableItemBgColor"
class=
"color-picker-style"
@
change=
"changeColorCase"
/>
<el-color-picker
v-model=
"colorForm.tableItemBgColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeColorCase"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_font_color')"
class=
"form-item"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_font_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"colorForm.tableFontColor"
class=
"color-picker-style"
@
change=
"changeColorCase"
/>
<el-color-picker
v-model=
"colorForm.tableFontColor"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeColorCase"
/>
</el-form-item>
</el-form-item>
<!-- 暂时不支持该功能-->
<!-- 暂时不支持该功能-->
<!--
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.stripe')"
class=
"form-item"
>
-->
<!--
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.stripe')"
class=
"form-item"
>
-->
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_COLOR_CASE
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_COLOR_CASE
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'ColorSelector'
,
name
:
'ColorSelector'
,
...
@@ -183,7 +183,8 @@ export default {
...
@@ -183,7 +183,8 @@ export default {
],
],
colorForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_COLOR_CASE
)),
colorForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_COLOR_CASE
)),
customColor
:
null
,
customColor
:
null
,
colorIndex
:
0
colorIndex
:
0
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/shape-attr/LabelSelector.vue
浏览文件 @
d2e40baf
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
@
change=
"changeLabelAttr"
/>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLabelAttr"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.label_position')"
class=
"form-item"
>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid'"
:label=
"$t('chart.label_position')"
class=
"form-item"
>
<el-select
v-model=
"labelForm.position"
:placeholder=
"$t('chart.label_position')"
@
change=
"changeLabelAttr"
>
<el-select
v-model=
"labelForm.position"
:placeholder=
"$t('chart.label_position')"
@
change=
"changeLabelAttr"
>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
@
change=
"changeLabelAttr"
/>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLabelAttr"
/>
</el-form-item>
</el-form-item>
<el-form-item
class=
"form-item"
>
<el-form-item
class=
"form-item"
>
<span
slot=
"label"
>
<span
slot=
"label"
>
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_LABEL
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_LABEL
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'LabelSelector'
,
name
:
'LabelSelector'
,
...
@@ -92,7 +92,8 @@ export default {
...
@@ -92,7 +92,8 @@ export default {
{
name
:
this
.
$t
(
'chart.text_pos_bottom'
),
value
:
'bottom'
},
{
name
:
this
.
$t
(
'chart.text_pos_bottom'
),
value
:
'bottom'
},
{
name
:
this
.
$t
(
'chart.text_pos_left'
),
value
:
'left'
},
{
name
:
this
.
$t
(
'chart.text_pos_left'
),
value
:
'left'
},
{
name
:
this
.
$t
(
'chart.text_pos_right'
),
value
:
'right'
}
{
name
:
this
.
$t
(
'chart.text_pos_right'
),
value
:
'right'
}
]
],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/shape-attr/LabelSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
@
change=
"changeLabelAttr"
/>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLabelAttr"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid' && chart.type !== 'pie-rose'"
:label=
"$t('chart.label_position')"
class=
"form-item"
>
<el-form-item
v-show=
"chart.type && chart.type !== 'liquid' && chart.type !== 'pie-rose'"
:label=
"$t('chart.label_position')"
class=
"form-item"
>
<el-select
v-model=
"labelForm.position"
:placeholder=
"$t('chart.label_position')"
@
change=
"changeLabelAttr"
>
<el-select
v-model=
"labelForm.position"
:placeholder=
"$t('chart.label_position')"
@
change=
"changeLabelAttr"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
@
change=
"changeLabelAttr"
/>
<el-color-picker
v-model=
"labelForm.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeLabelAttr"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-col>
</el-col>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_LABEL
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_LABEL
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'LabelSelectorAntV'
,
name
:
'LabelSelectorAntV'
,
...
@@ -70,7 +70,8 @@ export default {
...
@@ -70,7 +70,8 @@ export default {
{
name
:
this
.
$t
(
'chart.text_pos_bottom'
),
value
:
'bottom'
},
{
name
:
this
.
$t
(
'chart.text_pos_bottom'
),
value
:
'bottom'
},
{
name
:
this
.
$t
(
'chart.text_pos_left'
),
value
:
'left'
},
{
name
:
this
.
$t
(
'chart.text_pos_left'
),
value
:
'left'
},
{
name
:
this
.
$t
(
'chart.text_pos_right'
),
value
:
'right'
}
{
name
:
this
.
$t
(
'chart.text_pos_right'
),
value
:
'right'
}
]
],
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/shape-attr/TooltipSelector.vue
浏览文件 @
d2e40baf
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"tooltipForm.textStyle.color"
class=
"color-picker-style"
@
change=
"changeTooltipAttr"
/>
<el-color-picker
v-model=
"tooltipForm.textStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeTooltipAttr"
/>
</el-form-item>
</el-form-item>
<el-form-item
class=
"form-item"
>
<el-form-item
class=
"form-item"
>
<span
slot=
"label"
>
<span
slot=
"label"
>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_TOOLTIP
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_TOOLTIP
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'TooltipSelector'
,
name
:
'TooltipSelector'
,
...
@@ -71,7 +71,8 @@ export default {
...
@@ -71,7 +71,8 @@ export default {
return
{
return
{
tooltipForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOOLTIP
)),
tooltipForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOOLTIP
)),
fontSize
:
[],
fontSize
:
[],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/components/shape-attr/TooltipSelectorAntV.vue
浏览文件 @
d2e40baf
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_color')"
class=
"form-item"
>
<el-color-picker
v-model=
"tooltipForm.textStyle.color"
class=
"color-picker-style"
@
change=
"changeTooltipAttr"
/>
<el-color-picker
v-model=
"tooltipForm.textStyle.color"
class=
"color-picker-style"
:predefine=
"predefineColors"
@
change=
"changeTooltipAttr"
/>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DEFAULT_TOOLTIP
}
from
'../../chart/chart'
import
{
COLOR_PANEL
,
DEFAULT_TOOLTIP
}
from
'../../chart/chart'
export
default
{
export
default
{
name
:
'TooltipSelectorAntV'
,
name
:
'TooltipSelectorAntV'
,
...
@@ -39,7 +39,8 @@ export default {
...
@@ -39,7 +39,8 @@ export default {
return
{
return
{
tooltipForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOOLTIP
)),
tooltipForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOOLTIP
)),
fontSize
:
[],
fontSize
:
[],
isSetting
:
false
isSetting
:
false
,
predefineColors
:
COLOR_PANEL
}
}
},
},
watch
:
{
watch
:
{
...
...
frontend/src/views/chart/group/Group.vue
浏览文件 @
d2e40baf
...
@@ -880,11 +880,14 @@ export default {
...
@@ -880,11 +880,14 @@ export default {
// if (this.tDs && this.tDs.type === 'group') {
// if (this.tDs && this.tDs.type === 'group') {
// return
// return
// }
// }
this
.
dsForm
.
sceneId
=
this
.
tDs
.
id
const
oldSceneId
=
this
.
dsForm
.
sceneId
const
newSceneId
=
this
.
tDs
.
id
this
.
dsForm
.
sceneId
=
newSceneId
post
(
'/chart/view/save'
,
this
.
dsForm
).
then
(
res
=>
{
post
(
'/chart/view/save'
,
this
.
dsForm
).
then
(
res
=>
{
this
.
closeMoveDs
()
this
.
closeMoveDs
()
// this.tableTree()
// this.tableTree()
this
.
refreshNodeBy
(
this
.
dsForm
.
sceneId
)
this
.
refreshNodeBy
(
oldSceneId
)
this
.
refreshNodeBy
(
newSceneId
)
})
})
},
},
targetDs
(
val
)
{
targetDs
(
val
)
{
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
d2e40baf
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<!--
<span
v-show=
"false"
>
{{
vId
}}
</span>
-->
<!--
<span
v-show=
"false"
>
{{
vId
}}
</span>
-->
<!--
<el-row
style=
"height: 40px;background-color: white"
class=
"padding-lr"
>
-->
<!--
<el-row
style=
"height: 40px;background-color: white"
class=
"padding-lr"
>
-->
<el-row
style=
"height: 40px;"
class=
"padding-lr"
>
<el-row
style=
"height: 40px;"
class=
"padding-lr"
>
<span
class=
"title-text"
style=
"line-height: 40px;"
>
{{
view
.
name
}}
</span>
<el-popover
<el-popover
placement=
"right-start"
placement=
"right-start"
width=
"400"
width=
"400"
...
@@ -11,7 +12,7 @@
...
@@ -11,7 +12,7 @@
@
hide=
"hideTab"
@
hide=
"hideTab"
>
>
<dataset-chart-detail
type=
"chart"
:data=
"view"
:tab-status=
"tabStatus"
/>
<dataset-chart-detail
type=
"chart"
:data=
"view"
:tab-status=
"tabStatus"
/>
<s
pan
slot=
"reference"
class=
"title-text"
style=
"line-height: 40px;cursor: pointer;"
>
{{
view
.
name
}}
</span
>
<s
vg-icon
slot=
"reference"
icon-class=
"more_v"
style=
"cursor: pointer;"
/
>
</el-popover>
</el-popover>
<span
style=
"float: right;line-height: 40px;"
>
<span
style=
"float: right;line-height: 40px;"
>
<!--
<el-button
v-if=
"hasDataPermission('manage',param.privileges)"
size=
"mini"
@
click=
"changeDs"
>
-->
<!--
<el-button
v-if=
"hasDataPermission('manage',param.privileges)"
size=
"mini"
@
click=
"changeDs"
>
-->
...
@@ -927,6 +928,7 @@ export default {
...
@@ -927,6 +928,7 @@ export default {
view
.
extStack
=
JSON
.
stringify
(
view
.
extStack
)
view
.
extStack
=
JSON
.
stringify
(
view
.
extStack
)
view
.
drillFields
=
JSON
.
stringify
(
view
.
drillFields
)
view
.
drillFields
=
JSON
.
stringify
(
view
.
drillFields
)
view
.
extBubble
=
JSON
.
stringify
(
view
.
extBubble
)
view
.
extBubble
=
JSON
.
stringify
(
view
.
extBubble
)
delete
view
.
data
post
(
'/chart/view/save'
,
view
).
then
(
response
=>
{
post
(
'/chart/view/save'
,
view
).
then
(
response
=>
{
// this.get(response.data.id);
// this.get(response.data.id);
// this.getData(response.data.id)
// this.getData(response.data.id)
...
...
frontend/src/views/chart/view/ChartType.vue
浏览文件 @
d2e40baf
...
@@ -56,16 +56,16 @@
...
@@ -56,16 +56,16 @@
</el-radio>
</el-radio>
</div>
</div>
<div
style=
"width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"
>
<div
style=
"width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"
>
<el-radio
value=
"chart-mix"
label=
"chart-mix"
>
<!--
<el-radio
value=
"chart-mix"
label=
"chart-mix"
>
--
>
<span
:title=
"$t('chart.chart_mix')"
>
<!--
<span
:title=
"$t('chart.chart_mix')"
>
--
>
<svg-icon
icon-class=
"chart-mix"
class=
"chart-icon"
/
>
<!--
<svg-icon
icon-class=
"chart-mix"
class=
"chart-icon"
/>
--
>
</span
>
<!--
</span>
--
>
</el-radio
>
<!--
</el-radio>
--
>
<el-radio
value=
"map"
label=
"map"
>
<!--
<el-radio
value=
"map"
label=
"map"
>
--
>
<span
:title=
"$t('chart.chart_map')"
>
<!--
<span
:title=
"$t('chart.chart_map')"
>
--
>
<svg-icon
icon-class=
"map"
class=
"chart-icon"
/
>
<!--
<svg-icon
icon-class=
"map"
class=
"chart-icon"
/>
--
>
</span
>
<!--
</span>
--
>
</el-radio
>
<!--
</el-radio>
--
>
<el-radio
value=
"radar"
label=
"radar"
>
<el-radio
value=
"radar"
label=
"radar"
>
<span
:title=
"$t('chart.chart_radar')"
>
<span
:title=
"$t('chart.chart_radar')"
>
<svg-icon
icon-class=
"radar"
class=
"chart-icon"
/>
<svg-icon
icon-class=
"radar"
class=
"chart-icon"
/>
...
@@ -81,8 +81,6 @@
...
@@ -81,8 +81,6 @@
<svg-icon
icon-class=
"pie"
class=
"chart-icon"
/>
<svg-icon
icon-class=
"pie"
class=
"chart-icon"
/>
</span>
</span>
</el-radio>
</el-radio>
</div>
<div
style=
"width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"
>
<el-radio
value=
"pie-rose"
label=
"pie-rose"
>
<el-radio
value=
"pie-rose"
label=
"pie-rose"
>
<span
:title=
"$t('chart.chart_pie_rose')"
>
<span
:title=
"$t('chart.chart_pie_rose')"
>
<svg-icon
icon-class=
"pie-rose"
class=
"chart-icon"
/>
<svg-icon
icon-class=
"pie-rose"
class=
"chart-icon"
/>
...
@@ -93,6 +91,8 @@
...
@@ -93,6 +91,8 @@
<svg-icon
icon-class=
"funnel"
class=
"chart-icon"
/>
<svg-icon
icon-class=
"funnel"
class=
"chart-icon"
/>
</span>
</span>
</el-radio>
</el-radio>
</div>
<div
style=
"width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"
>
<el-radio
value=
"treemap"
label=
"treemap"
>
<el-radio
value=
"treemap"
label=
"treemap"
>
<span
:title=
"$t('chart.chart_treemap')"
>
<span
:title=
"$t('chart.chart_treemap')"
>
<svg-icon
icon-class=
"treemap"
class=
"chart-icon"
/>
<svg-icon
icon-class=
"treemap"
class=
"chart-icon"
/>
...
@@ -104,6 +104,8 @@
...
@@ -104,6 +104,8 @@
</span>
</span>
</el-radio>
</el-radio>
<el-radio
value=
""
label=
""
disabled
class=
"disabled-none-cursor"
><svg-icon
icon-class=
""
class=
"chart-icon"
/></el-radio>
<el-radio
value=
""
label=
""
disabled
class=
"disabled-none-cursor"
><svg-icon
icon-class=
""
class=
"chart-icon"
/></el-radio>
<el-radio
value=
""
label=
""
disabled
class=
"disabled-none-cursor"
><svg-icon
icon-class=
""
class=
"chart-icon"
/></el-radio>
<el-radio
value=
""
label=
""
disabled
class=
"disabled-none-cursor"
><svg-icon
icon-class=
""
class=
"chart-icon"
/></el-radio>
</div>
</div>
</div>
</div>
<div
v-else-if=
"chart.render && chart.render === 'echarts'"
>
<div
v-else-if=
"chart.render && chart.render === 'echarts'"
>
...
...
frontend/src/views/dataset/data/ViewTable.vue
浏览文件 @
d2e40baf
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
<el-row
style=
"height: 100%;overflow-y: hidden;width: 100%;"
>
<el-row
style=
"height: 100%;overflow-y: hidden;width: 100%;"
>
<!--
<span
v-show=
"false"
>
{{
tableRefresh
}}
</span>
-->
<!--
<span
v-show=
"false"
>
{{
tableRefresh
}}
</span>
-->
<el-row
style=
"height: 26px;"
>
<el-row
style=
"height: 26px;"
>
<span
class=
"title-text"
style=
"line-height: 26px;"
>
{{
table
.
name
}}
</span>
<el-popover
<el-popover
placement=
"right-start"
placement=
"right-start"
width=
"400"
width=
"400"
...
@@ -10,9 +13,7 @@
...
@@ -10,9 +13,7 @@
@
hide=
"hideTab"
@
hide=
"hideTab"
>
>
<dataset-chart-detail
type=
"dataset"
:data=
"table"
:tab-status=
"tabStatus"
/>
<dataset-chart-detail
type=
"dataset"
:data=
"table"
:tab-status=
"tabStatus"
/>
<span
slot=
"reference"
class=
"title-text"
style=
"line-height: 26px;cursor: pointer;"
>
<svg-icon
slot=
"reference"
icon-class=
"more_v"
style=
"cursor: pointer;"
/>
{{
table
.
name
}}
</span>
</el-popover>
</el-popover>
<el-row
v-if=
"hasDataPermission('manage',param.privileges)"
style=
"float: right"
>
<el-row
v-if=
"hasDataPermission('manage',param.privileges)"
style=
"float: right"
>
<el-dropdown
v-if=
"table.type ==='excel'"
style=
"margin-right: 10px;"
size=
"small"
trigger=
"click"
@
command=
"clickEditExcel"
>
<el-dropdown
v-if=
"table.type ==='excel'"
style=
"margin-right: 10px;"
size=
"small"
trigger=
"click"
@
command=
"clickEditExcel"
>
...
...
frontend/src/views/dataset/group/Group.vue
浏览文件 @
d2e40baf
...
@@ -770,11 +770,14 @@ export default {
...
@@ -770,11 +770,14 @@ export default {
}
}
},
},
saveMoveDs
()
{
saveMoveDs
()
{
this
.
dsForm
.
sceneId
=
this
.
tDs
.
id
const
oldSceneId
=
this
.
dsForm
.
sceneId
const
newSceneId
=
this
.
tDs
.
id
this
.
dsForm
.
sceneId
=
newSceneId
this
.
dsForm
.
isRename
=
true
this
.
dsForm
.
isRename
=
true
alter
(
this
.
dsForm
).
then
(
res
=>
{
alter
(
this
.
dsForm
).
then
(
res
=>
{
this
.
closeMoveDs
()
this
.
closeMoveDs
()
this
.
refreshNodeBy
(
this
.
dsForm
.
sceneId
)
this
.
refreshNodeBy
(
oldSceneId
)
this
.
refreshNodeBy
(
newSceneId
)
})
})
},
},
targetDs
(
val
)
{
targetDs
(
val
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论