Showing
3 changed files
with
16 additions
and
2 deletions
| ... | ... | @@ -163,6 +163,8 @@ |
| 163 | 163 | productAndDevice?.map((item) => ({ |
| 164 | 164 | label: item.profileName || item.name, |
| 165 | 165 | value: item.profileId, |
| 166 | + transportType: item?.transportType, | |
| 167 | + deviceType: item?.deviceType, | |
| 166 | 168 | })) |
| 167 | 169 | ); |
| 168 | 170 | }; |
| ... | ... | @@ -181,7 +183,12 @@ |
| 181 | 183 | const getCurrentAllProduct = async (products: string[]) => { |
| 182 | 184 | const resp = (await getDeviceProfile()) as any; |
| 183 | 185 | if (!resp) return; |
| 184 | - const values = resp?.map((item) => ({ name: item.name, profileId: item.id })); | |
| 186 | + const values = resp?.map((item) => ({ | |
| 187 | + name: item.name, | |
| 188 | + profileId: item.id, | |
| 189 | + deviceType: item.deviceType, | |
| 190 | + transportType: item.transportType, | |
| 191 | + })); | |
| 185 | 192 | return values.filter((item) => products?.includes(item.profileId)); |
| 186 | 193 | }; |
| 187 | 194 | ... | ... |
| ... | ... | @@ -53,6 +53,8 @@ |
| 53 | 53 | dynamicInput.params.push({ |
| 54 | 54 | name: props.value.label, |
| 55 | 55 | profileId: props.value.value, |
| 56 | + deviceType: props.value?.deviceType, | |
| 57 | + transportType: props.value?.transportType, | |
| 56 | 58 | deviceList: props.value.deviceList?.filter(Boolean)?.map((item) => item.deviceId), |
| 57 | 59 | }); |
| 58 | 60 | } | ... | ... |
| ... | ... | @@ -71,7 +71,12 @@ |
| 71 | 71 | const getCurrentAllProduct = async (products: string[]) => { |
| 72 | 72 | const resp = (await getDeviceProfile()) as any; |
| 73 | 73 | if (!resp) return; |
| 74 | - const values = resp.map((item) => ({ name: item.name, profileId: item.id })); | |
| 74 | + const values = resp.map((item) => ({ | |
| 75 | + name: item.name, | |
| 76 | + profileId: item.id, | |
| 77 | + deviceType: item.deviceType, | |
| 78 | + transportType: item.transportType, | |
| 79 | + })); | |
| 75 | 80 | return values.filter((item) => products.includes(item.profileId)); |
| 76 | 81 | }; |
| 77 | 82 | ... | ... |