From 9129b1eb416d67c01451dacae774d388e790a860 Mon Sep 17 00:00:00 2001 From: haohao <1036606149@qq.com> Date: Mon, 10 Nov 2025 15:11:40 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix:=E3=80=90antd=E3=80=91=E3=80=90iot?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E6=94=B9=E6=A0=B9=E6=8D=AE=E4=BA=A7=E5=93=81?= =?UTF-8?q?=20ID=20=E6=9F=A5=E8=AF=A2=E7=89=A9=E6=A8=A1=E5=9E=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/iot/thingmodel/index.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/apps/web-antd/src/api/iot/thingmodel/index.ts b/apps/web-antd/src/api/iot/thingmodel/index.ts index 354088704..9e89b869c 100644 --- a/apps/web-antd/src/api/iot/thingmodel/index.ts +++ b/apps/web-antd/src/api/iot/thingmodel/index.ts @@ -140,19 +140,11 @@ export function getThingModel(id: number) { /** 根据产品 ID 查询物模型列表 */ export function getThingModelListByProductId(productId: number) { return requestClient.get( - '/iot/thing-model/list-by-product-id', + '/iot/thing-model/list', { params: { productId } }, ); } -/** 根据产品标识查询物模型列表 */ -export function getThingModelListByProductKey(productKey: string) { - return requestClient.get( - '/iot/thing-model/list-by-product-key', - { params: { productKey } }, - ); -} - /** 新增物模型 */ export function createThingModel(data: ThingModelData) { return requestClient.post('/iot/thing-model/create', data); @@ -168,13 +160,6 @@ export function deleteThingModel(id: number) { return requestClient.delete(`/iot/thing-model/delete?id=${id}`); } -/** 批量删除物模型 */ -export function deleteThingModelList(ids: number[]) { - return requestClient.delete('/iot/thing-model/delete-list', { - params: { ids: ids.join(',') }, - }); -} - /** 获取物模型 TSL */ export function getThingModelTSL(productId: number) { return requestClient.get( From 65d3be03b8d07542a051936a4632e21077756682 Mon Sep 17 00:00:00 2001 From: haohao <1036606149@qq.com> Date: Mon, 10 Nov 2025 15:15:57 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=E3=80=90antd=E3=80=91=E3=80=90iot?= =?UTF-8?q?=E3=80=91=E5=B0=86=20DataZoom=20=E7=BB=84=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=B0=20echarts=20=E9=9B=86=E6=88=90=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/effects/plugins/src/echarts/echarts.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/effects/plugins/src/echarts/echarts.ts b/packages/effects/plugins/src/echarts/echarts.ts index 2dfe2a8a3..216d883d4 100644 --- a/packages/effects/plugins/src/echarts/echarts.ts +++ b/packages/effects/plugins/src/echarts/echarts.ts @@ -7,6 +7,7 @@ import type { } from 'echarts/charts'; import type { DatasetComponentOption, + DataZoomComponentOption, GeoComponentOption, GridComponentOption, // 组件类型的定义后缀都为 ComponentOption @@ -28,6 +29,9 @@ import { import { // 数据集组件 DatasetComponent, + DataZoomComponent, + DataZoomInsideComponent, + DataZoomSliderComponent, GeoComponent, GridComponent, LegendComponent, @@ -46,6 +50,7 @@ import { CanvasRenderer } from 'echarts/renderers'; export type ECOption = ComposeOption< | BarSeriesOption | DatasetComponentOption + | DataZoomComponentOption | GaugeSeriesOption | GeoComponentOption | GridComponentOption @@ -64,6 +69,9 @@ echarts.use([ TooltipComponent, GridComponent, DatasetComponent, + DataZoomComponent, + DataZoomInsideComponent, + DataZoomSliderComponent, TransformComponent, BarChart, LineChart, From e12ac0c31db00ca4925f4a1692fe06e9004ac616 Mon Sep 17 00:00:00 2001 From: haohao <1036606149@qq.com> Date: Mon, 10 Nov 2025 15:17:13 +0800 Subject: [PATCH 3/7] =?UTF-8?q?refactor:=E3=80=90antd=E3=80=91=E3=80=90iot?= =?UTF-8?q?=E3=80=91=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/detail/DeviceDetailsThingModelProperty.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsThingModelProperty.vue b/apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsThingModelProperty.vue index 283a2d133..960d0f706 100644 --- a/apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsThingModelProperty.vue +++ b/apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsThingModelProperty.vue @@ -123,10 +123,12 @@ onMounted(() => { style="width: 240px" @press-enter="handleQuery" /> -
- 自动刷新 - -
+