|
@@ -247,6 +247,29 @@ export default {
|
|
data.data.series[2].data.forEach((item) => {
|
|
data.data.series[2].data.forEach((item) => {
|
|
orderNumber.value = parseInt(orderNumber.value + item);
|
|
orderNumber.value = parseInt(orderNumber.value + item);
|
|
});
|
|
});
|
|
|
|
+ data.data.categories.forEach((item, index) => {
|
|
|
|
+ if (item == "周1") {
|
|
|
|
+ data.data.categories[index] = t("home.week.mon");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周2") {
|
|
|
|
+ data.data.categories[index] = t("home.week.tue");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周3") {
|
|
|
|
+ data.data.categories[index] = t("home.week.wed");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周4") {
|
|
|
|
+ data.data.categories[index] = t("home.week.thu");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周5") {
|
|
|
|
+ data.data.categories[index] = t("home.week.fri");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周6") {
|
|
|
|
+ data.data.categories[index] = t("home.week.sat");
|
|
|
|
+ }
|
|
|
|
+ if (item == "周日") {
|
|
|
|
+ data.data.categories[index] = t("home.week.sun");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
// 解决eacharts与v-if的渲染问题
|
|
// 解决eacharts与v-if的渲染问题
|
|
await nextTick();
|
|
await nextTick();
|
|
if (chartBox.value) {
|
|
if (chartBox.value) {
|