提交 f8e1a1a7 authored 作者: junjie's avatar junjie

feat(视图):fix

上级 9def83bf
...@@ -708,7 +708,9 @@ export default { ...@@ -708,7 +708,9 @@ export default {
table_item_font_color: '字体颜色', table_item_font_color: '字体颜色',
stripe: '斑马纹', stripe: '斑马纹',
start_angle: '起始角度', start_angle: '起始角度',
end_angle: '结束角度' end_angle: '结束角度',
style_priority: '样式优先级',
dashboard: '仪表盘'
}, },
dataset: { dataset: {
datalist: '数据集', datalist: '数据集',
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<span>{{ $t('chart.chart_type') }}</span> <span>{{ $t('chart.chart_type') }}</span>
<el-row> <el-row>
<div class="chart-type"> <div class="chart-type">
<!--TODO 这里要替换好看点的图标,UI标签可以重新定义--> <!--这里要替换好看点的图标,UI标签可以重新定义-->
<el-radio-group <el-radio-group
v-model="view.type" v-model="view.type"
style="width: 100%" style="width: 100%"
...@@ -127,10 +127,10 @@ ...@@ -127,10 +127,10 @@
</div> </div>
<div style="height: 40%;overflow:hidden;border-top: 1px solid #e6e6e6"> <div style="height: 40%;overflow:hidden;border-top: 1px solid #e6e6e6">
<el-row class="padding-lr"> <el-row class="padding-lr">
<span>样式优先级</span> <span>{{ $t('chart.style_priority') }}</span>
<el-radio-group v-model="view.stylePriority" size="mini" @change="save"> <el-radio-group v-model="view.stylePriority" size="mini" @change="save">
<el-radio style="margin-left: 20px" label="view"><span>视图</span></el-radio> <el-radio style="margin-left: 20px" label="view"><span>{{ $t('chart.chart') }}</span></el-radio>
<el-radio label="panel"><span>仪表盘</span></el-radio> <el-radio label="panel"><span>{{ $t('chart.dashboard') }}</span></el-radio>
</el-radio-group> </el-radio-group>
</el-row> </el-row>
<el-tabs type="card" :stretch="true" class="tab-header"> <el-tabs type="card" :stretch="true" class="tab-header">
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
ele.filter = [] ele.filter = []
} }
}) })
if (view.type.startsWith('pie') || view.type.startsWith('funnel')) { if (view.type.startsWith('pie') || view.type.startsWith('funnel') || view.type.startsWith('gauge')) {
if (view.yaxis.length > 1) { if (view.yaxis.length > 1) {
view.yaxis.splice(1, view.yaxis.length) view.yaxis.splice(1, view.yaxis.length)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论