From c2dd0d1203bd4e37cbd896bde4b15f85fcce8b78 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Sat, 08 Oct 2022 17:26:43 +0800
Subject: [PATCH] 更换为接口查询影像数据
---
src/utils/public.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/utils/public.js b/src/utils/public.js
index e69de29..dfd16a7 100644
--- a/src/utils/public.js
+++ b/src/utils/public.js
@@ -0,0 +1,13 @@
+/**
+ * 单位转换,如果大于10000 按1.0W显示
+ * @param num 需要转化的值
+ * @returns {*} 转化过的值
+ */
+function numUnitConversion (num) {
+ num = num-0
+ return (num > 9999) ? (num / 10000).toFixed(2) + 'w' : num.toFixed(0)
+}
+
+export default {
+ numUnitConversion
+}
--
Gitblit v1.9.3