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