fix: 【antd】【iot】修改设备状态字典为 IOT_DEVICE_STATE
This commit is contained in:
@@ -239,7 +239,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
label: '设备状态',
|
label: '设备状态',
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options: getDictOptions(DICT_TYPE.IOT_DEVICE_STATUS, 'number'),
|
options: getDictOptions(DICT_TYPE.IOT_DEVICE_STATE, 'number'),
|
||||||
placeholder: '请选择设备状态',
|
placeholder: '请选择设备状态',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
@@ -295,12 +295,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||||||
slots: { default: 'groups' },
|
slots: { default: 'groups' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'state',
|
||||||
title: '设备状态',
|
title: '设备状态',
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
cellRender: {
|
cellRender: {
|
||||||
name: 'CellDict',
|
name: 'CellDict',
|
||||||
props: { type: DICT_TYPE.IOT_DEVICE_STATUS },
|
props: { type: DICT_TYPE.IOT_DEVICE_STATE },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ onMounted(async () => {
|
|||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
<Select.Option
|
<Select.Option
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.IOT_DEVICE_STATUS)"
|
v-for="dict in getIntDictOptions(DICT_TYPE.IOT_DEVICE_STATE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ onMounted(async () => {
|
|||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
<Select.Option
|
<Select.Option
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.IOT_DEVICE_STATUS)"
|
v-for="dict in getIntDictOptions(DICT_TYPE.IOT_DEVICE_STATE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
>
|
>
|
||||||
@@ -373,7 +373,7 @@ onMounted(async () => {
|
|||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'status'">
|
<template v-else-if="column.key === 'status'">
|
||||||
<DictTag
|
<DictTag
|
||||||
:type="DICT_TYPE.IOT_DEVICE_STATUS"
|
:type="DICT_TYPE.IOT_DEVICE_STATE"
|
||||||
:value="record.status"
|
:value="record.status"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function handleAuthInfoDialogClose() {
|
|||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="当前状态">
|
<Descriptions.Item label="当前状态">
|
||||||
<DictTag
|
<DictTag
|
||||||
:type="DICT_TYPE.IOT_DEVICE_STATUS"
|
:type="DICT_TYPE.IOT_DEVICE_STATE"
|
||||||
:value="device.state"
|
:value="device.state"
|
||||||
/>
|
/>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
|
|||||||
@@ -155,7 +155,6 @@ const IOT_DICT = {
|
|||||||
IOT_DATA_SINK_TYPE_ENUM: 'iot_data_sink_type_enum', // IoT 数据流转目的类型
|
IOT_DATA_SINK_TYPE_ENUM: 'iot_data_sink_type_enum', // IoT 数据流转目的类型
|
||||||
IOT_DATA_TYPE: 'iot_data_type', // IOT 数据类型
|
IOT_DATA_TYPE: 'iot_data_type', // IOT 数据类型
|
||||||
IOT_DEVICE_STATE: 'iot_device_state', // IOT 设备状态
|
IOT_DEVICE_STATE: 'iot_device_state', // IOT 设备状态
|
||||||
IOT_DEVICE_STATUS: 'iot_device_status', // IOT 设备状态
|
|
||||||
IOT_LOCATION_TYPE: 'iot_location_type', // IOT 定位类型
|
IOT_LOCATION_TYPE: 'iot_location_type', // IOT 定位类型
|
||||||
IOT_NET_TYPE: 'iot_net_type', // IOT 联网方式
|
IOT_NET_TYPE: 'iot_net_type', // IOT 联网方式
|
||||||
IOT_OTA_TASK_DEVICE_SCOPE: 'iot_ota_task_device_scope', // IoT OTA任务设备范围
|
IOT_OTA_TASK_DEVICE_SCOPE: 'iot_ota_task_device_scope', // IoT OTA任务设备范围
|
||||||
|
|||||||
Reference in New Issue
Block a user