优化设备数据查询和登出逻辑
This commit is contained in:
parent
ed095728a4
commit
934043edde
@ -430,26 +430,6 @@ export const ApplicationSettingConfigurationDtoSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const ArchivalDataIssuedInputSchema = {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
meterType: {
|
|
||||||
'$ref': '#/components/schemas/DeviceTypeEnum'
|
|
||||||
},
|
|
||||||
meterAddress: {
|
|
||||||
type: 'string',
|
|
||||||
description: '表计地址',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
focusAddress: {
|
|
||||||
type: 'string',
|
|
||||||
description: '集中器地址',
|
|
||||||
nullable: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
additionalProperties: false
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export const AuthTypeEnumSchema = {
|
export const AuthTypeEnumSchema = {
|
||||||
enum: [1, 2, 3, 4, 6, 7, 8, 9],
|
enum: [1, 2, 3, 4, 6, 7, 8, 9],
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
@ -457,6 +437,33 @@ export const AuthTypeEnumSchema = {
|
|||||||
'说明:': '特征串认证=1,SM9认证=2,证书认证=3,IMEI认证=4,SM2认证=6,IPV6标识认证=7,HTTP基本认证=8,HTTP摘要认证=9'
|
'说明:': '特征串认证=1,SM9认证=2,证书认证=3,IMEI认证=4,SM2认证=6,IPV6标识认证=7,HTTP基本认证=8,HTTP摘要认证=9'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const BatchCreateDeviceAggregationInputSchema = {
|
||||||
|
required: ['addressList', 'ioTPlatform', 'ioTPlatformProductId'],
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
addressList: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'string'
|
||||||
|
},
|
||||||
|
description: '表通信地址集合'
|
||||||
|
},
|
||||||
|
ioTPlatform: {
|
||||||
|
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||||
|
},
|
||||||
|
ioTPlatformProductId: {
|
||||||
|
minLength: 1,
|
||||||
|
type: 'string',
|
||||||
|
description: '集中器在物联网平台中对应的产品Id'
|
||||||
|
},
|
||||||
|
deviceSourceTypeEnum: {
|
||||||
|
'$ref': '#/components/schemas/DeviceSourceTypeEnum'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: false,
|
||||||
|
description: '批量创建设备信息'
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const CTWingAccountInfoDtoSchema = {
|
export const CTWingAccountInfoDtoSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -650,6 +657,42 @@ export const CTWingAccountInsertInputSchema = {
|
|||||||
|
|
||||||
export const CTWingAccountListInputSchema = {
|
export const CTWingAccountListInputSchema = {
|
||||||
type: 'object',
|
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
|
||||||
|
},
|
||||||
|
phoneNumber: {
|
||||||
|
type: 'string',
|
||||||
|
description: '手机号码',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
ctWingAccountId: {
|
||||||
|
type: 'string',
|
||||||
|
description: '账号ID',
|
||||||
|
nullable: true
|
||||||
|
}
|
||||||
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
description: '账号列表输入参数'
|
description: '账号列表输入参数'
|
||||||
} as const;
|
} as const;
|
||||||
@ -787,6 +830,16 @@ export const CTWingPrivateProductInfoDtoSchema = {
|
|||||||
description: '账号ID',
|
description: '账号ID',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
|
accountPhoneNumber: {
|
||||||
|
type: 'string',
|
||||||
|
description: '账户手机号',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
ctWingAccountName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '账号名称',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
communicationAddress: {
|
communicationAddress: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '通讯服务地址',
|
description: '通讯服务地址',
|
||||||
@ -803,9 +856,9 @@ export const CTWingPrivateProductInfoDtoSchema = {
|
|||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
ioTPlatformProductId: {
|
ioTPlatformProductId: {
|
||||||
type: 'integer',
|
type: 'string',
|
||||||
description: '产品ID',
|
description: '产品ID',
|
||||||
format: 'int32'
|
nullable: true
|
||||||
},
|
},
|
||||||
productName: {
|
productName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -1022,115 +1075,6 @@ export const CTWingPrivateProductInfoModifyInputSchema = {
|
|||||||
description: 'CTWing 产品修改'
|
description: 'CTWing 产品修改'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const CTWingWorkshopProductListOutputSchema = {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
nonce: {
|
|
||||||
type: 'string',
|
|
||||||
description: '用于计算签名字符的随机串',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
signature: {
|
|
||||||
type: 'string',
|
|
||||||
description: '加密签名,用以校验推送客户端身份合法性,校验方法见实例验证',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
timestamp: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '签名有效期(毫秒)',
|
|
||||||
format: 'int64'
|
|
||||||
},
|
|
||||||
msg: {
|
|
||||||
type: 'string',
|
|
||||||
description: '消息内容,JSON字符串,具体的设备相关信息',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ctWingAccountId: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'CTWing账户Id',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTPlatformProductId: {
|
|
||||||
type: 'string',
|
|
||||||
description: '物联网平台对应的产品Id',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
productName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '产品名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
featureAccesskey: {
|
|
||||||
type: 'string',
|
|
||||||
description: '设备访问密钥',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
communicationAddress: {
|
|
||||||
type: 'string',
|
|
||||||
description: '通讯服务地址',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
communicationAddressTLS: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'TLS通讯服务地址',
|
|
||||||
nullable: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
additionalProperties: false,
|
|
||||||
description: '生产车间获取CTWing产品列表'
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export const CTWingWorkshopProductListOutputListHttpDataResultSchema = {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
code: {
|
|
||||||
'$ref': '#/components/schemas/ResponeResultEnum'
|
|
||||||
},
|
|
||||||
msg: {
|
|
||||||
type: 'string',
|
|
||||||
description: '详细描述',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
success: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `是否获取到数据或者逻辑处理成功
|
|
||||||
服务内部判断状态采用此属性`
|
|
||||||
},
|
|
||||||
timestamp: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '时间戳(毫秒)',
|
|
||||||
format: 'int64',
|
|
||||||
readOnly: true
|
|
||||||
},
|
|
||||||
locationCode: {
|
|
||||||
type: 'integer',
|
|
||||||
description: `位置编码,主要用于接口请求逻辑定位
|
|
||||||
使用时必须保证每个请求中不重复出现`,
|
|
||||||
format: 'int32'
|
|
||||||
},
|
|
||||||
extras: {
|
|
||||||
type: 'string',
|
|
||||||
description: '扩展信息',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
type: 'array',
|
|
||||||
items: {
|
|
||||||
'$ref': '#/components/schemas/CTWingWorkshopProductListOutput'
|
|
||||||
},
|
|
||||||
description: '扩展字段',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
total: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '总数',
|
|
||||||
format: 'int64'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
additionalProperties: false,
|
|
||||||
description: 'HTTP 请求返回结果'
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export const ChangePasswordInputSchema = {
|
export const ChangePasswordInputSchema = {
|
||||||
required: ['newPassword'],
|
required: ['newPassword'],
|
||||||
type: 'object',
|
type: 'object',
|
||||||
@ -1288,6 +1232,9 @@ export const CreateDeviceAggregationInputSchema = {
|
|||||||
minLength: 1,
|
minLength: 1,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '集中器在物联网平台中对应的产品Id'
|
description: '集中器在物联网平台中对应的产品Id'
|
||||||
|
},
|
||||||
|
deviceSourceTypeEnum: {
|
||||||
|
'$ref': '#/components/schemas/DeviceSourceTypeEnum'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
@ -1888,9 +1835,9 @@ export const DeviceManagementInfoDtoSchema = {
|
|||||||
description: '物联网平台中对应的账号Id',
|
description: '物联网平台中对应的账号Id',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
ioTPlatformAccountName: {
|
accountPhoneNumber: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '物联网平台中对应的账号Name',
|
description: '账户手机号',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
ioTPlatformResponse: {
|
ioTPlatformResponse: {
|
||||||
@ -1901,6 +1848,36 @@ export const DeviceManagementInfoDtoSchema = {
|
|||||||
isPlatformPushSuccess: {
|
isPlatformPushSuccess: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: '物联网平台推送是否成功'
|
description: '物联网平台推送是否成功'
|
||||||
|
},
|
||||||
|
deviceOnlineStatus: {
|
||||||
|
'$ref': '#/components/schemas/DeviceOnlineStatusEnum'
|
||||||
|
},
|
||||||
|
deviceOnlineStatusName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '设备在线状态',
|
||||||
|
nullable: true,
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
|
lastOnlineTime: {
|
||||||
|
type: 'string',
|
||||||
|
description: '最后在线时间',
|
||||||
|
format: 'date-time',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
lastOfflineTime: {
|
||||||
|
type: 'string',
|
||||||
|
description: '最后离线时间',
|
||||||
|
format: 'date-time',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
deviceSourceTypeEnum: {
|
||||||
|
'$ref': '#/components/schemas/DeviceSourceTypeEnum'
|
||||||
|
},
|
||||||
|
deviceSourceTypeName: {
|
||||||
|
type: 'string',
|
||||||
|
description: '设备来源类型',
|
||||||
|
nullable: true,
|
||||||
|
readOnly: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
@ -1924,6 +1901,22 @@ export const DeviceManagementInfoDtoPagedResultDtoSchema = {
|
|||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const DeviceOnlineStatusEnumSchema = {
|
||||||
|
enum: [1, 2],
|
||||||
|
type: 'integer',
|
||||||
|
description: '设备在线状态',
|
||||||
|
format: 'int32',
|
||||||
|
'说明:': '在线=1,离线=2'
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const DeviceSourceTypeEnumSchema = {
|
||||||
|
enum: [1, 2, 3, 4],
|
||||||
|
type: 'integer',
|
||||||
|
description: '设备来源类型枚举',
|
||||||
|
format: 'int32',
|
||||||
|
'说明:': '管理后台=1,生产车间=2,CTWing推送=3,OneNET推送=4'
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const DeviceTableModelDataInfoPageInputSchema = {
|
export const DeviceTableModelDataInfoPageInputSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -1951,11 +1944,6 @@ export const DeviceTableModelDataInfoPageInputSchema = {
|
|||||||
</example>`,
|
</example>`,
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
dataBaseName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '数据库名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTDataType: {
|
ioTDataType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '数据类型',
|
description: '数据类型',
|
||||||
@ -2075,11 +2063,6 @@ export const DeviceTreeModelDataInfoInputSchema = {
|
|||||||
</example>`,
|
</example>`,
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
dataBaseName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '数据库名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTDataType: {
|
ioTDataType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '数据类型',
|
description: '数据类型',
|
||||||
@ -3591,6 +3574,16 @@ export const HttpDataResultSchema = {
|
|||||||
format: 'int64',
|
format: 'int64',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
nonce: {
|
||||||
|
type: 'string',
|
||||||
|
description: '用于计算签名字符的随机串',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
|
signature: {
|
||||||
|
type: 'string',
|
||||||
|
description: '加密签名,用以校验推送客户端身份合法性,校验方法见实例验证',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
locationCode: {
|
locationCode: {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
description: `位置编码,主要用于接口请求逻辑定位
|
description: `位置编码,主要用于接口请求逻辑定位
|
||||||
@ -4297,7 +4290,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
},
|
},
|
||||||
formattedTimestamps: {
|
formattedTimestamps: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '格式化的时标',
|
description: '时标格式化以后的本地时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
@ -4482,11 +4475,6 @@ export const MeterReadingPacketInfoPageInputSchema = {
|
|||||||
</example>`,
|
</example>`,
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
dataBaseName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '数据库名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTDataType: {
|
ioTDataType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '数据类型',
|
description: '数据类型',
|
||||||
@ -4554,7 +4542,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
},
|
},
|
||||||
formattedTimestamps: {
|
formattedTimestamps: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '格式化的时标',
|
description: '时标格式化以后的本地时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
@ -5155,6 +5143,11 @@ export const OneNETProductInfoDtoSchema = {
|
|||||||
description: 'OneNET账户Id',
|
description: 'OneNET账户Id',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
|
accountPhoneNumber: {
|
||||||
|
type: 'string',
|
||||||
|
description: '账户手机号',
|
||||||
|
nullable: true
|
||||||
|
},
|
||||||
oneNETAccountName: {
|
oneNETAccountName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'OneNET账户',
|
description: 'OneNET账户',
|
||||||
@ -5519,115 +5512,6 @@ export const OneNetProductInfoModifyInputSchema = {
|
|||||||
description: '修改OneNET产品'
|
description: '修改OneNET产品'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const OneNetWorkshopProductListOutputSchema = {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
nonce: {
|
|
||||||
type: 'string',
|
|
||||||
description: '用于计算签名字符的随机串',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
signature: {
|
|
||||||
type: 'string',
|
|
||||||
description: '加密签名,用以校验推送客户端身份合法性,校验方法见实例验证',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
timestamp: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '签名有效期(毫秒)',
|
|
||||||
format: 'int64'
|
|
||||||
},
|
|
||||||
msg: {
|
|
||||||
type: 'string',
|
|
||||||
description: '消息内容,JSON字符串,具体的设备相关信息',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
oneNETAccountId: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'OneNET账户Id',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTPlatformProductId: {
|
|
||||||
type: 'string',
|
|
||||||
description: '物联网平台对应的产品Id',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
productName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '产品名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
productAccesskey: {
|
|
||||||
type: 'string',
|
|
||||||
description: '产品访问密钥',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
communicationAddress: {
|
|
||||||
type: 'string',
|
|
||||||
description: '通讯服务地址',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
communicationAddressTLS: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'TLS通讯服务地址',
|
|
||||||
nullable: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
additionalProperties: false,
|
|
||||||
description: '生产车间获取OneNET产品列表'
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export const OneNetWorkshopProductListOutputListHttpDataResultSchema = {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
code: {
|
|
||||||
'$ref': '#/components/schemas/ResponeResultEnum'
|
|
||||||
},
|
|
||||||
msg: {
|
|
||||||
type: 'string',
|
|
||||||
description: '详细描述',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
success: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `是否获取到数据或者逻辑处理成功
|
|
||||||
服务内部判断状态采用此属性`
|
|
||||||
},
|
|
||||||
timestamp: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '时间戳(毫秒)',
|
|
||||||
format: 'int64',
|
|
||||||
readOnly: true
|
|
||||||
},
|
|
||||||
locationCode: {
|
|
||||||
type: 'integer',
|
|
||||||
description: `位置编码,主要用于接口请求逻辑定位
|
|
||||||
使用时必须保证每个请求中不重复出现`,
|
|
||||||
format: 'int32'
|
|
||||||
},
|
|
||||||
extras: {
|
|
||||||
type: 'string',
|
|
||||||
description: '扩展信息',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
type: 'array',
|
|
||||||
items: {
|
|
||||||
'$ref': '#/components/schemas/OneNetWorkshopProductListOutput'
|
|
||||||
},
|
|
||||||
description: '扩展字段',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
total: {
|
|
||||||
type: 'integer',
|
|
||||||
description: '总数',
|
|
||||||
format: 'int64'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
additionalProperties: false,
|
|
||||||
description: 'HTTP 请求返回结果'
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export const OpenApiRequestSchema = {
|
export const OpenApiRequestSchema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -5641,7 +5525,7 @@ export const OpenApiRequestSchema = {
|
|||||||
description: '加密签名,用以校验推送客户端身份合法性,校验方法见实例验证',
|
description: '加密签名,用以校验推送客户端身份合法性,校验方法见实例验证',
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
timestamp: {
|
time: {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
description: '签名有效期(毫秒)',
|
description: '签名有效期(毫秒)',
|
||||||
format: 'int64'
|
format: 'int64'
|
||||||
@ -5650,6 +5534,10 @@ export const OpenApiRequestSchema = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
description: '消息内容,JSON字符串,具体的设备相关信息',
|
description: '消息内容,JSON字符串,具体的设备相关信息',
|
||||||
nullable: true
|
nullable: true
|
||||||
|
},
|
||||||
|
encrypted: {
|
||||||
|
type: 'boolean',
|
||||||
|
description: '是否加密'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
@ -7824,11 +7712,6 @@ export const QueryCTWingAepReceiveMessageInputSchema = {
|
|||||||
</example>`,
|
</example>`,
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
dataBaseName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '数据库名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTDataType: {
|
ioTDataType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '数据类型',
|
description: '数据类型',
|
||||||
@ -7896,7 +7779,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
},
|
},
|
||||||
formattedTimestamps: {
|
formattedTimestamps: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '格式化的时标',
|
description: '时标格式化以后的本地时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
@ -8020,11 +7903,6 @@ export const QueryOneNETReceiveMessageInputSchema = {
|
|||||||
</example>`,
|
</example>`,
|
||||||
nullable: true
|
nullable: true
|
||||||
},
|
},
|
||||||
dataBaseName: {
|
|
||||||
type: 'string',
|
|
||||||
description: '数据库名称',
|
|
||||||
nullable: true
|
|
||||||
},
|
|
||||||
ioTDataType: {
|
ioTDataType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '数据类型',
|
description: '数据类型',
|
||||||
@ -8092,7 +7970,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`,
|
|||||||
},
|
},
|
||||||
formattedTimestamps: {
|
formattedTimestamps: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '格式化的时标',
|
description: '时标格式化以后的本地时间',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -154,20 +154,24 @@ export type ApplicationSettingConfigurationDto = {
|
|||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ArchivalDataIssuedInput = {
|
|
||||||
meterType?: DeviceTypeEnum;
|
|
||||||
/**
|
|
||||||
* 表计地址
|
|
||||||
*/
|
|
||||||
meterAddress?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 集中器地址
|
|
||||||
*/
|
|
||||||
focusAddress?: (string) | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type AuthTypeEnum = 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9;
|
export type AuthTypeEnum = 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建设备信息
|
||||||
|
*/
|
||||||
|
export type BatchCreateDeviceAggregationInput = {
|
||||||
|
/**
|
||||||
|
* 表通信地址集合
|
||||||
|
*/
|
||||||
|
addressList: Array<(string)>;
|
||||||
|
ioTPlatform: IoTPlatformTypeEnum;
|
||||||
|
/**
|
||||||
|
* 集中器在物联网平台中对应的产品Id
|
||||||
|
*/
|
||||||
|
ioTPlatformProductId: string;
|
||||||
|
deviceSourceTypeEnum?: DeviceSourceTypeEnum;
|
||||||
|
};
|
||||||
|
|
||||||
export type ChangePasswordInput = {
|
export type ChangePasswordInput = {
|
||||||
currentPassword?: (string) | null;
|
currentPassword?: (string) | null;
|
||||||
newPassword: string;
|
newPassword: string;
|
||||||
@ -223,6 +227,7 @@ export type CreateDeviceAggregationInput = {
|
|||||||
* 集中器在物联网平台中对应的产品Id
|
* 集中器在物联网平台中对应的产品Id
|
||||||
*/
|
*/
|
||||||
ioTPlatformProductId: string;
|
ioTPlatformProductId: string;
|
||||||
|
deviceSourceTypeEnum?: DeviceSourceTypeEnum;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -480,7 +485,33 @@ export type CTWingAccountInsertInput = {
|
|||||||
* 账号列表输入参数
|
* 账号列表输入参数
|
||||||
*/
|
*/
|
||||||
export type CTWingAccountListInput = {
|
export type CTWingAccountListInput = {
|
||||||
[key: string]: unknown;
|
/**
|
||||||
|
* 当前页面.默认从1开始
|
||||||
|
*/
|
||||||
|
pageIndex?: number;
|
||||||
|
/**
|
||||||
|
* 每页多少条.每页显示多少记录
|
||||||
|
*/
|
||||||
|
pageSize?: number;
|
||||||
|
/**
|
||||||
|
* 跳过多少条
|
||||||
|
*/
|
||||||
|
readonly skipCount?: number;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
* <example>
|
||||||
|
* name desc
|
||||||
|
* </example>
|
||||||
|
*/
|
||||||
|
sorting?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 手机号码
|
||||||
|
*/
|
||||||
|
phoneNumber?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 账号ID
|
||||||
|
*/
|
||||||
|
ctWingAccountId?: (string) | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -567,6 +598,14 @@ export type CTWingPrivateProductInfoDto = {
|
|||||||
* 账号ID
|
* 账号ID
|
||||||
*/
|
*/
|
||||||
ctWingAccountId?: (string) | null;
|
ctWingAccountId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 账户手机号
|
||||||
|
*/
|
||||||
|
accountPhoneNumber?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 账号名称
|
||||||
|
*/
|
||||||
|
ctWingAccountName?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 通讯服务地址
|
* 通讯服务地址
|
||||||
*/
|
*/
|
||||||
@ -582,7 +621,7 @@ export type CTWingPrivateProductInfoDto = {
|
|||||||
/**
|
/**
|
||||||
* 产品ID
|
* 产品ID
|
||||||
*/
|
*/
|
||||||
ioTPlatformProductId?: number;
|
ioTPlatformProductId?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 产品名称
|
* 产品名称
|
||||||
*/
|
*/
|
||||||
@ -731,89 +770,6 @@ export type CTWingPrivateProductInfoModifyInput = {
|
|||||||
id?: string;
|
id?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 生产车间获取CTWing产品列表
|
|
||||||
*/
|
|
||||||
export type CTWingWorkshopProductListOutput = {
|
|
||||||
/**
|
|
||||||
* 用于计算签名字符的随机串
|
|
||||||
*/
|
|
||||||
nonce?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 加密签名,用以校验推送客户端身份合法性,校验方法见实例验证
|
|
||||||
*/
|
|
||||||
signature?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 签名有效期(毫秒)
|
|
||||||
*/
|
|
||||||
timestamp?: number;
|
|
||||||
/**
|
|
||||||
* 消息内容,JSON字符串,具体的设备相关信息
|
|
||||||
*/
|
|
||||||
msg?: (string) | null;
|
|
||||||
/**
|
|
||||||
* CTWing账户Id
|
|
||||||
*/
|
|
||||||
ctWingAccountId?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 物联网平台对应的产品Id
|
|
||||||
*/
|
|
||||||
ioTPlatformProductId?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 产品名称
|
|
||||||
*/
|
|
||||||
productName?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 设备访问密钥
|
|
||||||
*/
|
|
||||||
featureAccesskey?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 通讯服务地址
|
|
||||||
*/
|
|
||||||
communicationAddress?: (string) | null;
|
|
||||||
/**
|
|
||||||
* TLS通讯服务地址
|
|
||||||
*/
|
|
||||||
communicationAddressTLS?: (string) | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HTTP 请求返回结果
|
|
||||||
*/
|
|
||||||
export type CTWingWorkshopProductListOutputListHttpDataResult = {
|
|
||||||
code?: ResponeResultEnum;
|
|
||||||
/**
|
|
||||||
* 详细描述
|
|
||||||
*/
|
|
||||||
msg?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 是否获取到数据或者逻辑处理成功
|
|
||||||
* 服务内部判断状态采用此属性
|
|
||||||
*/
|
|
||||||
success?: boolean;
|
|
||||||
/**
|
|
||||||
* 时间戳(毫秒)
|
|
||||||
*/
|
|
||||||
readonly timestamp?: number;
|
|
||||||
/**
|
|
||||||
* 位置编码,主要用于接口请求逻辑定位
|
|
||||||
* 使用时必须保证每个请求中不重复出现
|
|
||||||
*/
|
|
||||||
locationCode?: number;
|
|
||||||
/**
|
|
||||||
* 扩展信息
|
|
||||||
*/
|
|
||||||
extras?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 扩展字段
|
|
||||||
*/
|
|
||||||
data?: Array<CTWingWorkshopProductListOutput> | null;
|
|
||||||
/**
|
|
||||||
* 总数
|
|
||||||
*/
|
|
||||||
total?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CurrentCultureDto = {
|
export type CurrentCultureDto = {
|
||||||
displayName?: (string) | null;
|
displayName?: (string) | null;
|
||||||
englishName?: (string) | null;
|
englishName?: (string) | null;
|
||||||
@ -1004,9 +960,9 @@ export type DeviceManagementInfoDto = {
|
|||||||
*/
|
*/
|
||||||
ioTPlatformAccountId?: (string) | null;
|
ioTPlatformAccountId?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 物联网平台中对应的账号Name
|
* 账户手机号
|
||||||
*/
|
*/
|
||||||
ioTPlatformAccountName?: (string) | null;
|
accountPhoneNumber?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 物联网平台返回的响应信息
|
* 物联网平台返回的响应信息
|
||||||
*/
|
*/
|
||||||
@ -1015,6 +971,24 @@ export type DeviceManagementInfoDto = {
|
|||||||
* 物联网平台推送是否成功
|
* 物联网平台推送是否成功
|
||||||
*/
|
*/
|
||||||
isPlatformPushSuccess?: boolean;
|
isPlatformPushSuccess?: boolean;
|
||||||
|
deviceOnlineStatus?: DeviceOnlineStatusEnum;
|
||||||
|
/**
|
||||||
|
* 设备在线状态
|
||||||
|
*/
|
||||||
|
readonly deviceOnlineStatusName?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 最后在线时间
|
||||||
|
*/
|
||||||
|
lastOnlineTime?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 最后离线时间
|
||||||
|
*/
|
||||||
|
lastOfflineTime?: (string) | null;
|
||||||
|
deviceSourceTypeEnum?: DeviceSourceTypeEnum;
|
||||||
|
/**
|
||||||
|
* 设备来源类型
|
||||||
|
*/
|
||||||
|
readonly deviceSourceTypeName?: (string) | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DeviceManagementInfoDtoPagedResultDto = {
|
export type DeviceManagementInfoDtoPagedResultDto = {
|
||||||
@ -1022,6 +996,16 @@ export type DeviceManagementInfoDtoPagedResultDto = {
|
|||||||
totalCount?: number;
|
totalCount?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备在线状态
|
||||||
|
*/
|
||||||
|
export type DeviceOnlineStatusEnum = 1 | 2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备来源类型枚举
|
||||||
|
*/
|
||||||
|
export type DeviceSourceTypeEnum = 1 | 2 | 3 | 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备数据表模型信息入参
|
* 设备数据表模型信息入参
|
||||||
*/
|
*/
|
||||||
@ -1045,10 +1029,6 @@ export type DeviceTableModelDataInfoPageInput = {
|
|||||||
* </example>
|
* </example>
|
||||||
*/
|
*/
|
||||||
sorting?: (string) | null;
|
sorting?: (string) | null;
|
||||||
/**
|
|
||||||
* 数据库名称
|
|
||||||
*/
|
|
||||||
dataBaseName?: (string) | null;
|
|
||||||
/**
|
/**
|
||||||
* 数据类型
|
* 数据类型
|
||||||
*/
|
*/
|
||||||
@ -1130,10 +1110,6 @@ export type DeviceTreeModelDataInfoInput = {
|
|||||||
* </example>
|
* </example>
|
||||||
*/
|
*/
|
||||||
sorting?: (string) | null;
|
sorting?: (string) | null;
|
||||||
/**
|
|
||||||
* 数据库名称
|
|
||||||
*/
|
|
||||||
dataBaseName?: (string) | null;
|
|
||||||
/**
|
/**
|
||||||
* 数据类型
|
* 数据类型
|
||||||
*/
|
*/
|
||||||
@ -1726,6 +1702,14 @@ export type HttpDataResult = {
|
|||||||
* 时间戳(毫秒)
|
* 时间戳(毫秒)
|
||||||
*/
|
*/
|
||||||
readonly timestamp?: number;
|
readonly timestamp?: number;
|
||||||
|
/**
|
||||||
|
* 用于计算签名字符的随机串
|
||||||
|
*/
|
||||||
|
nonce?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 加密签名,用以校验推送客户端身份合法性,校验方法见实例验证
|
||||||
|
*/
|
||||||
|
signature?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* 位置编码,主要用于接口请求逻辑定位
|
* 位置编码,主要用于接口请求逻辑定位
|
||||||
* 使用时必须保证每个请求中不重复出现
|
* 使用时必须保证每个请求中不重复出现
|
||||||
@ -1997,7 +1981,7 @@ export type MeterReadingPacketInfoDto = {
|
|||||||
*/
|
*/
|
||||||
timestamps?: number;
|
timestamps?: number;
|
||||||
/**
|
/**
|
||||||
* 格式化的时标
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
/**
|
/**
|
||||||
@ -2145,10 +2129,6 @@ export type MeterReadingPacketInfoPageInput = {
|
|||||||
* </example>
|
* </example>
|
||||||
*/
|
*/
|
||||||
sorting?: (string) | null;
|
sorting?: (string) | null;
|
||||||
/**
|
|
||||||
* 数据库名称
|
|
||||||
*/
|
|
||||||
dataBaseName?: (string) | null;
|
|
||||||
/**
|
/**
|
||||||
* 数据类型
|
* 数据类型
|
||||||
*/
|
*/
|
||||||
@ -2199,7 +2179,7 @@ export type MeterReadingPacketInfoPageOutput = {
|
|||||||
*/
|
*/
|
||||||
timestamps?: number;
|
timestamps?: number;
|
||||||
/**
|
/**
|
||||||
* 格式化的时标
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
/**
|
/**
|
||||||
@ -2596,6 +2576,10 @@ export type OneNETProductInfoDto = {
|
|||||||
* OneNET账户Id
|
* OneNET账户Id
|
||||||
*/
|
*/
|
||||||
oneNETAccountId?: (string) | null;
|
oneNETAccountId?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 账户手机号
|
||||||
|
*/
|
||||||
|
accountPhoneNumber?: (string) | null;
|
||||||
/**
|
/**
|
||||||
* OneNET账户
|
* OneNET账户
|
||||||
*/
|
*/
|
||||||
@ -2788,89 +2772,6 @@ export type OneNetProductInfoModifyInput = {
|
|||||||
deviceThingModelFileName?: (string) | null;
|
deviceThingModelFileName?: (string) | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 生产车间获取OneNET产品列表
|
|
||||||
*/
|
|
||||||
export type OneNetWorkshopProductListOutput = {
|
|
||||||
/**
|
|
||||||
* 用于计算签名字符的随机串
|
|
||||||
*/
|
|
||||||
nonce?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 加密签名,用以校验推送客户端身份合法性,校验方法见实例验证
|
|
||||||
*/
|
|
||||||
signature?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 签名有效期(毫秒)
|
|
||||||
*/
|
|
||||||
timestamp?: number;
|
|
||||||
/**
|
|
||||||
* 消息内容,JSON字符串,具体的设备相关信息
|
|
||||||
*/
|
|
||||||
msg?: (string) | null;
|
|
||||||
/**
|
|
||||||
* OneNET账户Id
|
|
||||||
*/
|
|
||||||
oneNETAccountId?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 物联网平台对应的产品Id
|
|
||||||
*/
|
|
||||||
ioTPlatformProductId?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 产品名称
|
|
||||||
*/
|
|
||||||
productName?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 产品访问密钥
|
|
||||||
*/
|
|
||||||
productAccesskey?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 通讯服务地址
|
|
||||||
*/
|
|
||||||
communicationAddress?: (string) | null;
|
|
||||||
/**
|
|
||||||
* TLS通讯服务地址
|
|
||||||
*/
|
|
||||||
communicationAddressTLS?: (string) | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HTTP 请求返回结果
|
|
||||||
*/
|
|
||||||
export type OneNetWorkshopProductListOutputListHttpDataResult = {
|
|
||||||
code?: ResponeResultEnum;
|
|
||||||
/**
|
|
||||||
* 详细描述
|
|
||||||
*/
|
|
||||||
msg?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 是否获取到数据或者逻辑处理成功
|
|
||||||
* 服务内部判断状态采用此属性
|
|
||||||
*/
|
|
||||||
success?: boolean;
|
|
||||||
/**
|
|
||||||
* 时间戳(毫秒)
|
|
||||||
*/
|
|
||||||
readonly timestamp?: number;
|
|
||||||
/**
|
|
||||||
* 位置编码,主要用于接口请求逻辑定位
|
|
||||||
* 使用时必须保证每个请求中不重复出现
|
|
||||||
*/
|
|
||||||
locationCode?: number;
|
|
||||||
/**
|
|
||||||
* 扩展信息
|
|
||||||
*/
|
|
||||||
extras?: (string) | null;
|
|
||||||
/**
|
|
||||||
* 扩展字段
|
|
||||||
*/
|
|
||||||
data?: Array<OneNetWorkshopProductListOutput> | null;
|
|
||||||
/**
|
|
||||||
* 总数
|
|
||||||
*/
|
|
||||||
total?: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开放接口请求入参,所有外部接口请求参数
|
* 开放接口请求入参,所有外部接口请求参数
|
||||||
*/
|
*/
|
||||||
@ -2886,11 +2787,15 @@ export type OpenApiRequest = {
|
|||||||
/**
|
/**
|
||||||
* 签名有效期(毫秒)
|
* 签名有效期(毫秒)
|
||||||
*/
|
*/
|
||||||
timestamp?: number;
|
time?: number;
|
||||||
/**
|
/**
|
||||||
* 消息内容,JSON字符串,具体的设备相关信息
|
* 消息内容,JSON字符串,具体的设备相关信息
|
||||||
*/
|
*/
|
||||||
msg?: (string) | null;
|
msg?: (string) | null;
|
||||||
|
/**
|
||||||
|
* 是否加密
|
||||||
|
*/
|
||||||
|
encrypted?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4071,10 +3976,6 @@ export type QueryCTWingAepReceiveMessageInput = {
|
|||||||
* </example>
|
* </example>
|
||||||
*/
|
*/
|
||||||
sorting?: (string) | null;
|
sorting?: (string) | null;
|
||||||
/**
|
|
||||||
* 数据库名称
|
|
||||||
*/
|
|
||||||
dataBaseName?: (string) | null;
|
|
||||||
/**
|
/**
|
||||||
* 数据类型
|
* 数据类型
|
||||||
*/
|
*/
|
||||||
@ -4125,7 +4026,7 @@ export type QueryCTWingAepReceiveMessageOutput = {
|
|||||||
*/
|
*/
|
||||||
timestamps?: number;
|
timestamps?: number;
|
||||||
/**
|
/**
|
||||||
* 格式化的时标
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
/**
|
/**
|
||||||
@ -4214,10 +4115,6 @@ export type QueryOneNETReceiveMessageInput = {
|
|||||||
* </example>
|
* </example>
|
||||||
*/
|
*/
|
||||||
sorting?: (string) | null;
|
sorting?: (string) | null;
|
||||||
/**
|
|
||||||
* 数据库名称
|
|
||||||
*/
|
|
||||||
dataBaseName?: (string) | null;
|
|
||||||
/**
|
/**
|
||||||
* 数据类型
|
* 数据类型
|
||||||
*/
|
*/
|
||||||
@ -4268,7 +4165,7 @@ export type QueryOneNETReceiveMessageOutput = {
|
|||||||
*/
|
*/
|
||||||
timestamps?: number;
|
timestamps?: number;
|
||||||
/**
|
/**
|
||||||
* 格式化的时标
|
* 时标格式化以后的本地时间
|
||||||
*/
|
*/
|
||||||
readonly formattedTimestamps?: string;
|
readonly formattedTimestamps?: string;
|
||||||
/**
|
/**
|
||||||
@ -4937,7 +4834,7 @@ export type PostAggregationCtWingGetProductListAsyncData = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PostAggregationCtWingGetProductListAsyncResponse = (CTWingWorkshopProductListOutputListHttpDataResult);
|
export type PostAggregationCtWingGetProductListAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
export type PostAggregationCtWingGetProductListAsyncError = unknown;
|
export type PostAggregationCtWingGetProductListAsyncError = unknown;
|
||||||
|
|
||||||
@ -5103,6 +5000,16 @@ export type PostAggregationDeviceCreateAsyncResponse = (boolean);
|
|||||||
|
|
||||||
export type PostAggregationDeviceCreateAsyncError = unknown;
|
export type PostAggregationDeviceCreateAsyncError = unknown;
|
||||||
|
|
||||||
|
export type PostAggregationDeviceBatchCreateAsyncData = {
|
||||||
|
query?: {
|
||||||
|
input?: BatchCreateDeviceAggregationInput;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type PostAggregationDeviceBatchCreateAsyncResponse = (boolean);
|
||||||
|
|
||||||
|
export type PostAggregationDeviceBatchCreateAsyncError = unknown;
|
||||||
|
|
||||||
export type PostAggregationDeviceDeleteAsyncData = {
|
export type PostAggregationDeviceDeleteAsyncData = {
|
||||||
query?: {
|
query?: {
|
||||||
input?: IdInput;
|
input?: IdInput;
|
||||||
@ -5157,16 +5064,6 @@ export type PostDeviceInfoCacheDeviceDataToRedisResponse = (boolean);
|
|||||||
|
|
||||||
export type PostDeviceInfoCacheDeviceDataToRedisError = unknown;
|
export type PostDeviceInfoCacheDeviceDataToRedisError = unknown;
|
||||||
|
|
||||||
export type PostDeviceInfoArchivesDownData = {
|
|
||||||
query?: {
|
|
||||||
input?: ArchivalDataIssuedInput;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PostDeviceInfoArchivesDownResponse = (boolean);
|
|
||||||
|
|
||||||
export type PostDeviceInfoArchivesDownError = unknown;
|
|
||||||
|
|
||||||
export type PostFeaturesListData = {
|
export type PostFeaturesListData = {
|
||||||
body?: GetFeatureListResultInput;
|
body?: GetFeatureListResultInput;
|
||||||
};
|
};
|
||||||
@ -5479,7 +5376,7 @@ export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncData = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncResponse = (unknown);
|
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncError = unknown;
|
export type PostAggregationOneNetReceiveWorkshopProductionInfoAsyncError = unknown;
|
||||||
|
|
||||||
@ -5492,7 +5389,7 @@ export type PostAggregationOneNetGetProductListAsyncData = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PostAggregationOneNetGetProductListAsyncResponse = (OneNetWorkshopProductListOutputListHttpDataResult);
|
export type PostAggregationOneNetGetProductListAsyncResponse = (HttpDataResult);
|
||||||
|
|
||||||
export type PostAggregationOneNetGetProductListAsyncError = unknown;
|
export type PostAggregationOneNetGetProductListAsyncError = unknown;
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@ import {
|
|||||||
getApiAbpApplicationConfiguration,
|
getApiAbpApplicationConfiguration,
|
||||||
postApiAppAccountLogin2Fa,
|
postApiAppAccountLogin2Fa,
|
||||||
postTenantsFind,
|
postTenantsFind,
|
||||||
|
postApiAppAccountLogout,
|
||||||
} from '#/api-client';
|
} from '#/api-client';
|
||||||
import { useSignalR } from '#/hooks/useSignalR';
|
import { useSignalR } from '#/hooks/useSignalR';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
@ -105,7 +106,8 @@ export const useAuthStore = defineStore('auth', () => {
|
|||||||
|
|
||||||
async function logout(redirect: boolean = true) {
|
async function logout(redirect: boolean = true) {
|
||||||
try {
|
try {
|
||||||
// await logoutApi();
|
// 先调用后端登出接口
|
||||||
|
await postApiAppAccountLogout();
|
||||||
const { closeConnect } = useSignalR();
|
const { closeConnect } = useSignalR();
|
||||||
closeConnect();
|
closeConnect();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@ -73,12 +73,7 @@ onBeforeMount(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<AuthenticationLogin
|
<AuthenticationLogin :form-schema="formSchema" :loading="authStore.loginLoading" :show-tenant-login="showTenant"
|
||||||
:form-schema="formSchema"
|
:show-third-party-login="showThirdPartyLogin" :third-part-login-list="thirdPartLoginList as any"
|
||||||
:loading="authStore.loginLoading"
|
@submit="authStore.authLogin" />
|
||||||
:show-tenant-login="showTenant"
|
|
||||||
:show-third-party-login="showThirdPartyLogin"
|
|
||||||
:third-part-login-list="thirdPartLoginList as any"
|
|
||||||
@submit="authStore.authLogin"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -68,7 +68,7 @@ const formatDate = (date: Date | string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { DeviceType, DeviceAddress } = route.query;
|
const { IoTDataType, DeviceAddress } = route.query;
|
||||||
|
|
||||||
// 动态列定义
|
// 动态列定义
|
||||||
const dynamicColumns = ref<any[]>([]);
|
const dynamicColumns = ref<any[]>([]);
|
||||||
@ -155,7 +155,7 @@ initDefaultColumns();
|
|||||||
const formOptions: VbenFormProps = {
|
const formOptions: VbenFormProps = {
|
||||||
schema: querySchema.value,
|
schema: querySchema.value,
|
||||||
initialValues: {
|
initialValues: {
|
||||||
DeviceType: DeviceType ? Number(DeviceType) : undefined,
|
IoTDataType: IoTDataType as string,
|
||||||
DeviceAddress: DeviceAddress as string, // 使用DeviceAddress作为初始值
|
DeviceAddress: DeviceAddress as string, // 使用DeviceAddress作为初始值
|
||||||
},
|
},
|
||||||
// 禁用表单值变化时自动提交,使用自定义处理函数
|
// 禁用表单值变化时自动提交,使用自定义处理函数
|
||||||
@ -164,13 +164,13 @@ const formOptions: VbenFormProps = {
|
|||||||
handleValuesChange: async (values, changedFields) => {
|
handleValuesChange: async (values, changedFields) => {
|
||||||
// 如果正在初始化,不触发查询
|
// 如果正在初始化,不触发查询
|
||||||
if (isInitializing.value) {
|
if (isInitializing.value) {
|
||||||
|
console.log('初始化中,跳过表单值变化处理');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 当任何相关字段发生变化时,刷新表格数据
|
// 当任何相关字段发生变化时,刷新表格数据
|
||||||
const relevantFields = new Set([
|
const relevantFields = new Set([
|
||||||
'DeviceAddress',
|
'DeviceAddress',
|
||||||
'DeviceType',
|
|
||||||
'EndCreationTime',
|
'EndCreationTime',
|
||||||
'IoTDataType',
|
'IoTDataType',
|
||||||
'StartCreationTime',
|
'StartCreationTime',
|
||||||
@ -278,13 +278,18 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
if (!currentFormValues.DeviceAddress && DeviceAddress) {
|
if (!currentFormValues.DeviceAddress && DeviceAddress) {
|
||||||
currentFormValues.DeviceAddress = DeviceAddress as string;
|
currentFormValues.DeviceAddress = DeviceAddress as string;
|
||||||
}
|
}
|
||||||
// 处理DeviceType和IoTDataType,确保传递数字类型
|
|
||||||
const deviceTypeValue = currentFormValues.DeviceType;
|
// 如果表单中没有IoTDataType,但有路由参数,使用路由参数
|
||||||
const deviceTypeNumber = deviceTypeValue
|
if (!currentFormValues.IoTDataType && IoTDataType) {
|
||||||
? Number(deviceTypeValue)
|
currentFormValues.IoTDataType = IoTDataType as string;
|
||||||
: undefined;
|
}
|
||||||
|
|
||||||
|
// 处理IoTDataType,保持字符串类型
|
||||||
const ioTDataTypeValue = currentFormValues.IoTDataType;
|
const ioTDataTypeValue = currentFormValues.IoTDataType;
|
||||||
|
|
||||||
|
// 调试:打印表单值和路由参数
|
||||||
|
console.log('表单值:', currentFormValues);
|
||||||
|
console.log('路由参数:', { IoTDataType, DeviceAddress });
|
||||||
|
|
||||||
// 处理日期范围参数
|
// 处理日期范围参数
|
||||||
const startCreationTime = currentFormValues.StartCreationTime
|
const startCreationTime = currentFormValues.StartCreationTime
|
||||||
@ -313,13 +318,23 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
deviceAddress = deviceInfo.deviceAddress || deviceAddress;
|
deviceAddress = deviceInfo.deviceAddress || deviceAddress;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
// 调试:打印请求参数和调用来源
|
||||||
|
console.log('API请求参数:', {
|
||||||
|
pageIndex: page.currentPage,
|
||||||
|
pageSize: page.pageSize,
|
||||||
|
DeviceAddress: deviceAddress,
|
||||||
|
IoTDataType: ioTDataTypeValue,
|
||||||
|
StartCreationTime: startCreationTime,
|
||||||
|
EndCreationTime: endCreationTime,
|
||||||
|
});
|
||||||
|
console.log('调用来源:', new Error().stack);
|
||||||
|
|
||||||
const { data } = await postTreeModelDeviceDataInfoPage({
|
const { data } = await postTreeModelDeviceDataInfoPage({
|
||||||
body: {
|
body: {
|
||||||
pageIndex: page.currentPage,
|
pageIndex: page.currentPage,
|
||||||
pageSize: page.pageSize,
|
pageSize: page.pageSize,
|
||||||
// 使用设备地址作为DeviceAddress
|
// 使用设备地址作为DeviceAddress
|
||||||
DeviceAddress: deviceAddress,
|
DeviceAddress: deviceAddress,
|
||||||
DeviceType: deviceTypeNumber || undefined,
|
|
||||||
IoTDataType: ioTDataTypeValue || undefined,
|
IoTDataType: ioTDataTypeValue || undefined,
|
||||||
// 添加日期范围参数
|
// 添加日期范围参数
|
||||||
StartCreationTime: startCreationTime || undefined,
|
StartCreationTime: startCreationTime || undefined,
|
||||||
@ -429,23 +444,31 @@ const initializeGrid = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 如果有路由参数,自动触发查询
|
// 如果有路由参数,自动触发查询
|
||||||
if (DeviceType || DeviceAddress) {
|
if (IoTDataType || DeviceAddress) {
|
||||||
// 延迟一下确保表格已完全初始化
|
// 延迟一下确保表格已完全初始化
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
if (gridApi && gridApi.formApi) {
|
if (gridApi && gridApi.formApi) {
|
||||||
// 确保表单值正确设置
|
// 确保表单值正确设置
|
||||||
const currentValues = await gridApi.formApi.getValues();
|
const currentValues = await gridApi.formApi.getValues();
|
||||||
|
const updatedValues = { ...currentValues };
|
||||||
|
|
||||||
if (!currentValues.DeviceAddress && DeviceAddress) {
|
if (!currentValues.DeviceAddress && DeviceAddress) {
|
||||||
await gridApi.formApi.setValues({
|
updatedValues.DeviceAddress = DeviceAddress as string;
|
||||||
...currentValues,
|
|
||||||
DeviceAddress: DeviceAddress as string,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
// 延迟清除初始化标志,确保只触发一次查询
|
|
||||||
|
if (!currentValues.IoTDataType && IoTDataType) {
|
||||||
|
updatedValues.IoTDataType = IoTDataType as string;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updatedValues !== currentValues) {
|
||||||
|
await gridApi.formApi.setValues(updatedValues);
|
||||||
|
// 等待表单值更新完成
|
||||||
|
await nextTick();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 延迟清除初始化标志,让表单值变化监听来处理查询
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
isInitializing.value = false;
|
isInitializing.value = false;
|
||||||
// 确保表单值正确设置后再触发查询
|
|
||||||
gridApi.reload();
|
|
||||||
}, 200);
|
}, 200);
|
||||||
} else {
|
} else {
|
||||||
isInitializing.value = false;
|
isInitializing.value = false;
|
||||||
@ -463,15 +486,20 @@ const initializeGrid = async () => {
|
|||||||
|
|
||||||
// 监听路由参数变化,当有路由参数时自动触发查询
|
// 监听路由参数变化,当有路由参数时自动触发查询
|
||||||
watch(
|
watch(
|
||||||
() => [DeviceType, DeviceAddress],
|
() => [IoTDataType, DeviceAddress],
|
||||||
async (newValues, oldValues) => {
|
async (newValues, oldValues) => {
|
||||||
// 如果正在初始化,不触发额外的查询
|
// 如果正在初始化,不触发额外的查询
|
||||||
if (isInitializing.value) {
|
if (isInitializing.value || !isGridInitialized.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果有路由参数,等待设备信息加载完成后自动触发查询
|
// 只有当路由参数真正发生变化时才触发查询
|
||||||
if (newValues.some(Boolean) && gridApi && isGridInitialized.value) {
|
const hasChanged = oldValues && (
|
||||||
|
newValues[0] !== oldValues[0] ||
|
||||||
|
newValues[1] !== oldValues[1]
|
||||||
|
);
|
||||||
|
|
||||||
|
if (hasChanged && newValues.some(Boolean) && gridApi) {
|
||||||
// 延迟一下确保表单值已经设置
|
// 延迟一下确保表单值已经设置
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
gridApi.reload();
|
gridApi.reload();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user