File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 227
227
v-model:value =" formData.configuration.overIp.subnetAddress"
228
228
style =" width : 100% "
229
229
placeholder =" 请输入子网地址"
230
+ @change =" changeSubnetAddress"
230
231
/>
231
232
</a-form-item >
232
233
<a-form-item
@@ -405,6 +406,13 @@ const getCertificateList = async () => {
405
406
}
406
407
};
407
408
409
+ // 子网地址长度为0时,设置为undefined
410
+ const changeSubnetAddress = (val : Event ) => {
411
+ if (! val ?.target ?.value ) {
412
+ formData .value .configuration .overIp .subnetAddress = undefined
413
+ }
414
+ }
415
+
408
416
const getProvidersList = async () => {
409
417
const resp: any = await getProviders ();
410
418
if (resp .status === 200 ) {
Original file line number Diff line number Diff line change @@ -198,12 +198,12 @@ const getChildren = (node: any): Promise<any> => {
198
198
await getChannelChildren (node .key , node ._type === ' catalog' ? node .deviceId : node .key , {
199
199
pageIndex: 0 ,
200
200
pageSize: 100 ,
201
- terms: [
201
+ terms: node . _type === ' catalog ' ? [
202
202
{
203
203
column: " parentId" ,
204
204
value: node ._type === ' catalog' ? node .id : node .deviceId
205
205
}
206
- ]
206
+ ] : []
207
207
})
208
208
resolve (true )
209
209
});
You can’t perform that action at this time.
0 commit comments