Commit bce1b3c6b1813c99735aca25a3cda067cb48ac1e
Merge branch 'fix/operation-check-status' into 'main_dev'
fix: 修复状态设置启用状态更新失败 See merge request yunteng/thingskit-scada!184
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | ... | @@ -12,7 +12,7 @@ import { createPublicFormContext } from './usePublicFormContext' |
| 12 | 12 | import { getInitStatusSettingDefaultValue } from './components/DataEffects/StatusSetting' |
| 13 | 13 | import type { ActTypeEnum, EventTypeEnum } from '@/enums/datasource' |
| 14 | 14 | import { useMessage } from '@/hooks/web/useMessage' |
| 15 | -import type { NodeDataActJsonType, NodeDataEventJsonType } from '@/api/node/model' | |
| 15 | +import type { NodeDataActJsonType, NodeDataEventJsonType, OperationPasswordDataType } from '@/api/node/model' | |
| 16 | 16 | import { PackageCategoryEnum } from '@/core/Library/enum' |
| 17 | 17 | import { useContentDataStoreWithOut } from '@/store/modules/contentData' |
| 18 | 18 | import { BasicHelp } from '@/components/Basic' |
| ... | ... | @@ -29,10 +29,11 @@ const dataEventsElRef = ref<InstanceType<typeof DataEvents>>() |
| 29 | 29 | |
| 30 | 30 | const dataActElRef = ref<InstanceType<typeof DataEffects>>() |
| 31 | 31 | |
| 32 | -const operationPassword = reactive<{ checked: boolean; value: string | number; label: string }>({ | |
| 32 | +const operationPassword = reactive<OperationPasswordDataType>({ | |
| 33 | 33 | checked: false, |
| 34 | 34 | value: '', |
| 35 | 35 | label: '操作密码', |
| 36 | + enable: true, | |
| 36 | 37 | }) |
| 37 | 38 | |
| 38 | 39 | const nodeDataActinType = useNodeData({ cell: props.cell!, immediate: false }) | ... | ... |