fix:rightbox删除option配置

This commit is contained in:
zyh
2023-09-22 10:53:54 +08:00
parent 070226e452
commit dba1179e60
4 changed files with 0 additions and 78 deletions

View File

@@ -249,10 +249,6 @@ export default {
min: undefined,
max: undefined
},
option: {
lineWidth: 2,
pointSize: 8
}
},
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
panel: '',
@@ -461,12 +457,6 @@ export default {
max: undefined
}
}
if (!this.chart.param.option) {
this.chart.param.option = {
lineWidth: 2,
pointSize: 8
}
}
}
if (this.chart.type === 'stat') {
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
@@ -503,12 +493,6 @@ export default {
max: undefined
}
}
if (!this.chart.param.option) {
this.chart.param.option = {
lineWidth: 2,
pointSize: 8
}
}
}
if (this.chart.type === 'stat') {
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }

View File

@@ -448,44 +448,6 @@
</el-form-item>
</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 -->
<div v-if="isTimeSeries(chartConfig.type)">
<div class="form__sub-title">
@@ -1262,10 +1224,6 @@ export default {
min: undefined,
max: undefined
},
option: {
lineWidth: 2,
pointSize: 8
}
}
this.$nextTick(() => {
this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() })

View File

@@ -402,10 +402,6 @@ export default {
label: '',
min: undefined,
max: undefined
},
option: {
lineWidth: 2,
pointSize: 8
}
}
}

View File

@@ -266,10 +266,6 @@ export default {
min: undefined,
max: undefined
},
option: {
lineWidth: 2,
pointSize: 8
}
},
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }],
panel: '',
@@ -632,12 +628,6 @@ export default {
max: undefined
}
}
if (!this.chart.param.option) {
this.chart.param.option = {
lineWidth: 2,
pointSize: 8
}
}
}
if (this.chart.type === 'stat') {
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
@@ -674,12 +664,6 @@ export default {
max: undefined
}
}
if (!this.chart.param.option) {
this.chart.param.option = {
lineWidth: 2,
pointSize: 8
}
}
}
if (this.chart.type === 'stat') {
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }