|
|
@ -48,6 +48,7 @@ export class CmsContentEditComponent implements OnInit { |
|
|
|
recommend: [null], |
|
|
|
recommend: [null], |
|
|
|
description: [null, [Validators.required]], |
|
|
|
description: [null, [Validators.required]], |
|
|
|
ext1: [null], |
|
|
|
ext1: [null], |
|
|
|
|
|
|
|
jumpType: [null], |
|
|
|
sortId: [null, [Validators.required]], |
|
|
|
sortId: [null, [Validators.required]], |
|
|
|
content: [null], |
|
|
|
content: [null], |
|
|
|
tag: [null], |
|
|
|
tag: [null], |
|
|
@ -73,6 +74,7 @@ export class CmsContentEditComponent implements OnInit { |
|
|
|
findContentView(id) { |
|
|
|
findContentView(id) { |
|
|
|
this.http.get(this.WEB_SERVE_URL + '/cmsContent/getContentById?id=' + id).subscribe(data => { |
|
|
|
this.http.get(this.WEB_SERVE_URL + '/cmsContent/getContentById?id=' + id).subscribe(data => { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
data['return_data'].jumpType = String(data['return_data'].jumpType); |
|
|
|
this.cmsContentView = data['return_data']; |
|
|
|
this.cmsContentView = data['return_data']; |
|
|
|
this.listImg = data['return_data'].imgData; |
|
|
|
this.listImg = data['return_data'].imgData; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|