diff --git a/src/views/compositeIndex/components/companyCar.vue b/src/views/compositeIndex/components/companyCar.vue index 4d505ee..fd03376 100644 --- a/src/views/compositeIndex/components/companyCar.vue +++ b/src/views/compositeIndex/components/companyCar.vue @@ -96,11 +96,11 @@ export default { let dateTemp; let flag = 1; for (let i = 1; i < day; i++) { - dateTemp = year + "-" + month + myDate.getDate(); + dateTemp = year + "-" + month + "-" + myDate.getDate(); dateArray.push(dateTemp); myDate.setDate(myDate.getDate() + flag); } - dateArray.push(year + "-" + month + myDate.getDate()); + dateArray.push(year + "-" + month + "-" + myDate.getDate()); return dateArray; }, // 获取上月前7天数组 @@ -116,11 +116,11 @@ export default { let dateTemp; let flag = 1; for (let i = 1; i < day; i++) { - dateTemp = year + "-" + month + myDate.getDate(); + dateTemp = year + "-" + month + "-" + myDate.getDate(); dateArray.push(dateTemp); myDate.setDate(myDate.getDate() + flag); } - dateArray.push(year + "-" + month + myDate.getDate()); + dateArray.push(year + "-" + month + "-" + myDate.getDate()); return dateArray; }, init_chart() { @@ -183,18 +183,14 @@ export default { axisLine: { onZero: false, lineStyle: { - color: colors[4], + color: "#fff", }, }, axisPointer: { label: { + color: "black", formatter: function (params) { - return ( - params.value + - (params.seriesData.length - ? ":" + params.seriesData[0].data - : "") - ); + return params.value; }, }, }, @@ -209,18 +205,14 @@ export default { axisLine: { onZero: false, lineStyle: { - color: colors[4], + color: "#fff", }, }, axisPointer: { label: { + color: "black", formatter: function (params) { - return ( - params.value + - (params.seriesData.length - ? ":" + params.seriesData[0].data - : "") - ); + return params.value; }, }, }, @@ -249,7 +241,7 @@ export default { emphasis: { focus: "series", }, - data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6], + data: [141, 231, 155, 99, 75, 201, 63], }, { name: "今日出园区", @@ -259,7 +251,7 @@ export default { emphasis: { focus: "series", }, - data: [2.6, 5.9, 9.0, 26, 27, 70.7, 175.6], + data: [34, 45, 59, 44, 34, 61, 55], }, { name: "上月进园区", @@ -268,7 +260,7 @@ export default { emphasis: { focus: "series", }, - data: [3.9, 5.9, 11.1, 18.7, 48.3, 69.2, 231.6], + data: [79, 98, 101, 122, 97, 88, 72], }, { name: "上月出园区", @@ -331,7 +323,7 @@ export default { .in_car { width: 10vw; height: 5vh; - // border: 0.1px solid #495e70; + // display: flex; .in_car_icon { width: 2.5vw; diff --git a/src/views/compositeIndex/components/companyNum.vue b/src/views/compositeIndex/components/companyNum.vue index 921550a..17e26a4 100644 --- a/src/views/compositeIndex/components/companyNum.vue +++ b/src/views/compositeIndex/components/companyNum.vue @@ -239,8 +239,8 @@ export default { height: 8vh; .num_green { width: 6vw; - height: 5vh; - line-height: 5vh; + height: 4vh; + line-height: 4vh; background: linear-gradient(#fff, #00ffd4); background-clip: text; color: transparent; @@ -250,8 +250,8 @@ export default { } .num_orange { width: 6vw; - height: 5vh; - line-height: 5vh; + height: 4vh; + line-height: 4vh; background: linear-gradient(#fff, #fef699); background-clip: text; color: transparent; @@ -261,8 +261,8 @@ export default { } .num_red { width: 6vw; - height: 5vh; - line-height: 5vh; + height: 4vh; + line-height: 4vh; background: linear-gradient(#fff, #ff4b4b); background-clip: text; color: transparent; diff --git a/src/views/compositeIndex/components/notification.vue b/src/views/compositeIndex/components/notification.vue index e439733..4856254 100644 --- a/src/views/compositeIndex/components/notification.vue +++ b/src/views/compositeIndex/components/notification.vue @@ -3,13 +3,12 @@