yusheng 1 год назад
Родитель
Сommit
0f05c63862
2 измененных файлов с 4 добавлено и 3 удалено
  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) => {
 export const lineOption = (data,time) => {
+  console.log(time,'time')
   return {
   return {
     tooltip: {
     tooltip: {
       formatter: (item) => {
       formatter: (item) => {
-        return item.name + ' ' + item.seriesName + ':' + item.value + '万元';
+        return item.name + ' ' + item.seriesName + ':' + item.value + '';
       },
       },
       trigger: 'item'
       trigger: 'item'
     },
     },

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

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