update 3d 完成度颜色

This commit is contained in:
lb 2022-11-23 09:55:29 +08:00
parent 34c8b29348
commit 97ee3a9a4c
2 changed files with 44 additions and 6 deletions

View File

@ -15,9 +15,6 @@ const ProcessCircle = {
default: () => ({}) default: () => ({})
} }
}, },
mounted() {
console.log('finished', this.injectData.finished)
},
methods: {}, methods: {},
render: function(h) { render: function(h) {
return h('el-progress', { return h('el-progress', {
@ -29,7 +26,8 @@ const ProcessCircle = {
percentage: this.injectData.finished, percentage: this.injectData.finished,
width: 14, width: 14,
'stroke-width': 2, 'stroke-width': 2,
color: '#47FF27' color: '#47FF27',
'define-back-color': '#6e6e6e' //
}, },
style: { style: {
color: 'blue' color: 'blue'

View File

@ -187,7 +187,27 @@ export default {
focus: 'series' focus: 'series'
}, },
data: dianliu, data: dianliu,
symbol: 'none' symbol: 'none',
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: '#1A99FF66' // 0%
},
{
offset: 1,
color: 'transparent' // 100%
}
],
global: false // false
}
}
}, },
{ {
name: '产线2', name: '产线2',
@ -198,7 +218,27 @@ export default {
focus: 'series' focus: 'series'
}, },
data: dianya, data: dianya,
symbol: 'none' symbol: 'none',
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: '#F0D63C66' // 0%
},
{
offset: 1,
color: 'transparent' // 100%
}
],
global: false // false
}
}
} }
] ]
} }