fix:rightbox删除option配置
This commit is contained in:
@@ -249,10 +249,6 @@ export default {
|
|||||||
min: undefined,
|
min: undefined,
|
||||||
max: undefined
|
max: undefined
|
||||||
},
|
},
|
||||||
option: {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
|
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
|
||||||
panel: '',
|
panel: '',
|
||||||
@@ -461,12 +457,6 @@ export default {
|
|||||||
max: undefined
|
max: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.chart.param.option) {
|
|
||||||
this.chart.param.option = {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.chart.type === 'stat') {
|
if (this.chart.type === 'stat') {
|
||||||
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
||||||
@@ -503,12 +493,6 @@ export default {
|
|||||||
max: undefined
|
max: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.chart.param.option) {
|
|
||||||
this.chart.param.option = {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.chart.type === 'stat') {
|
if (this.chart.type === 'stat') {
|
||||||
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
||||||
|
|||||||
@@ -448,44 +448,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- option -->
|
|
||||||
<div v-if="isTimeSeries(chartConfig.type)">
|
|
||||||
<div class="form__sub-title">
|
|
||||||
<span>{{$t('dashboard.dashboard.chartForm.option')}}</span>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="form-items--half-width-group"
|
|
||||||
>
|
|
||||||
<!--lineWidth-->
|
|
||||||
<el-form-item
|
|
||||||
v-if="chartConfig.type!=='point'"
|
|
||||||
:label="$t('dashboard.dashboard.chartForm.lineWidth')"
|
|
||||||
class="form-item--half-width"
|
|
||||||
prop="param.option.lineWidth"
|
|
||||||
>
|
|
||||||
<el-input-number
|
|
||||||
size="small"
|
|
||||||
:controls="false"
|
|
||||||
@change="change"
|
|
||||||
show-word-limit
|
|
||||||
v-model="chartConfig.param.option.lineWidth"/>
|
|
||||||
</el-form-item>
|
|
||||||
<!--pointSize-->
|
|
||||||
<el-form-item
|
|
||||||
:label="$t('dashboard.dashboard.chartForm.pointSize')"
|
|
||||||
class="form-item--half-width"
|
|
||||||
prop="param.option.pointSize"
|
|
||||||
>
|
|
||||||
<el-input-number
|
|
||||||
size="small"
|
|
||||||
:controls="false"
|
|
||||||
@change="change"
|
|
||||||
show-word-limit
|
|
||||||
v-model="chartConfig.param.option.pointSize"/>
|
|
||||||
</el-form-item>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Right Y Axis -->
|
<!-- Right Y Axis -->
|
||||||
<div v-if="isTimeSeries(chartConfig.type)">
|
<div v-if="isTimeSeries(chartConfig.type)">
|
||||||
<div class="form__sub-title">
|
<div class="form__sub-title">
|
||||||
@@ -1262,10 +1224,6 @@ export default {
|
|||||||
min: undefined,
|
min: undefined,
|
||||||
max: undefined
|
max: undefined
|
||||||
},
|
},
|
||||||
option: {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() })
|
this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() })
|
||||||
|
|||||||
@@ -402,10 +402,6 @@ export default {
|
|||||||
label: '',
|
label: '',
|
||||||
min: undefined,
|
min: undefined,
|
||||||
max: undefined
|
max: undefined
|
||||||
},
|
|
||||||
option: {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -266,10 +266,6 @@ export default {
|
|||||||
min: undefined,
|
min: undefined,
|
||||||
max: undefined
|
max: undefined
|
||||||
},
|
},
|
||||||
option: {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
|
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
|
||||||
panel: '',
|
panel: '',
|
||||||
@@ -632,12 +628,6 @@ export default {
|
|||||||
max: undefined
|
max: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.chart.param.option) {
|
|
||||||
this.chart.param.option = {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.chart.type === 'stat') {
|
if (this.chart.type === 'stat') {
|
||||||
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
||||||
@@ -674,12 +664,6 @@ export default {
|
|||||||
max: undefined
|
max: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.chart.param.option) {
|
|
||||||
this.chart.param.option = {
|
|
||||||
lineWidth: 2,
|
|
||||||
pointSize: 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.chart.type === 'stat') {
|
if (this.chart.type === 'stat') {
|
||||||
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
|
||||||
|
|||||||
Reference in New Issue
Block a user