Compare commits

..

No commits in common. "85cc0c4c43f0680b6714ea895a2b949ada686ee8" and "bb4400196115ce3caa7837887e57134b7068b7a4" have entirely different histories.

2 changed files with 224 additions and 1265 deletions

View File

@ -12,45 +12,45 @@ const show = ref(false);
onMounted(() => {
chartContainer.value.classList.add("h-full");
const d = loadData(store.data2.lineSevenDayLogList);
// const d = loadData([
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// ]);
// const d = loadData(store.data2.lineSevenDayLogList);
const d = loadData([
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢一线",
},
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢二线",
},
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢三线",
},
]);
if (!d) {
show.value = false;
if (chartInstance.value) {
@ -67,45 +67,45 @@ onMounted(() => {
//
store.$subscribe((mutation, state) => {
const d = loadData(state.data2.lineSevenDayLogList);
// const d = loadData([
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// {
// data: [
// { day: "10-10", num: Math.floor(Math.random() * 500) },
// { day: "10-11", num: Math.floor(Math.random() * 500) },
// { day: "10-12", num: Math.floor(Math.random() * 500) },
// { day: "10-13", num: Math.floor(Math.random() * 500) },
// { day: "10-14", num: Math.floor(Math.random() * 500) },
// { day: "10-15", num: Math.floor(Math.random() * 500) },
// { day: "10-16", num: Math.floor(Math.random() * 500) },
// ],
// name: "线",
// },
// ]);
// const d = loadData(state.data2.lineSevenDayLogList);
const d = loadData([
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢一线",
},
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢二线",
},
{
data: [
{ day: "10-10", num: Math.floor(Math.random() * 500) },
{ day: "10-11", num: Math.floor(Math.random() * 500) },
{ day: "10-12", num: Math.floor(Math.random() * 500) },
{ day: "10-13", num: Math.floor(Math.random() * 500) },
{ day: "10-14", num: Math.floor(Math.random() * 500) },
{ day: "10-15", num: Math.floor(Math.random() * 500) },
{ day: "10-16", num: Math.floor(Math.random() * 500) },
],
name: "钢三线",
},
]);
if (!d) {
show.value = false;
if (chartInstance.value) {

File diff suppressed because it is too large Load Diff