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