diff --git a/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue b/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue index 6ed17666..062475ca 100644 --- a/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue +++ b/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue @@ -413,23 +413,17 @@ const filterOption = (input: string, option: any) => { const getProviderList = async () => { const res: any = await queryCodecProvider(); providerListAll.value = res.result - .filter((i: any) => i.id !== 'property') + .filter((i: any) => i.id !== 'property' && i.id !== 'bool') .map((item: any) => ({ value: item.id, label: item.name, })); - setProviderList(formData.value.configuration.function); }; getProviderList(); const setProviderList = (value: string | undefined) => { - providerList.value = - value === 'HoldingRegisters' - ? providerListAll.value - : providerListAll.value.filter( - (item: any) => item.value !== 'bool', - ); + providerList.value = providerListAll.value; }; watch( diff --git a/src/views/DataCollect/Collector/Point/index.vue b/src/views/DataCollect/Collector/Point/index.vue index 266e91bb..4a4a55ce 100644 --- a/src/views/DataCollect/Collector/Point/index.vue +++ b/src/views/DataCollect/Collector/Point/index.vue @@ -281,9 +281,14 @@ {{ getText(slotProps) }} - {{ - getInterval(slotProps) - }} + {{ + getInterval(slotProps) + }}