helongyang
5 天以前 753361f589444455fe1b20476c658201ccd92c38
´úÂë¹ÜÀí/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue
@@ -8,9 +8,6 @@
    <div v-else style="color: white; text-align: center; padding-top: 50px">
      æ•°æ®åŠ è½½ä¸­...
    </div>
    <div v-if="error" style="color: red; text-align: center; padding-top: 50px">
      æ•°æ®åŠ è½½å¤±è´¥: {{ error }}
    </div>
  </div>
</template>
@@ -106,15 +103,55 @@
          },
        },
        series: [
          { name: '成品入库', type: 'line', data: [] },
          { name: '成品出库', type: 'line', data: [] },
          { name: '空框回流', type: 'line', data: [] },
          { name: '成品回库', type: 'line', data: [] }
          {
            name: '成品入库',
            type: 'line',
            data: [],
            areaStyle: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                { offset: 0, color: 'rgba(0, 255, 255, 0.3)' },
                { offset: 1, color: 'rgba(0, 255, 255, 0)' }
              ])
            }
          },
          {
            name: '成品出库',
            type: 'line',
            data: [],
            areaStyle: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                { offset: 0, color: 'rgba(255, 0, 255, 0.3)' },
                { offset: 1, color: 'rgba(255, 0, 255, 0)' }
              ])
            }
          },
          {
            name: '空框回流',
            type: 'line',
            data: [],
            areaStyle: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                { offset: 0, color: 'rgba(255, 255, 0, 0.3)' },
                { offset: 1, color: 'rgba(255, 255, 0, 0)' }
              ])
            }
          },
          {
            name: '成品回库',
            type: 'line',
            data: [],
            areaStyle: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                { offset: 0, color: 'rgba(0, 255, 0, 0.3)' },
                { offset: 1, color: 'rgba(0, 255, 0, 0)' }
              ])
            }
          }
        ]
      };
    },
    async fetchData() {
       this.loading = true;
      this.loading = true;
      this.error = null;
      
      try {
@@ -137,8 +174,6 @@
      }
    },
    updateChart(data) {
      const dates = data.dateRange;
      const stats = data.dailyStatistics;
      
@@ -183,6 +218,7 @@
</script>
<style lang='scss' scoped>
/* æ ·å¼éƒ¨åˆ†ä¿æŒä¸å˜ */
.user_Overview {
  li {
    flex: 1;
@@ -219,7 +255,6 @@
    }
    .allnum {
      // background-image: url("../../assets/img/left_top_lan.png");
      &::before {
        background-image: url("../../assets/img/left_top_lan.png");
      }