feat(iot):【设备定位】添加设备位置功能,支持地图展示和坐标选择

This commit is contained in:
YunaiV
2026-01-21 21:10:09 +08:00
parent 4aeb7a489a
commit 50216e5047
15 changed files with 714 additions and 139 deletions

View File

@@ -137,6 +137,7 @@ export function useBasicFormSchema(
},
rules: 'required',
},
// TODO @haohao这个貌似不需要
{
fieldName: 'status',
label: '产品状态',
@@ -149,16 +150,6 @@ export function useBasicFormSchema(
defaultValue: 0,
rules: 'required',
},
{
fieldName: 'locationType',
label: '定位类型',
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.IOT_LOCATION_TYPE, 'number'),
placeholder: '请选择定位类型',
},
rules: 'required',
},
];
}

View File

@@ -35,9 +35,6 @@ function formatDate(date?: Date | string) {
:value="product.deviceType"
/>
</Descriptions.Item>
<Descriptions.Item label="定位类型">
{{ product.locationType ?? '-' }}
</Descriptions.Item>
<Descriptions.Item label="创建时间">
{{ formatDate(product.createTime) }}
</Descriptions.Item>