Quellcode durchsuchen

update 3d 完成度颜色

pull/17/head
lb vor 1 Jahr
Ursprung
Commit
97ee3a9a4c
2 geänderte Dateien mit 44 neuen und 6 gelöschten Zeilen
  1. +2
    -4
      src/views/3DOverview/components/LeftContentOrder.vue
  2. +42
    -2
      src/views/3DOverview/components/RightContentRealtimeProduction.vue

+ 2
- 4
src/views/3DOverview/components/LeftContentOrder.vue Datei anzeigen

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


+ 42
- 2
src/views/3DOverview/components/RightContentRealtimeProduction.vue Datei anzeigen

@@ -187,7 +187,27 @@ export default {
focus: 'series'
},
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',
@@ -198,7 +218,27 @@ export default {
focus: 'series'
},
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
}
}
}
]
}


Laden…
Abbrechen
Speichern