From 641b2e0bf94f9589bc18d400d571686a29e90140 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Sun, 17 Oct 2021 21:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BB=B7=E4=BB=A3=E7=90=86=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../agent/agent-edit/agent-edit.component.html | 12 ++++++++++++ .../admin/agent/agent-edit/agent-edit.component.ts | 2 +- .../agent/agent-list/agent-list.component.html | 14 ++++++++++++++ .../admin/agent/agent-list/agent-list.component.ts | 14 +++++++++++++- src/environments/environment.prod.ts | 1 + src/environments/environment.test.ts | 1 + src/environments/environment.ts | 1 + 7 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/app/admin/agent/agent-edit/agent-edit.component.html b/src/app/admin/agent/agent-edit/agent-edit.component.html index 211b79d..5fca4b1 100644 --- a/src/app/admin/agent/agent-edit/agent-edit.component.html +++ b/src/app/admin/agent/agent-edit/agent-edit.component.html @@ -49,6 +49,18 @@ +
+ + 代理商类型 + + + + + + + +
+
代理商地址 diff --git a/src/app/admin/agent/agent-edit/agent-edit.component.ts b/src/app/admin/agent/agent-edit/agent-edit.component.ts index 69a99ee..44d3e95 100644 --- a/src/app/admin/agent/agent-edit/agent-edit.component.ts +++ b/src/app/admin/agent/agent-edit/agent-edit.component.ts @@ -43,7 +43,7 @@ export class AgentEditComponent implements OnInit { loginName: [null, [Validators.required, ValidatorsService.maxLength(20)]], password: [null, [Validators.required]], agentName: [null, [Validators.required]], - type: [1], + type: [null, [Validators.required]], agentUser: [null, [Validators.required, ValidatorsService.maxLength(50)]], agentPhone: [null, [Validators.required, ValidatorsService.maxLength(50)]], agentAddress: [null, [Validators.required, ValidatorsService.maxLength(80)]], diff --git a/src/app/admin/agent/agent-list/agent-list.component.html b/src/app/admin/agent/agent-list/agent-list.component.html index 082eecd..cc26920 100644 --- a/src/app/admin/agent/agent-list/agent-list.component.html +++ b/src/app/admin/agent/agent-list/agent-list.component.html @@ -34,6 +34,17 @@
+
+ + 代理商类型 + + + + + + + +
@@ -75,6 +86,7 @@ 编号 代理商名称 代理商地址 + 邀请链接 联系人 联系方式 创建时间 @@ -86,6 +98,7 @@ {{i + 1}} {{data.agentName}} {{data.agentAddress}} + {{inviteUrl + data.id}} {{data.agentUser}} {{data.agentPhone}} {{data.createTime | date: 'yyyy-MM-dd HH:mm'}} @@ -95,6 +108,7 @@