diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts index c5ee744..ca939e2 100644 --- a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts +++ b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts @@ -49,7 +49,32 @@ export class CrawlerAuthComponent implements OnInit, OnChanges { } generateAuthComponent() { - this.inputItems.map(function(v, i) { - }); + // inputType: MetaInputType; + // crawler: MetaCrawler; + // description: string; + // name: string; + // createDate: Date; + // required: boolean; + // defaultValue: string; + // pattern: string; + // keyName: string; + // keyValue: string; + for (const inputItem of this.inputItems) { + const typeId = inputItem.inputType.id; + switch (typeId) { + case 1: // TEXT_TYPE + break; + case 2: // PASSWORD_TYPE + break; + case 3: // NUMBER_TYPE + break; + case 4: // BOOLEAN_TYPE + break; + case 5: // SELECT_TYPE + break; + default: + break; + } + } } }