Browse Source

截取字符串

wangcc 2 years ago
parent
commit
b36abe49e5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/Receivables/analyse.vue

+ 2 - 2
src/components/Receivables/analyse.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Date: 2023-01-11 15:28:30
  * @LastEditors: wangcc
- * @LastEditTime: 2023-01-29 13:57:40
+ * @LastEditTime: 2023-02-17 13:50:30
  * @FilePath: \parking_LargeScreen\src\components\Receivables\analyse.vue
  * @Copyright: Copyright (c) 2016~2023 by wangcc, All Rights Reserved. 
 -->
@@ -86,7 +86,7 @@ export default {
             return data;
           });
           this.echartsData.xData = this.echartsData.barRData.map((item) => {
-            return item.time;
+            return item.time.substring(5,10);
           });
           this.echartsData.yData = this.echartsData.barRData.map((item) => {
             return item.num;