市况汇率

main
wenlong 2024-08-06 00:34:35 +08:00
commit 9384b096b2
3 changed files with 1133 additions and 3 deletions

1
components.d.ts vendored
View File

@ -33,7 +33,6 @@ declare module 'vue' {
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']

1123
src/views/home/Home-bak.vue Executable file

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ import {
fetchPartmaxBusSeedsRateBySupplier
} from '@/api/daikin/base'
import { groupBy, cloneDeep } from 'lodash-es'
import type { EChartsOption } from 'echarts'
// import type { EChartsOption } from 'echarts'
use([
CanvasRenderer,
@ -61,6 +61,7 @@ const optionMin = ref<any>({})
const chartRef = ref<any>(null)
const chartRef2 = ref<any>(null)
const loading = ref(false)
const echartRefs = ref<any>({})
const part = ref('DIS')
const partMin = ref('DIS')
@ -116,6 +117,7 @@ const getPartStatisRate = async (date?: Date) => {
return { name: item.part, value: item.amount }
})
option.value.graphic.style.text = '总计' + '\n' + formatNum(total) + '\n' + '千元'
option.value.graphic.style.text = '总计' + '\n' + formatNum(total) + '\n' + '百万元'
}
//
const randomData = () => {
@ -533,7 +535,13 @@ const beforeUpload = (file: any) => {
</el-select>
</div>
<div class="mt-50px w-full h-300px relative">
<VChart key="yyyxx33" :option="optionMax" autoresize></VChart>
<VChart
@legendselectchanged="chartClick"
key="yyyxx33"
:ref="(el) => (echartRefs['max'] = el)"
:option="optionMax"
autoresize
></VChart>
<!-- <img
@click="init(true)"
src="./img/z.png"