设备物模型属性和指令界面优化

This commit is contained in:
ChenYi 2025-12-19 10:32:13 +08:00
parent 9ef2ebd13a
commit 38427d204d
2 changed files with 71 additions and 18 deletions

View File

@ -28,8 +28,14 @@ const [Grid, gridApi] = useVbenVxeGrid({
showOverflow: 'tooltip',
},
{
field: 'identifier',
title: '标识符',
field: 'issueCommand',
title: '下发指令',
minWidth: 140,
showOverflow: 'tooltip',
},
{
field: 'propertyArray',
title: '属性标识符集合',
minWidth: 140,
showOverflow: 'tooltip',
},

View File

@ -22,21 +22,69 @@ const [Grid, gridApi] = useVbenVxeGrid({
gridOptions: {
columns: [
{
field: 'propertyName',
title: '属性名称',
field: 'standardFieldDisplayName',
title: '标准属性名称',
minWidth: 160,
showOverflow: 'tooltip',
},
{
field: 'identifier',
title: '标识符',
field: 'standardFieldName',
title: '标准属性标识符',
minWidth: 160,
showOverflow: 'tooltip',
},
{
field: 'standardFieldValueType',
title: '标准属性值类型',
minWidth: 160,
showOverflow: 'tooltip',
},
{
field: 'ioTPlatformRawFieldName',
title: '平台属性标识符',
minWidth: 160,
showOverflow: 'tooltip',
},
{
field: 'ioTPlatformRawFieldDataType',
title: '平台属性值类型',
minWidth: 160,
showOverflow: 'tooltip',
},
{
field: 'isValueNeedConvert',
title: '值类型是否转换',
minWidth: 120,
showOverflow: 'tooltip',
},
{
field: 'parsingSequence',
title: '解析方式',
minWidth: 140,
showOverflow: 'tooltip',
},
{
field: 'dataType',
title: '数据类型',
minWidth: 120,
field: 'nativeSkipNumber',
title: '正序跳过数量',
minWidth: 140,
showOverflow: 'tooltip',
},
{
field: 'nativeTakeNumber',
title: '正序获取数量',
minWidth: 140,
showOverflow: 'tooltip',
},
{
field: 'reversalSkipNumber',
title: '反转跳过数量',
minWidth: 140,
showOverflow: 'tooltip',
},
{
field: 'reversalTakeNumber',
title: '反转获取数量',
minWidth: 140,
showOverflow: 'tooltip',
},
{
@ -55,7 +103,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
if (!deviceThingModelId.value) {
return { items: [], totalCount: 0 };
}
const { data } = await postDeviceThingModelManagementPropertyPageAsync({
const { data } =
await postDeviceThingModelManagementPropertyPageAsync({
body: {
pageIndex: page.currentPage,
pageSize: page.pageSize,
@ -90,5 +139,3 @@ const [Modal, modalApi] = useVbenModal({
</Grid>
</Modal>
</template>