yusheng 1 rok temu
rodzic
commit
0f05c63862
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 2 1
      src/views/home/data.js
  2. 2 2
      src/views/home/index.vue

+ 2 - 1
src/views/home/data.js

@@ -273,10 +273,11 @@ export const pieOption1 = (data) => {
 };
 
 export const lineOption = (data,time) => {
+  console.log(time,'time')
   return {
     tooltip: {
       formatter: (item) => {
-        return item.name + ' ' + item.seriesName + ':' + item.value + '万元';
+        return item.name + ' ' + item.seriesName + ':' + item.value + '';
       },
       trigger: 'item'
     },

+ 2 - 2
src/views/home/index.vue

@@ -170,7 +170,7 @@
 
         <el-card class="box-card" style="height: 60%; margin-top: 15px">
           <div slot="header" class="clearfix">
-            <span>班组维修消耗趋势</span>
+            <span>维修消耗趋势</span>
             <!-- <el-radio-group
               style="margin-left: 15px"
               v-model="timeType"
@@ -393,7 +393,7 @@
               type: 'line',
               smooth: true
             };
-          }, data.wxxhqsGroupVOList[0]?.yearAndMonthList)
+          }), data.wxxhqsGroupVOList[0]?.yearAndMonthList
         );
       },
       async queryGroupName() {