From a3a8c23b196980732a795713a5eb5fe0c7075bf9 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Wed, 11 Jul 2018 21:47:13 +0800
Subject: [PATCH] Revert "提交"

---
 src/app/routes/extras/poi/edit/edit.component.ts |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/src/app/routes/extras/poi/edit/edit.component.ts b/src/app/routes/extras/poi/edit/edit.component.ts
new file mode 100644
index 0000000..dbf6863
--- /dev/null
+++ b/src/app/routes/extras/poi/edit/edit.component.ts
@@ -0,0 +1,39 @@
+import { NzMessageService, NzModalRef } from 'ng-zorro-antd';
+import { HttpClient } from '@angular/common/http';
+import { Component, OnInit } from '@angular/core';
+import { _HttpClient } from '@delon/theme';
+
+@Component({
+  selector: 'app-extras-poi-edit',
+  templateUrl: './edit.component.html',
+})
+export class ExtrasPoiEditComponent implements OnInit {
+  i: any;
+  cat: string[] = ['������', '������,������', '������,������,���������'];
+
+  constructor(
+    private modal: NzModalRef,
+    public msgSrv: NzMessageService,
+    public http: _HttpClient,
+  ) {}
+
+  ngOnInit() {
+    if (this.i.id > 0) {
+      this.http
+        .get('./assets/tmp/pois.json')
+        .subscribe((res: any) => (this.i = res.data[0]));
+    }
+  }
+
+  save() {
+    this.http.get('./assets/tmp/pois.json').subscribe(() => {
+      this.msgSrv.success('���������������������������������������������');
+      this.modal.close(true);
+      this.close();
+    });
+  }
+
+  close() {
+    this.modal.destroy();
+  }
+}

--
Gitblit v1.8.0