Compare commits
3 Commits
572cad895a
...
2b19953855
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b19953855 | ||
|
|
11c2e02277 | ||
|
|
37168fdba1 |
@ -1,3 +1,9 @@
|
|||||||
|
###
|
||||||
|
# @Description: 文件内容描述
|
||||||
|
# @Author: 陈益
|
||||||
|
# @Date: 2025-09-18 10:20:18
|
||||||
|
# @LastEditors: 陈益
|
||||||
|
###
|
||||||
# 端口号
|
# 端口号
|
||||||
VITE_PORT=4200
|
VITE_PORT=4200
|
||||||
|
|
||||||
@ -30,9 +36,9 @@ VITE_REFRESH_ROLE = true
|
|||||||
|
|
||||||
# 后端接口地址
|
# 后端接口地址
|
||||||
#VITE_APP_API_ADDRESS=http://47.110.53.196:28080
|
#VITE_APP_API_ADDRESS=http://47.110.53.196:28080
|
||||||
VITE_APP_API_ADDRESS=http://10.10.70.11:10500
|
VITE_APP_API_ADDRESS=http://10.10.90.3:10500
|
||||||
|
|
||||||
# websocket地址
|
# websocket地址
|
||||||
VITE_WEBSOCKET_URL=http://10.10.70.11:10500/signalr/notification
|
VITE_WEBSOCKET_URL=http://10.10.90.3:10500/signalr/notification
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1180,6 +1180,24 @@ export const ControllerInterfaceApiDescriptionModelSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const CopyAnotherProductInputSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
pendingCopyDataId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '待复制设备物模型数据ID',
|
||||||
|
format: 'uuid'
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '产品ID',
|
||||||
|
nullable: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false,
|
||||||
|
description: '根据数据ID复制已存在物模型信息'
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const CreateDataDictinaryDetailInputSchema = {
|
export const CreateDataDictinaryDetailInputSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -1202,6 +1220,11 @@ export const CreateDataDictinaryDetailInputSchema = {
|
|||||||
order: {
|
order: {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
format: 'int32'
|
format: 'int32'
|
||||||
|
},
|
||||||
|
extendedAttribute: {
|
||||||
|
type: 'string',
|
||||||
|
description: '扩展属性',
|
||||||
|
nullable: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
@ -1433,6 +1456,40 @@ export const CreateTextTemplateInputSchema = {
|
|||||||
description: '创建模板'
|
description: '创建模板'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const CreateThingModelInputSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
ioTPlatform: {
|
||||||
|
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品Id',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
filedType: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
rawFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
standardFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '管理后台产品标准的物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
isValueNeedConvert: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要值类型转换'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const CurrentCultureDtoSchema = {
|
export const CurrentCultureDtoSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -1739,6 +1796,12 @@ export const DeviceCommandForApiInputSchema = {
|
|||||||
minLength: 1,
|
minLength: 1,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '设备在物联网平台中发送的命令内容,JSON格式'
|
description: '设备在物联网平台中发送的命令内容,JSON格式'
|
||||||
|
},
|
||||||
|
deviceType: {
|
||||||
|
'$ref': '#/components/schemas/DeviceTypeEnum'
|
||||||
|
},
|
||||||
|
telemetryType: {
|
||||||
|
'$ref': '#/components/schemas/DeviceTelemetryCommandTypeEnum'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
@ -1938,11 +2001,11 @@ export const DeviceOnlineStatusEnumSchema = {
|
|||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const DeviceSourceTypeEnumSchema = {
|
export const DeviceSourceTypeEnumSchema = {
|
||||||
enum: [1, 2, 3, 4],
|
enum: [1, 2, 3, 4, 5, 6],
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
description: '设备来源类型枚举',
|
description: '设备来源类型枚举',
|
||||||
format: 'int32',
|
format: 'int32',
|
||||||
'说明:': '管理后台=1,生产车间=2,CTWing推送=3,OneNET推送=4'
|
'说明:': '管理后台=1,生产车间=2,CTWing推送=3,OneNET推送=4,预付费业务系统推送=5,能耗业务系统推送=6'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const DeviceTableModelDataInfoPageInputSchema = {
|
export const DeviceTableModelDataInfoPageInputSchema = {
|
||||||
@ -1996,6 +2059,10 @@ export const DeviceTableModelDataInfoPageInputSchema = {
|
|||||||
description: '结束创建时间',
|
description: '结束创建时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
nullable: true
|
nullable: true
|
||||||
|
},
|
||||||
|
isNeedPaging: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要分页, 默认为true'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
@ -2064,6 +2131,137 @@ export const DeviceTableModelDataInfoPageOutputPagedResultDtoSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const DeviceTelemetryCommandTypeEnumSchema = {
|
||||||
|
enum: [1, 2],
|
||||||
|
type: 'integer',
|
||||||
|
description: '设备数据包命令类型枚举',
|
||||||
|
format: 'int32',
|
||||||
|
'说明:': '阀控=1,抄读=2'
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const DeviceThingModelInfoDtoSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'uuid'
|
||||||
|
},
|
||||||
|
creationTime: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'date-time'
|
||||||
|
},
|
||||||
|
creatorId: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'uuid',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
lastModificationTime: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'date-time',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
lastModifierId: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'uuid',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
isDeleted: {
|
||||||
|
type: 'boolean'
|
||||||
|
},
|
||||||
|
deleterId: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'uuid',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
deletionTime: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'date-time',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
tenantId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '租户Id',
|
||||||
|
format: 'uuid',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
remark: {
|
||||||
|
type: 'string',
|
||||||
|
description: '备注',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
osaCreatorId: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '旧系统授权创建者Id',
|
||||||
|
format: 'int32',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
osaLastModifierId: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '旧系统授权最后修改者Id',
|
||||||
|
format: 'int32',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
osaDeleterId: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '旧系统授权最后删除者Id',
|
||||||
|
format: 'int32',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
extraProperties: {
|
||||||
|
type: 'object',
|
||||||
|
additionalProperties: {},
|
||||||
|
description: '扩展属性,用于存储自定义字段,JSON格式',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
ioTPlatform: {
|
||||||
|
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品Id',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
filedType: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
rawFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
standardFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '管理后台产品标准的物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
isValueNeedConvert: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要值类型转换'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const DeviceThingModelInfoDtoPagedResultDtoSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
items: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
'$ref': '#/components/schemas/DeviceThingModelInfoDto'
|
||||||
|
},
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
totalCount: {
|
||||||
|
type: 'integer',
|
||||||
|
format: 'int64'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const DeviceTreeModelDataInfoInputSchema = {
|
export const DeviceTreeModelDataInfoInputSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -2115,6 +2313,10 @@ export const DeviceTreeModelDataInfoInputSchema = {
|
|||||||
description: '结束创建时间',
|
description: '结束创建时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
nullable: true
|
nullable: true
|
||||||
|
},
|
||||||
|
isNeedPaging: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要分页, 默认为true'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
@ -4338,6 +4540,10 @@ export const MeterReadingPacketInfoPageInputSchema = {
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
|
isNeedPaging: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要分页, 默认为true'
|
||||||
|
},
|
||||||
ioTPlatformDeviceOpenInfo: {
|
ioTPlatformDeviceOpenInfo: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '物联网平台设备ID',
|
description: '物联网平台设备ID',
|
||||||
@ -4384,6 +4590,12 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
timestampStr: {
|
||||||
|
type: 'string',
|
||||||
|
description: '字符串格式时标',
|
||||||
|
nullable: true,
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
devicePath: {
|
devicePath: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
||||||
@ -6121,6 +6333,60 @@ export const PageTextTemplateOutputPagedResultDtoSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const PageThingModelInputSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
pageIndex: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '当前页面.默认从1开始',
|
||||||
|
format: 'int32'
|
||||||
|
},
|
||||||
|
pageSize: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '每页多少条.每页显示多少记录',
|
||||||
|
format: 'int32'
|
||||||
|
},
|
||||||
|
skipCount: {
|
||||||
|
type: 'integer',
|
||||||
|
description: '跳过多少条',
|
||||||
|
format: 'int32',
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
|
sorting: {
|
||||||
|
type: 'string',
|
||||||
|
description: `排序
|
||||||
|
<example>
|
||||||
|
name desc
|
||||||
|
</example>`,
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
ioTPlatform: {
|
||||||
|
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||||
|
},
|
||||||
|
searchKeyword: {
|
||||||
|
type: 'string',
|
||||||
|
description: '搜索关键字',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品Id',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
filedType: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
rawFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const PagingAuditLogActionOutputSchema = {
|
export const PagingAuditLogActionOutputSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -7474,6 +7740,10 @@ export const QueryCTWingAepReceiveMessageInputSchema = {
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
|
isNeedPaging: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要分页, 默认为true'
|
||||||
|
},
|
||||||
ioTPlatformDeviceOpenInfo: {
|
ioTPlatformDeviceOpenInfo: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '物联网平台设备ID',
|
description: '物联网平台设备ID',
|
||||||
@ -7520,6 +7790,12 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
timestampStr: {
|
||||||
|
type: 'string',
|
||||||
|
description: '字符串格式时标',
|
||||||
|
nullable: true,
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
devicePath: {
|
devicePath: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
||||||
@ -7671,6 +7947,10 @@ export const QueryOneNETReceiveMessageInputSchema = {
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
|
isNeedPaging: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要分页, 默认为true'
|
||||||
|
},
|
||||||
ioTPlatformDeviceOpenInfo: {
|
ioTPlatformDeviceOpenInfo: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '物联网平台设备ID',
|
description: '物联网平台设备ID',
|
||||||
@ -7717,6 +7997,12 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
timestampStr: {
|
||||||
|
type: 'string',
|
||||||
|
description: '字符串格式时标',
|
||||||
|
nullable: true,
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
devicePath: {
|
devicePath: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明',
|
||||||
@ -8208,6 +8494,17 @@ export const SettingOutputSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const StringIdInputSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
nullable: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const StringStringFromSelectorSchema = {
|
export const StringStringFromSelectorSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -8764,6 +9061,44 @@ export const UpdateTextTemplateInputSchema = {
|
|||||||
description: '更新模板'
|
description: '更新模板'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const UpdateThingModelInputSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
ioTPlatform: {
|
||||||
|
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品Id',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
filedType: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
rawFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '物联网平台中对应的产品物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
standardFieldName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '管理后台产品标准的物模型属性或者事件名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
isValueNeedConvert: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否需要值类型转换'
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
format: 'uuid'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const UpdateUserInputSchema = {
|
export const UpdateUserInputSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -200,12 +200,30 @@ export type ControllerInterfaceApiDescriptionModel = {
|
|||||||
methods?: Array<InterfaceMethodApiDescriptionModel> | null;
|
methods?: Array<InterfaceMethodApiDescriptionModel> | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据数据ID复制已存在物模型信息
|
||||||
|
*/
|
||||||
|
export type CopyAnotherProductInput = {
|
||||||
|
/**
|
||||||
|
* 待复制设备物模型数据ID
|
||||||
|
*/
|
||||||
|
pendingCopyDataId?: string;
|
||||||
|
/**
|
||||||
|
* 产品ID
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId?: (string) | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type CreateDataDictinaryDetailInput = {
|
export type CreateDataDictinaryDetailInput = {
|
||||||
id?: string;
|
id?: string;
|
||||||
code?: (string) | null;
|
code?: (string) | null;
|
||||||
displayText?: (string) | null;
|
displayText?: (string) | null;
|
||||||
description?: (string) | null;
|
description?: (string) | null;
|
||||||
order?: number;
|
order?: number;
|
||||||
|
/**
|
||||||
|
* 扩展属性
|
||||||
|
*/
|
||||||
|
extendedAttribute?: (string) | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateDataDictinaryInput = {
|
export type CreateDataDictinaryInput = {
|
||||||
@ -362,6 +380,30 @@ export type CreateTextTemplateInput = {
|
|||||||
cultureName: string;
|
cultureName: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CreateThingModelInput = {
|
||||||
|
ioTPlatform?: IoTPlatformTypeEnum;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品Id
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst
|
||||||
|
*/
|
||||||
|
filedType?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
rawFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 管理后台产品标准的物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
standardFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要值类型转换
|
||||||
|
*/
|
||||||
|
isValueNeedConvert?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CTWing账号信息
|
* CTWing账号信息
|
||||||
*/
|
*/
|
||||||
@ -908,6 +950,8 @@ export type DeviceCommandForApiInput = {
|
|||||||
* 设备在物联网平台中发送的命令内容,JSON格式
|
* 设备在物联网平台中发送的命令内容,JSON格式
|
||||||
*/
|
*/
|
||||||
commandContent: string;
|
commandContent: string;
|
||||||
|
deviceType?: DeviceTypeEnum;
|
||||||
|
telemetryType?: DeviceTelemetryCommandTypeEnum;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DeviceManagementInfoDto = {
|
export type DeviceManagementInfoDto = {
|
||||||
@ -1023,7 +1067,7 @@ export type DeviceOnlineStatusEnum = 1 | 2;
|
|||||||
/**
|
/**
|
||||||
* 设备来源类型枚举
|
* 设备来源类型枚举
|
||||||
*/
|
*/
|
||||||
export type DeviceSourceTypeEnum = 1 | 2 | 3 | 4;
|
export type DeviceSourceTypeEnum = 1 | 2 | 3 | 4 | 5 | 6;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备数据表模型信息入参
|
* 设备数据表模型信息入参
|
||||||
@ -1065,6 +1109,10 @@ export type DeviceTableModelDataInfoPageInput = {
|
|||||||
* 结束创建时间
|
* 结束创建时间
|
||||||
*/
|
*/
|
||||||
endCreationTime?: (string) | null;
|
endCreationTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要分页, 默认为true
|
||||||
|
*/
|
||||||
|
isNeedPaging?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1106,6 +1154,74 @@ export type DeviceTableModelDataInfoPageOutputPagedResultDto = {
|
|||||||
totalCount?: number;
|
totalCount?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备数据包命令类型枚举
|
||||||
|
*/
|
||||||
|
export type DeviceTelemetryCommandTypeEnum = 1 | 2;
|
||||||
|
|
||||||
|
export type DeviceThingModelInfoDto = {
|
||||||
|
id?: string;
|
||||||
|
creationTime?: string;
|
||||||
|
creatorId?: (string) | null;
|
||||||
|
lastModificationTime?: (string) | null;
|
||||||
|
lastModifierId?: (string) | null;
|
||||||
|
isDeleted?: boolean;
|
||||||
|
deleterId?: (string) | null;
|
||||||
|
deletionTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 租户Id
|
||||||
|
*/
|
||||||
|
tenantId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
remark?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 旧系统授权创建者Id
|
||||||
|
*/
|
||||||
|
osaCreatorId?: (number) | null;
|
||||||
|
/**
|
||||||
|
* 旧系统授权最后修改者Id
|
||||||
|
*/
|
||||||
|
osaLastModifierId?: (number) | null;
|
||||||
|
/**
|
||||||
|
* 旧系统授权最后删除者Id
|
||||||
|
*/
|
||||||
|
osaDeleterId?: (number) | null;
|
||||||
|
/**
|
||||||
|
* 扩展属性,用于存储自定义字段,JSON格式
|
||||||
|
*/
|
||||||
|
extraProperties?: {
|
||||||
|
[key: string]: unknown;
|
||||||
|
} | null;
|
||||||
|
ioTPlatform?: IoTPlatformTypeEnum;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品Id
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst
|
||||||
|
*/
|
||||||
|
filedType?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
rawFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 管理后台产品标准的物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
standardFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要值类型转换
|
||||||
|
*/
|
||||||
|
isValueNeedConvert?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeviceThingModelInfoDtoPagedResultDto = {
|
||||||
|
items?: Array<DeviceThingModelInfoDto> | null;
|
||||||
|
totalCount?: number;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备树模型数据信息查询入参
|
* 设备树模型数据信息查询入参
|
||||||
*/
|
*/
|
||||||
@ -1146,6 +1262,10 @@ export type DeviceTreeModelDataInfoInput = {
|
|||||||
* 结束创建时间
|
* 结束创建时间
|
||||||
*/
|
*/
|
||||||
endCreationTime?: (string) | null;
|
endCreationTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要分页, 默认为true
|
||||||
|
*/
|
||||||
|
isNeedPaging?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2013,6 +2133,10 @@ export type MeterReadingPacketInfoPageInput = {
|
|||||||
* 结束创建时间
|
* 结束创建时间
|
||||||
*/
|
*/
|
||||||
endCreationTime?: (string) | null;
|
endCreationTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要分页, 默认为true
|
||||||
|
*/
|
||||||
|
isNeedPaging?: boolean;
|
||||||
/**
|
/**
|
||||||
* 物联网平台设备ID
|
* 物联网平台设备ID
|
||||||
*/
|
*/
|
||||||
@ -2049,6 +2173,10 @@ export type MeterReadingPacketInfoPageOutput = {
|
|||||||
* 时标格式化以后的本地时间
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
|
/**
|
||||||
|
* 字符串格式时标
|
||||||
|
*/
|
||||||
|
readonly timestampStr?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
||||||
*/
|
*/
|
||||||
@ -3098,6 +3226,45 @@ export type PageTextTemplateOutputPagedResultDto = {
|
|||||||
totalCount?: number;
|
totalCount?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type PageThingModelInput = {
|
||||||
|
/**
|
||||||
|
* 当前页面.默认从1开始
|
||||||
|
*/
|
||||||
|
pageIndex?: number;
|
||||||
|
/**
|
||||||
|
* 每页多少条.每页显示多少记录
|
||||||
|
*/
|
||||||
|
pageSize?: number;
|
||||||
|
/**
|
||||||
|
* 跳过多少条
|
||||||
|
*/
|
||||||
|
readonly skipCount?: number;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
* <example>
|
||||||
|
* name desc
|
||||||
|
* </example>
|
||||||
|
*/
|
||||||
|
sorting?: (string) | null;
|
||||||
|
ioTPlatform?: IoTPlatformTypeEnum;
|
||||||
|
/**
|
||||||
|
* 搜索关键字
|
||||||
|
*/
|
||||||
|
searchKeyword?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品Id
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst
|
||||||
|
*/
|
||||||
|
filedType?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
rawFieldName?: (string) | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type PagingAuditLogActionOutput = {
|
export type PagingAuditLogActionOutput = {
|
||||||
id?: string;
|
id?: string;
|
||||||
tenantId?: (string) | null;
|
tenantId?: (string) | null;
|
||||||
@ -3782,6 +3949,10 @@ export type QueryCTWingAepReceiveMessageInput = {
|
|||||||
* 结束创建时间
|
* 结束创建时间
|
||||||
*/
|
*/
|
||||||
endCreationTime?: (string) | null;
|
endCreationTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要分页, 默认为true
|
||||||
|
*/
|
||||||
|
isNeedPaging?: boolean;
|
||||||
/**
|
/**
|
||||||
* 物联网平台设备ID
|
* 物联网平台设备ID
|
||||||
*/
|
*/
|
||||||
@ -3818,6 +3989,10 @@ export type QueryCTWingAepReceiveMessageOutput = {
|
|||||||
* 时标格式化以后的本地时间
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
|
/**
|
||||||
|
* 字符串格式时标
|
||||||
|
*/
|
||||||
|
readonly timestampStr?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
||||||
*/
|
*/
|
||||||
@ -3925,6 +4100,10 @@ export type QueryOneNETReceiveMessageInput = {
|
|||||||
* 结束创建时间
|
* 结束创建时间
|
||||||
*/
|
*/
|
||||||
endCreationTime?: (string) | null;
|
endCreationTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要分页, 默认为true
|
||||||
|
*/
|
||||||
|
isNeedPaging?: boolean;
|
||||||
/**
|
/**
|
||||||
* 物联网平台设备ID
|
* 物联网平台设备ID
|
||||||
*/
|
*/
|
||||||
@ -3961,6 +4140,10 @@ export type QueryOneNETReceiveMessageOutput = {
|
|||||||
* 时标格式化以后的本地时间
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
|
/**
|
||||||
|
* 字符串格式时标
|
||||||
|
*/
|
||||||
|
readonly timestampStr?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
* 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明
|
||||||
*/
|
*/
|
||||||
@ -4206,6 +4389,10 @@ export type SettingOutput = {
|
|||||||
settingItemOutput?: Array<SettingItemOutput> | null;
|
settingItemOutput?: Array<SettingItemOutput> | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type StringIdInput = {
|
||||||
|
id?: (string) | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type StringStringFromSelector = {
|
export type StringStringFromSelector = {
|
||||||
readonly value?: (string) | null;
|
readonly value?: (string) | null;
|
||||||
readonly label?: (string) | null;
|
readonly label?: (string) | null;
|
||||||
@ -4460,6 +4647,31 @@ export type UpdateTextTemplateInput = {
|
|||||||
cultureName: string;
|
cultureName: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UpdateThingModelInput = {
|
||||||
|
ioTPlatform?: IoTPlatformTypeEnum;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品Id
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst
|
||||||
|
*/
|
||||||
|
filedType?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 物联网平台中对应的产品物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
rawFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 管理后台产品标准的物模型属性或者事件名称
|
||||||
|
*/
|
||||||
|
standardFieldName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否需要值类型转换
|
||||||
|
*/
|
||||||
|
isValueNeedConvert?: boolean;
|
||||||
|
id?: string;
|
||||||
|
};
|
||||||
|
|
||||||
export type UpdateUserInput = {
|
export type UpdateUserInput = {
|
||||||
userId?: string;
|
userId?: string;
|
||||||
userInfo?: IdentityUserUpdateDto;
|
userInfo?: IdentityUserUpdateDto;
|
||||||
@ -4562,6 +4774,32 @@ export type PostAggregationBusinessReceiveCommandInfoAsyncResponse = (HttpDataRe
|
|||||||
|
|
||||||
export type PostAggregationBusinessReceiveCommandInfoAsyncError = unknown;
|
export type PostAggregationBusinessReceiveCommandInfoAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData = {
|
||||||
|
query?: {
|
||||||
|
/**
|
||||||
|
* 开放接口请求入参,所有外部接口请求参数
|
||||||
|
*/
|
||||||
|
input?: OpenApiRequest;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchCreateDeviceInfoAsyncData = {
|
||||||
|
query?: {
|
||||||
|
/**
|
||||||
|
* 开放接口请求入参,所有外部接口请求参数
|
||||||
|
*/
|
||||||
|
input?: OpenApiRequest;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
|
export type PostAggregationBusinessBatchCreateDeviceInfoAsyncError = unknown;
|
||||||
|
|
||||||
export type GetCommonGetSelectListData = {
|
export type GetCommonGetSelectListData = {
|
||||||
query?: {
|
query?: {
|
||||||
input?: SelectResultListInput;
|
input?: SelectResultListInput;
|
||||||
@ -4612,29 +4850,6 @@ export type PostCtWingAccountListAsyncResponse = (CTWingAccountInfoDtoPagedResul
|
|||||||
|
|
||||||
export type PostCtWingAccountListAsyncError = unknown;
|
export type PostCtWingAccountListAsyncError = unknown;
|
||||||
|
|
||||||
export type PostAggregationCtWingReceiveWorkshopProductionInfoAsyncData = {
|
|
||||||
query?: {
|
|
||||||
input?: OpenApiRequest;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostAggregationCtWingReceiveWorkshopProductionInfoAsyncResponse = (unknown);
|
|
||||||
|
|
||||||
export type PostAggregationCtWingReceiveWorkshopProductionInfoAsyncError = unknown;
|
|
||||||
|
|
||||||
export type PostAggregationCtWingGetProductListAsyncData = {
|
|
||||||
query?: {
|
|
||||||
/**
|
|
||||||
* 开放接口请求入参,所有外部接口请求参数
|
|
||||||
*/
|
|
||||||
input?: OpenApiRequest;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostAggregationCtWingGetProductListAsyncResponse = (HttpDataResult);
|
|
||||||
|
|
||||||
export type PostAggregationCtWingGetProductListAsyncError = unknown;
|
|
||||||
|
|
||||||
export type PostCtWingProductInsertAsyncData = {
|
export type PostCtWingProductInsertAsyncData = {
|
||||||
query?: {
|
query?: {
|
||||||
input?: CTWingPrivateProductInfoInsertInput;
|
input?: CTWingPrivateProductInfoInsertInput;
|
||||||
@ -4871,6 +5086,86 @@ export type PostDeviceInfoCacheDeviceDataToRedisResponse = (boolean);
|
|||||||
|
|
||||||
export type PostDeviceInfoCacheDeviceDataToRedisError = unknown;
|
export type PostDeviceInfoCacheDeviceDataToRedisError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoCreateAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: CreateThingModelInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoCreateAsyncResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoCreateAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoUpdateAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: UpdateThingModelInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoUpdateAsyncResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoUpdateAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoDeleteAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: IdInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoDeleteAsyncResponse = (boolean);
|
||||||
|
|
||||||
|
export type PostThingModelInfoDeleteAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByIdAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: IdInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByIdAsyncResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByIdAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByPlatformProductIdAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: StringIdInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByPlatformProductIdAsyncResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoFindByPlatformProductIdAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyAnotherThingModelAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: CopyAnotherProductInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyAnotherThingModelAsyncResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyAnotherThingModelAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyStandardThingModelData = {
|
||||||
|
query?: {
|
||||||
|
input?: StringIdInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyStandardThingModelResponse = (DeviceThingModelInfoDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoCopyStandardThingModelError = unknown;
|
||||||
|
|
||||||
|
export type PostThingModelInfoPageData = {
|
||||||
|
query?: {
|
||||||
|
input?: PageThingModelInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostThingModelInfoPageResponse = (DeviceThingModelInfoDtoPagedResultDto);
|
||||||
|
|
||||||
|
export type PostThingModelInfoPageError = unknown;
|
||||||
|
|
||||||
export type PostFeaturesListData = {
|
export type PostFeaturesListData = {
|
||||||
body?: GetFeatureListResultInput;
|
body?: GetFeatureListResultInput;
|
||||||
};
|
};
|
||||||
@ -5177,29 +5472,6 @@ export type PostOneNetAccountListAsyncResponse = (OneNETAccountInfoDtoPagedResul
|
|||||||
|
|
||||||
export type PostOneNetAccountListAsyncError = unknown;
|
export type PostOneNetAccountListAsyncError = unknown;
|
||||||
|
|
||||||
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncData = {
|
|
||||||
query?: {
|
|
||||||
input?: OpenApiRequest;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncResponse = (HttpDataResult);
|
|
||||||
|
|
||||||
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncError = unknown;
|
|
||||||
|
|
||||||
export type PostAggregationOneNetGetProductListAsyncData = {
|
|
||||||
query?: {
|
|
||||||
/**
|
|
||||||
* 开放接口请求入参,所有外部接口请求参数
|
|
||||||
*/
|
|
||||||
input?: OpenApiRequest;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostAggregationOneNetGetProductListAsyncResponse = (HttpDataResult);
|
|
||||||
|
|
||||||
export type PostAggregationOneNetGetProductListAsyncError = unknown;
|
|
||||||
|
|
||||||
export type PostOneNetProductInsertAsyncData = {
|
export type PostOneNetProductInsertAsyncData = {
|
||||||
query?: {
|
query?: {
|
||||||
input?: OneNetProductInfoInsertInput;
|
input?: OneNetProductInfoInsertInput;
|
||||||
@ -5745,3 +6017,26 @@ export type PostUsersResetTwoFactorError = (RemoteServiceErrorResponse);
|
|||||||
export type PostUsersNeedChangePasswordResponse = (NeedChangePasswordOutput);
|
export type PostUsersNeedChangePasswordResponse = (NeedChangePasswordOutput);
|
||||||
|
|
||||||
export type PostUsersNeedChangePasswordError = (RemoteServiceErrorResponse);
|
export type PostUsersNeedChangePasswordError = (RemoteServiceErrorResponse);
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: OpenApiRequest;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopGetProductListAsyncData = {
|
||||||
|
query?: {
|
||||||
|
/**
|
||||||
|
* 开放接口请求入参,所有外部接口请求参数
|
||||||
|
*/
|
||||||
|
input?: OpenApiRequest;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopGetProductListAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
|
export type PostAggregationWorkshopGetProductListAsyncError = unknown;
|
||||||
@ -130,6 +130,7 @@
|
|||||||
"order": "Order",
|
"order": "Order",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
|
"extendedAttribute": "ExtendedAttribute",
|
||||||
"type": "Type"
|
"type": "Type"
|
||||||
},
|
},
|
||||||
"organizationunit": {
|
"organizationunit": {
|
||||||
@ -213,7 +214,9 @@
|
|||||||
"IsPlatformPushSuccess": "IsPlatformPushSuccess",
|
"IsPlatformPushSuccess": "IsPlatformPushSuccess",
|
||||||
"DeviceOnlineStatus": "DeviceOnlineStatus",
|
"DeviceOnlineStatus": "DeviceOnlineStatus",
|
||||||
"LastOnlineTime": "LastOnlineTime",
|
"LastOnlineTime": "LastOnlineTime",
|
||||||
"LastOfflineTime": "LastOfflineTime"
|
"LastOfflineTime": "LastOfflineTime",
|
||||||
|
"deviceInfoManage": "DeviceInfoManage",
|
||||||
|
"thingModelInfoManage": "ThingModelInfoManage"
|
||||||
},
|
},
|
||||||
"IoTDBBase": {
|
"IoTDBBase": {
|
||||||
"IoTDataType": "IoTDataType",
|
"IoTDataType": "IoTDataType",
|
||||||
|
|||||||
@ -123,6 +123,7 @@
|
|||||||
"order": "排序",
|
"order": "排序",
|
||||||
"status": "状态",
|
"status": "状态",
|
||||||
"description": "描述",
|
"description": "描述",
|
||||||
|
"extendedAttribute": "扩展属性",
|
||||||
"type": "字典类型"
|
"type": "字典类型"
|
||||||
},
|
},
|
||||||
"organizationunit": {
|
"organizationunit": {
|
||||||
@ -206,7 +207,9 @@
|
|||||||
"IsPlatformPushSuccess": "是否推送成功",
|
"IsPlatformPushSuccess": "是否推送成功",
|
||||||
"DeviceOnlineStatus": "在线状态",
|
"DeviceOnlineStatus": "在线状态",
|
||||||
"LastOnlineTime": "最后在线时间",
|
"LastOnlineTime": "最后在线时间",
|
||||||
"LastOfflineTime": "最后离线时间"
|
"LastOfflineTime": "最后离线时间",
|
||||||
|
"deviceInfoManage": "设备管理",
|
||||||
|
"thingModelInfoManage": "物模型管理"
|
||||||
},
|
},
|
||||||
"IoTDBBase": {
|
"IoTDBBase": {
|
||||||
"IoTDataType": "数据类型",
|
"IoTDataType": "数据类型",
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
import type { VbenFormProps } from '#/adapter/form';
|
import type { VbenFormProps } from '#/adapter/form';
|
||||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||||
|
|
||||||
import { computed, h, ref, watch } from 'vue';
|
import { computed, h, nextTick, ref, watch } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
|
|
||||||
@ -45,6 +45,7 @@ defineOptions({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
const route = useRoute();
|
||||||
const formOptions: VbenFormProps = {
|
const formOptions: VbenFormProps = {
|
||||||
schema: querySchema.value,
|
schema: querySchema.value,
|
||||||
};
|
};
|
||||||
@ -82,6 +83,78 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
||||||
|
|
||||||
const editRow: Record<string, any> = ref({});
|
const editRow: Record<string, any> = ref({});
|
||||||
|
|
||||||
|
// 监听路由参数变化,自动设置筛选条件
|
||||||
|
watch(
|
||||||
|
() => route.query,
|
||||||
|
async (newQuery) => {
|
||||||
|
if (newQuery.ioTPlatform || newQuery.ioTPlatformDeviceOpenInfo) {
|
||||||
|
// 延迟执行,确保组件完全初始化
|
||||||
|
setTimeout(async () => {
|
||||||
|
try {
|
||||||
|
// 设置表单筛选条件
|
||||||
|
const filterValues: any = {};
|
||||||
|
|
||||||
|
if (newQuery.ioTPlatform) {
|
||||||
|
filterValues.ioTPlatform = newQuery.ioTPlatform;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (newQuery.ioTPlatformDeviceOpenInfo) {
|
||||||
|
// 根据平台类型设置对应的产品ID字段
|
||||||
|
if (newQuery.ioTPlatform === '2' || newQuery.ioTPlatform === 2) {
|
||||||
|
filterValues.oneNETProductId = newQuery.ioTPlatformDeviceOpenInfo;
|
||||||
|
} else if (newQuery.ioTPlatform === '1' || newQuery.ioTPlatform === 1) {
|
||||||
|
filterValues.ctWingProductId = newQuery.ioTPlatformDeviceOpenInfo;
|
||||||
|
}
|
||||||
|
// 同时设置通用字段用于查询
|
||||||
|
filterValues.ioTPlatformDeviceOpenInfo = newQuery.ioTPlatformDeviceOpenInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置表单值并重新加载数据
|
||||||
|
if (gridApi?.formApi) {
|
||||||
|
await gridApi.formApi.setValues(filterValues);
|
||||||
|
// 等待表单值更新完成后再重新加载数据
|
||||||
|
await nextTick();
|
||||||
|
gridApi.reload();
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('设置表单筛选条件时出错:', error);
|
||||||
|
}
|
||||||
|
}, 200); // 增加延迟时间,确保ApiSelect组件完全初始化
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ immediate: true }
|
||||||
|
);
|
||||||
|
|
||||||
|
// 监听产品选择器变化,自动设置ioTPlatformDeviceOpenInfo
|
||||||
|
watch(
|
||||||
|
() => gridApi?.formApi?.getValues,
|
||||||
|
(formValues) => {
|
||||||
|
if (formValues) {
|
||||||
|
const { oneNETProductId, ctWingProductId } = formValues;
|
||||||
|
|
||||||
|
// 如果选择了OneNET产品,设置ioTPlatformDeviceOpenInfo
|
||||||
|
if (oneNETProductId) {
|
||||||
|
console.log('检测到OneNET产品选择变化:', oneNETProductId);
|
||||||
|
gridApi?.formApi?.setFieldValue('ioTPlatformDeviceOpenInfo', oneNETProductId);
|
||||||
|
console.log('已设置ioTPlatformDeviceOpenInfo为:', oneNETProductId);
|
||||||
|
}
|
||||||
|
// 如果选择了CTWing产品,设置ioTPlatformDeviceOpenInfo
|
||||||
|
else if (ctWingProductId) {
|
||||||
|
console.log('检测到CTWing产品选择变化:', ctWingProductId);
|
||||||
|
gridApi?.formApi?.setFieldValue('ioTPlatformDeviceOpenInfo', ctWingProductId);
|
||||||
|
console.log('已设置ioTPlatformDeviceOpenInfo为:', ctWingProductId);
|
||||||
|
}
|
||||||
|
// 如果都没有选择,清空ioTPlatformDeviceOpenInfo
|
||||||
|
else if (!oneNETProductId && !ctWingProductId) {
|
||||||
|
console.log('清空产品选择');
|
||||||
|
gridApi?.formApi?.setFieldValue('ioTPlatformDeviceOpenInfo', '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
|
|
||||||
const cacheRefreshLoading = ref(false);
|
const cacheRefreshLoading = ref(false);
|
||||||
const pageLoading = ref(false);
|
const pageLoading = ref(false);
|
||||||
const loadingTip = ref('缓存刷新中...');
|
const loadingTip = ref('缓存刷新中...');
|
||||||
@ -736,9 +809,10 @@ const toolbarActions = computed(() => [
|
|||||||
|
|
||||||
<template #action="{ row }">
|
<template #action="{ row }">
|
||||||
<div style="display: flex; gap: 8px; align-items: center">
|
<div style="display: flex; gap: 8px; align-items: center">
|
||||||
<Button size="small" type="link" @click="onEdit.bind(null, row)()">
|
<!-- 编辑按钮已注释,因为后端没有更新接口 -->
|
||||||
|
<!-- <Button size="small" type="link" @click="onEdit.bind(null, row)()">
|
||||||
{{ $t('common.edit') }}
|
{{ $t('common.edit') }}
|
||||||
</Button>
|
</Button> -->
|
||||||
<Button size="small" type="link" @click="toDeviceInfoData.bind(null, row)()">
|
<Button size="small" type="link" @click="toDeviceInfoData.bind(null, row)()">
|
||||||
{{ $t('abp.deviceInfos.viewData') }}
|
{{ $t('abp.deviceInfos.viewData') }}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -21,6 +21,141 @@ export const querySchema = computed(() => [
|
|||||||
fieldName: 'deviceAddress',
|
fieldName: 'deviceAddress',
|
||||||
label: $t('abp.deviceInfos.deviceAddress'),
|
label: $t('abp.deviceInfos.deviceAddress'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
component: 'ApiSelect',
|
||||||
|
fieldName: 'ioTPlatform',
|
||||||
|
label: $t('abp.deviceInfos.ioTPlatform'),
|
||||||
|
componentProps: {
|
||||||
|
api: getCommonGetSelectList,
|
||||||
|
params: {
|
||||||
|
query: {
|
||||||
|
typeName: 'IoTPlatformTypeEnum',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
labelField: 'value',
|
||||||
|
valueField: 'key',
|
||||||
|
optionsPropName: 'options',
|
||||||
|
immediate: true,
|
||||||
|
allowClear: true,
|
||||||
|
placeholder: `${$t('common.pleaseSelect')}${$t('abp.deviceInfos.ioTPlatform')}`,
|
||||||
|
afterFetch: (res: any) => {
|
||||||
|
console.log('产品选择器API调用 - 平台类型:',res);
|
||||||
|
|
||||||
|
// 确保返回的是数组格式
|
||||||
|
if (Array.isArray(res)) {
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
// 如果是包装在 items 中的,提取出来
|
||||||
|
if (res && Array.isArray(res.items)) {
|
||||||
|
return res.items;
|
||||||
|
}
|
||||||
|
// 如果是包装在 data 中的,提取出来
|
||||||
|
if (res && Array.isArray(res.data)) {
|
||||||
|
return res.data;
|
||||||
|
}
|
||||||
|
// 如果都不是,返回空数组
|
||||||
|
return [];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
component: 'ApiSelect',
|
||||||
|
fieldName: 'oneNETProductId',
|
||||||
|
label: $t('common.BelongingProductName'),
|
||||||
|
dependencies: {
|
||||||
|
show(values: any) {
|
||||||
|
const shouldShow = values.ioTPlatform === 2 || values.ioTPlatform === '2';
|
||||||
|
console.log('OneNET产品选择器显示检查 - 平台类型:', values.ioTPlatform, '是否显示:', shouldShow);
|
||||||
|
return shouldShow; // OneNET平台
|
||||||
|
},
|
||||||
|
triggerFields: ['ioTPlatform'],
|
||||||
|
},
|
||||||
|
componentProps: {
|
||||||
|
api: postOneNetProductListAsync,
|
||||||
|
params: (formValues: any) => ({
|
||||||
|
body: {
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 1000,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
labelField: 'productName',
|
||||||
|
valueField: 'ioTPlatformProductId',
|
||||||
|
immediate: true,
|
||||||
|
afterFetch: (res: any) => {
|
||||||
|
console.log('OneNET产品选择器afterFetch调用 - 响应:', res);
|
||||||
|
// 如果是 Axios 响应对象,提取 data
|
||||||
|
if (res && res.data) {
|
||||||
|
const data = res.data;
|
||||||
|
|
||||||
|
// 确保返回的是数组格式
|
||||||
|
let items = [];
|
||||||
|
if (Array.isArray(data)) {
|
||||||
|
items = data;
|
||||||
|
} else if (data && Array.isArray(data.items)) {
|
||||||
|
items = data.items;
|
||||||
|
} else if (data && Array.isArray(data.data)) {
|
||||||
|
items = data.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('OneNET产品列表处理后的数据:', items);
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 如果都不是,返回空数组
|
||||||
|
return [];
|
||||||
|
},
|
||||||
|
placeholder: `${$t('common.pleaseSelect')}${$t('common.BelongingProductName')}`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
component: 'ApiSelect',
|
||||||
|
fieldName: 'ctWingProductId',
|
||||||
|
label: $t('common.BelongingProductName'),
|
||||||
|
dependencies: {
|
||||||
|
show(values: any) {
|
||||||
|
const shouldShow = values.ioTPlatform === 1 || values.ioTPlatform === '1';
|
||||||
|
console.log('CTWing产品选择器显示检查 - 平台类型:', values.ioTPlatform, '是否显示:', shouldShow);
|
||||||
|
return shouldShow; // CTWing平台
|
||||||
|
},
|
||||||
|
triggerFields: ['ioTPlatform'],
|
||||||
|
},
|
||||||
|
componentProps: {
|
||||||
|
api: postCtWingProductListAsync,
|
||||||
|
params: (formValues: any) => ({
|
||||||
|
body: {
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 1000,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
labelField: 'productName',
|
||||||
|
valueField: 'ioTPlatformProductId',
|
||||||
|
immediate: true,
|
||||||
|
afterFetch: (res: any) => {
|
||||||
|
console.log('CTWing产品选择器afterFetch调用 - 响应:', res);
|
||||||
|
// 如果是 Axios 响应对象,提取 data
|
||||||
|
if (res && res.data) {
|
||||||
|
const data = res.data;
|
||||||
|
|
||||||
|
// 确保返回的是数组格式
|
||||||
|
let items = [];
|
||||||
|
if (Array.isArray(data)) {
|
||||||
|
items = data;
|
||||||
|
} else if (data && Array.isArray(data.items)) {
|
||||||
|
items = data.items;
|
||||||
|
} else if (data && Array.isArray(data.data)) {
|
||||||
|
items = data.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('CTWing产品列表处理后的数据:', items);
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 如果都不是,返回空数组
|
||||||
|
return [];
|
||||||
|
},
|
||||||
|
placeholder: `${$t('common.pleaseSelect')}${$t('common.BelongingProductName')}`,
|
||||||
|
},
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
||||||
|
|||||||
@ -173,7 +173,8 @@ async function submit() {
|
|||||||
if (fileInfo && fileInfo.id) {
|
if (fileInfo && fileInfo.id) {
|
||||||
formValues.deviceThingModelFileId = fileInfo.id;
|
formValues.deviceThingModelFileId = fileInfo.id;
|
||||||
// 设置文件名
|
// 设置文件名
|
||||||
formValues.deviceThingModelFileName = fileInfo.fileName || selectedFile.name;
|
formValues.deviceThingModelFileName =
|
||||||
|
fileInfo.fileName || selectedFile.name;
|
||||||
} else {
|
} else {
|
||||||
Message.error('文件上传成功但未获取到文件ID');
|
Message.error('文件上传成功但未获取到文件ID');
|
||||||
userModalApi.setState({ loading: false, confirmLoading: false });
|
userModalApi.setState({ loading: false, confirmLoading: false });
|
||||||
@ -305,6 +306,34 @@ async function onStatusChange(record: any) {
|
|||||||
Message.error(record.isEnabled ? '禁用失败' : '启用失败');
|
Message.error(record.isEnabled ? '禁用失败' : '启用失败');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 设备管理函数
|
||||||
|
function onDeviceManagement(record: any) {
|
||||||
|
console.log('设备管理按钮被点击', record);
|
||||||
|
// 跳转到设备管理页面,传递平台类型和平台产品ID作为参数
|
||||||
|
router.push({
|
||||||
|
path: '/devicemanagement/deviceinfo',
|
||||||
|
query: {
|
||||||
|
ioTPlatform: '2', // OneNET平台类型为2
|
||||||
|
ioTPlatformDeviceOpenInfo: record.ioTPlatformProductId, // 平台产品ID
|
||||||
|
productName: record.productName,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 物模型管理函数
|
||||||
|
function onThingModelManagement(record: any) {
|
||||||
|
console.log('物模型管理按钮被点击', record);
|
||||||
|
// 跳转到物模型管理页面,传递产品ID作为参数
|
||||||
|
router.push({
|
||||||
|
path: '/devicemanagement/thingmodelinfo',
|
||||||
|
query: {
|
||||||
|
ioTPlatform: '2', // OneNET平台类型为2
|
||||||
|
ioTPlatformDeviceOpenInfo: record.ioTPlatformProductId, // 平台产品ID
|
||||||
|
productName: record.productName,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -347,28 +376,40 @@ async function onStatusChange(record: any) {
|
|||||||
onClick: onEdit.bind(null, row),
|
onClick: onEdit.bind(null, row),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: row.isEnabled ? '禁用' : '启用',
|
label: $t('abp.deviceInfos.deviceInfoManage'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
size: 'small',
|
||||||
|
onClick: onDeviceManagement.bind(null, row),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: $t('abp.deviceInfos.thingModelInfoManage'),
|
||||||
|
type: 'link',
|
||||||
|
size: 'small',
|
||||||
|
onClick: onThingModelManagement.bind(null, row),
|
||||||
|
}
|
||||||
|
]" :drop-down-actions="[
|
||||||
|
{
|
||||||
|
label: row.isEnabled ? $t('common.disabled') : $t('common.enabled'),
|
||||||
|
icon: 'ant-design:edit-filled',
|
||||||
|
type: 'primary',
|
||||||
danger: row.isEnabled,
|
danger: row.isEnabled,
|
||||||
size: 'small',
|
size: 'small',
|
||||||
auth: ['AbpIdentity.Users.Update'],
|
auth: ['AbpIdentity.Users.Update'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确定要${row.isEnabled ? '禁用' : '启用'}该产品吗?`,
|
title: `确定要${row.isEnabled ? $t('common.disabled') : $t('common.enabled')}该产品吗?`,
|
||||||
confirm: onStatusChange.bind(null, row),
|
confirm: onStatusChange.bind(null, row),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]" :drop-down-actions="[
|
{
|
||||||
{
|
label: $t('common.delete'),
|
||||||
label: $t('common.delete'),
|
icon: 'ant-design:delete-outlined',
|
||||||
icon: 'ant-design:delete-outlined',
|
type: 'primary',
|
||||||
type: 'primary',
|
popConfirm: {
|
||||||
auth: ['AbpIdentity.Users.Delete'],
|
title: $t('common.askConfirmDelete'),
|
||||||
popConfirm: {
|
confirm: onDel.bind(null, row),
|
||||||
title: $t('common.askConfirmDelete'),
|
|
||||||
confirm: onDel.bind(null, row),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]" />
|
},
|
||||||
|
]" />
|
||||||
</template>
|
</template>
|
||||||
</Grid>
|
</Grid>
|
||||||
<UserModal :title="editRow.id ? $t('common.edit') : $t('common.add')" class="w-[800px]">
|
<UserModal :title="editRow.id ? $t('common.edit') : $t('common.add')" class="w-[800px]">
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
|||||||
field: 'productCreateTime',
|
field: 'productCreateTime',
|
||||||
title: $t('abp.OneNETManagement.IoTPlatformProductCreateTime'),
|
title: $t('abp.OneNETManagement.IoTPlatformProductCreateTime'),
|
||||||
minWidth: '150',
|
minWidth: '150',
|
||||||
formatter: ({ cellValue }) => {
|
formatter: ({ cellValue }) => {
|
||||||
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -67,7 +67,7 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
|||||||
field: 'productUpdateTime',
|
field: 'productUpdateTime',
|
||||||
title: $t('abp.OneNETManagement.IoTPlatformProductUpdateTime'),
|
title: $t('abp.OneNETManagement.IoTPlatformProductUpdateTime'),
|
||||||
minWidth: '150',
|
minWidth: '150',
|
||||||
formatter: ({ cellValue }) => {
|
formatter: ({ cellValue }) => {
|
||||||
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -75,7 +75,7 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
|||||||
field: 'creationTime',
|
field: 'creationTime',
|
||||||
title: $t('abp.OneNETManagement.CreationTime'),
|
title: $t('abp.OneNETManagement.CreationTime'),
|
||||||
minWidth: '150',
|
minWidth: '150',
|
||||||
formatter: ({ cellValue }) => {
|
formatter: ({ cellValue }) => {
|
||||||
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -97,7 +97,7 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
|||||||
title: $t('common.action'),
|
title: $t('common.action'),
|
||||||
field: 'action',
|
field: 'action',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: '200',
|
width: '250',
|
||||||
slots: { default: 'action' },
|
slots: { default: 'action' },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -68,6 +68,15 @@ const [Form, formApi] = useVbenForm({
|
|||||||
label: $t('abp.dataDictionary.order'),
|
label: $t('abp.dataDictionary.order'),
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: $t('common.pleaseInput'),
|
||||||
|
},
|
||||||
|
fieldName: 'extendedAttribute',
|
||||||
|
label: $t('abp.dataDictionary.extendedAttribute'),
|
||||||
|
rules: 'required',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user