|
@@ -5,6 +5,7 @@ import { useThemeStore } from '@/stores/modules/theme'
|
|
|
import { onMounted, ref, reactive, watch, computed } from 'vue'
|
|
import { onMounted, ref, reactive, watch, computed } from 'vue'
|
|
|
import updateIcon from '../image/xiazai.png'
|
|
import updateIcon from '../image/xiazai.png'
|
|
|
import * as XLSX from 'xlsx'
|
|
import * as XLSX from 'xlsx'
|
|
|
|
|
+import { formatNumber } from '@/utils/tools'
|
|
|
|
|
|
|
|
const themeStore = useThemeStore()
|
|
const themeStore = useThemeStore()
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -198,7 +199,7 @@ const initOption = reactive({
|
|
|
item.marker +
|
|
item.marker +
|
|
|
item.seriesName +
|
|
item.seriesName +
|
|
|
': ' +
|
|
': ' +
|
|
|
- item.value +
|
|
|
|
|
|
|
+ formatNumber(item.value) +
|
|
|
'</div>'
|
|
'</div>'
|
|
|
})
|
|
})
|
|
|
allnum = allnum.toFixed(2)
|
|
allnum = allnum.toFixed(2)
|
|
@@ -247,7 +248,10 @@ const initOption = reactive({
|
|
|
},
|
|
},
|
|
|
axisLabel: {
|
|
axisLabel: {
|
|
|
fontFamily: 'Lato-Light',
|
|
fontFamily: 'Lato-Light',
|
|
|
- color: '#B5B9BF'
|
|
|
|
|
|
|
+ color: '#B5B9BF',
|
|
|
|
|
+ formatter: function (value: any) {
|
|
|
|
|
+ return formatNumber(value, 0)
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
min: 0, // 最小值
|
|
min: 0, // 最小值
|
|
|
max: Max.value, // 最大值
|
|
max: Max.value, // 最大值
|