Commit cf27002bd8f43a386c8049cb197ca980b714e324

Authored by ww
1 parent 75ede56f

fix: 修复服务未区分单双向

... ... @@ -262,7 +262,6 @@ const handleSubmit = async () => {
262 262 sendValue.value = values
263 263 }
264 264 }
265   -
266 265 await sendRpcOneway({
267 266 additionalInfo: {
268 267 cmdType:
... ... @@ -273,7 +272,7 @@ const handleSubmit = async () => {
273 272 persistent: true,
274 273 method: 'methodThingskit',
275 274 params: serviceInfo.transportType !== TransportTypeEnum.TCP && unref(isCommandWay) === CommandDeliveryWayEnum.SERVICE ? { service: unref(sendValue) } : unref(sendValue),
276   - }, dataSourceJson.value.deviceId, serviceInfo.way)
  275 + }, dataSourceJson.value.deviceId, serviceInfo.callType ? serviceInfo.callType === 'SYNC' ? 'twoway' : 'oneway' : serviceInfo.way)
277 276 createMessage.success('命令下发成功')
278 277 visible.value = false
279 278 isInputData.value = false
... ...
... ... @@ -69,7 +69,8 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => {
69 69 { label: EventActionTypeNameEnum.OPEN_PAGE, value: EventActionTypeEnum.OPEN_PAGE, disbaled: false },
70 70
71 71 ] as any
72   - if (unref(getCellInfo).category === PackageCategoryEnum.CONTROL)
  72 +
  73 + if (unref(getCellInfo).category.toUpperCase() === PackageCategoryEnum.CONTROL)
73 74 options.push({ label: EventActionTypeNameEnum.PARAMS_SETTING, value: EventActionTypeEnum.PARAMS_SETTING, disabled: !deviceProfileId })
74 75
75 76 return {
... ...