chore: fix shell exec node path
This commit is contained in:
@@ -161,7 +161,7 @@ const renderLineChart = () => {
|
|||||||
{ name: '执行失败', data: sendStats.value.map(item => item.failed) }
|
{ name: '执行失败', data: sendStats.value.map(item => item.failed) }
|
||||||
],
|
],
|
||||||
chart: {
|
chart: {
|
||||||
type: 'line',
|
type: 'line' as const,
|
||||||
height: 300,
|
height: 300,
|
||||||
toolbar: { show: false },
|
toolbar: { show: false },
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
@@ -181,7 +181,7 @@ const renderLineChart = () => {
|
|||||||
opacity: 0.2
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stroke: { curve: 'smooth', width: 3, lineCap: 'round' },
|
stroke: { curve: 'smooth' as const, width: 3, lineCap: 'round' as const },
|
||||||
markers: {
|
markers: {
|
||||||
size: 6,
|
size: 6,
|
||||||
colors: ['#3b82f6', '#10b981', '#ef4444'],
|
colors: ['#3b82f6', '#10b981', '#ef4444'],
|
||||||
@@ -226,8 +226,8 @@ const renderLineChart = () => {
|
|||||||
padding: { top: 0, right: 5, bottom: 0, left: 0 }
|
padding: { top: 0, right: 5, bottom: 0, left: 0 }
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
position: 'top',
|
position: 'top' as const,
|
||||||
horizontalAlign: 'right',
|
horizontalAlign: 'right' as const,
|
||||||
floating: true,
|
floating: true,
|
||||||
offsetY: -25,
|
offsetY: -25,
|
||||||
offsetX: -5,
|
offsetX: -5,
|
||||||
@@ -276,7 +276,7 @@ const renderLineChart = () => {
|
|||||||
},
|
},
|
||||||
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'top', horizontalAlign: 'center', floating: false, offsetY: 0 } } }]
|
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'top', horizontalAlign: 'center', floating: false, offsetY: 0 } } }]
|
||||||
}
|
}
|
||||||
lineChart = new ApexCharts(container, options)
|
lineChart = new ApexCharts(container as HTMLElement, options as any)
|
||||||
lineChart.render()
|
lineChart.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ const renderPieChart = () => {
|
|||||||
const options = {
|
const options = {
|
||||||
series: taskStats.value.map(item => item.count),
|
series: taskStats.value.map(item => item.count),
|
||||||
chart: {
|
chart: {
|
||||||
type: 'donut',
|
type: 'donut' as const,
|
||||||
height: 260,
|
height: 260,
|
||||||
toolbar: { show: false },
|
toolbar: { show: false },
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
@@ -389,7 +389,7 @@ const renderPieChart = () => {
|
|||||||
},
|
},
|
||||||
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }]
|
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }]
|
||||||
}
|
}
|
||||||
pieChart = new ApexCharts(container, options)
|
pieChart = new ApexCharts(container as HTMLElement, options as any)
|
||||||
pieChart.render()
|
pieChart.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user