|
|
|
|
@ -201,9 +201,9 @@ const open = async (type: string, id?: number) => {
|
|
|
|
|
}
|
|
|
|
|
//await getMachineComponentTree()
|
|
|
|
|
if (type == 'create' || typeof formData.value.dvId != 'number') {
|
|
|
|
|
dvList.value = await DeviceApi.getDeviceListByNoUsed()
|
|
|
|
|
dvList.value = await DeviceApi.getAvailableList()
|
|
|
|
|
} else {
|
|
|
|
|
dvList.value = await DeviceApi.getDeviceList2ByNoUsed(formData.value.dvId)
|
|
|
|
|
dvList.value = await DeviceApi.getAvailableList()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
|