|
@@ -65,9 +65,13 @@
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
// 图表数据
|
|
// 图表数据
|
|
|
- data: {
|
|
|
|
|
- type: Object,
|
|
|
|
|
- default: () => {},
|
|
|
|
|
|
|
+ infoData: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default: () => [],
|
|
|
|
|
+ },
|
|
|
|
|
+ dateData: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default: () => [],
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
const chartRef = ref<HTMLDivElement | null>(null);
|
|
const chartRef = ref<HTMLDivElement | null>(null);
|
|
@@ -87,8 +91,8 @@
|
|
|
// console.log(resData);
|
|
// console.log(resData);
|
|
|
// infoData.value = resData.validCount || [];
|
|
// infoData.value = resData.validCount || [];
|
|
|
// dateData.value = resData.uploadTimes || [];
|
|
// dateData.value = resData.uploadTimes || [];
|
|
|
- infoData.value = [10, 25, 30, 16, 36, 10];
|
|
|
|
|
- dateData.value = [
|
|
|
|
|
|
|
+ infoData.value = props.infoData || [10, 25, 30, 16, 36, 10];
|
|
|
|
|
+ dateData.value = props.dateData || [
|
|
|
'2023-05-10',
|
|
'2023-05-10',
|
|
|
'2023-05-11',
|
|
'2023-05-11',
|
|
|
'2023-05-12',
|
|
'2023-05-12',
|