feat: 更换背景图片
This commit is contained in:
parent
34fa7a1c1a
commit
5ac8aca6df
BIN
apps/web-antd/src/assets/222.jpg
Normal file
BIN
apps/web-antd/src/assets/222.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
BIN
apps/web-antd/src/assets/222.png
Normal file
BIN
apps/web-antd/src/assets/222.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 608 KiB |
@ -168,14 +168,19 @@ const updateTime = () => {
|
||||
const initBarChart = () => {
|
||||
if (!barChart.value) return
|
||||
|
||||
const chart = echarts.init(barChart.value)
|
||||
const option = getThreeDBarOption({
|
||||
xData: ['A区', 'B区', 'C区', 'D区'],
|
||||
yData: [320, 452, 688, 400]
|
||||
})
|
||||
chart.setOption(option)
|
||||
barChartInstance = chart
|
||||
addChartToResizeManager(chart)
|
||||
const myChart = echarts.init(barChart.value);
|
||||
myChart.setOption({
|
||||
tooltip: {},
|
||||
xAxis: { data: ['A', 'B', 'C', 'D'] },
|
||||
yAxis: {},
|
||||
series: [
|
||||
{
|
||||
name: '销量',
|
||||
type: 'bar',
|
||||
data: [5, 20, 36, 10, 10, 20],
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
// 初始化电力图表
|
||||
@ -601,6 +606,9 @@ onBeforeUnmount(() => {
|
||||
min-height: unset;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.bar-chart{
|
||||
|
||||
}
|
||||
}
|
||||
.second{
|
||||
height: 12rem;
|
||||
|
Loading…
Reference in New Issue
Block a user