summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/test
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-29 18:43:08 +0800
committerxu ran <xuranyjy@chinamobile.com>2019-08-30 02:20:49 +0000
commit0c1e82ccbfa6dcb8ee5d11220a93fefc61465374 (patch)
treedbd894bc5909df38bde9a2738e366d7913627195 /usecaseui-portal/src/app/test
parentcbb4b91ad39b44a76d1b1d4b745ef2b38fab74ce (diff)
feat: change the mock data path config file
Change-Id: I5ca301d8ff0b084f64366312543c9036d8e76de8 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/test')
-rw-r--r--usecaseui-portal/src/app/test/test.component.html2
-rw-r--r--usecaseui-portal/src/app/test/test.component.ts15
2 files changed, 15 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/test/test.component.html b/usecaseui-portal/src/app/test/test.component.html
index 200be4e6..6dbca0a9 100644
--- a/usecaseui-portal/src/app/test/test.component.html
+++ b/usecaseui-portal/src/app/test/test.component.html
@@ -15,7 +15,7 @@
<td>{{data.phone}}</td>
<td>{{data.address}}</td>
<td>
- <a>Action δΈ€ {{data.name}}</a>
+ <a>Action</a>
<nz-divider nzType="vertical"></nz-divider>
<a>Delete</a>
</td>
diff --git a/usecaseui-portal/src/app/test/test.component.ts b/usecaseui-portal/src/app/test/test.component.ts
index 30fdedc7..e217919f 100644
--- a/usecaseui-portal/src/app/test/test.component.ts
+++ b/usecaseui-portal/src/app/test/test.component.ts
@@ -15,6 +15,8 @@ export class TestComponent implements OnInit {
ngOnInit() {
this.getMockData();
this.getjsonData();
+ this.getCurrentLanguage();
+ this.createPostData();
}
tableData = []
@@ -25,10 +27,21 @@ export class TestComponent implements OnInit {
})
}
getjsonData() {
- this.TextService.getjsonData().subscribe(res => {
+ this.TextService.getjsonData("xuran").subscribe(res => {
console.log(res, "======json data")
})
}
+ getCurrentLanguage() {
+ this.TextService.getCurrentLanguage(10).subscribe(res => {
+ console.log(res, "======> current language")
+ })
+ }
+ createPostData() {
+ this.TextService.getCreatensData("/upload/name", { user: "xuran" }).subscribe(res => {
+ console.log(res, "======> post data")
+ })
+ }
+
}