|
@@ -176,22 +176,6 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
|
|
this.subLocationVal = this.maintData.sub_location_id;
|
|
this.subLocationVal = this.maintData.sub_location_id;
|
|
|
|
|
|
this.returnEditData();
|
|
this.returnEditData();
|
|
-
|
|
|
|
-
|
|
|
|
- // this.selectedDepartments = [];
|
|
|
|
- // if(this.maintData.adminstrations.length > 0) {
|
|
|
|
- // for(let i = 0; i < this.maintData.departments.length; i++) {
|
|
|
|
- // this.selectedDepartments.push(this.maintData.departments[i]);
|
|
|
|
- // for(let j = 0; j < this.departments.length; j++) {
|
|
|
|
- // if(this.maintData.departments[i].id == this.departments[j].id) {
|
|
|
|
- // this.departments[i].selected = true;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- // console.log('selected adminstrations', this.selectedDepartments);
|
|
|
|
-
|
|
|
|
|
|
|
|
this.bindingDateSplitEnd = {
|
|
this.bindingDateSplitEnd = {
|
|
year: parseInt(this.maintData.created_date.split('-')[0]),
|
|
year: parseInt(this.maintData.created_date.split('-')[0]),
|
|
@@ -200,7 +184,7 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
|
|
}
|
|
}
|
|
|
|
|
|
this.userData = responce['communication']['user'];
|
|
this.userData = responce['communication']['user'];
|
|
- this.spinner.hide();
|
|
|
|
|
|
+
|
|
console.log('gggg', this.maintData);
|
|
console.log('gggg', this.maintData);
|
|
if(this.maintData['files'].length > 0) {
|
|
if(this.maintData['files'].length > 0) {
|
|
this.showAttachements = true;
|
|
this.showAttachements = true;
|
|
@@ -208,6 +192,7 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
|
|
this.showAttachements = false;
|
|
this.showAttachements = false;
|
|
}
|
|
}
|
|
console.log('user data ', this.userData);
|
|
console.log('user data ', this.userData);
|
|
|
|
+ this.spinner.hide();
|
|
},
|
|
},
|
|
(error) => {
|
|
(error) => {
|
|
console.log(error);
|
|
console.log(error);
|