diff --git a/src/api/device/index.ts b/src/api/device/index.ts index 1aee09b..4d28998 100644 --- a/src/api/device/index.ts +++ b/src/api/device/index.ts @@ -116,3 +116,16 @@ export function getDeviceInfos(data: any) { data: data }); } + +/** + * 天气数据图表 + * + * @param data + */ +export function weatherHoursList(data: any) { + return request({ + url: '/dc/dcDeviceEcharts/weatherHoursList', + method: 'post', + data: data + }); +} diff --git a/src/api/device/types.ts b/src/api/device/types.ts index 470d4b8..fe23c1b 100644 --- a/src/api/device/types.ts +++ b/src/api/device/types.ts @@ -99,5 +99,7 @@ export interface mainInfoVo { paramUnit: string; index: number; average: number; + max?: number; + min?: number; data: []; } diff --git a/src/assets/iconfont/demo_index.html b/src/assets/iconfont/demo_index.html index 3c0627e..f3777d0 100644 --- a/src/assets/iconfont/demo_index.html +++ b/src/assets/iconfont/demo_index.html @@ -47,7 +47,7 @@
  • Symbol
  • - 查看项目 + 查看项目
    @@ -55,81 +55,63 @@ @@ -420,9 +456,9 @@
    @font-face {
       font-family: 'iconfont';
    -  src: url('iconfont.woff2?t=1699254830523') format('woff2'),
    -       url('iconfont.woff?t=1699254830523') format('woff'),
    -       url('iconfont.ttf?t=1699254830523') format('truetype');
    +  src: url('iconfont.woff2?t=1703727917505') format('woff2'),
    +       url('iconfont.woff?t=1703727917505') format('woff'),
    +       url('iconfont.ttf?t=1703727917505') format('truetype');
     }
     

    第二步:定义使用 iconfont 的样式

    @@ -449,119 +485,92 @@
    {{ item.paramName }} - 确认 +
    @@ -143,7 +143,19 @@
    - + +