minor changes
This commit is contained in:
parent
bfcb178c25
commit
115c298da2
|
@ -133,6 +133,10 @@ myFunction() {
|
||||||
SaveNewDmp(){
|
SaveNewDmp(){
|
||||||
console.log(this.dmp, this.dmp.projectsDropDownKey); debugger;
|
console.log(this.dmp, this.dmp.projectsDropDownKey); debugger;
|
||||||
//this.http.post('http://someurl', JSON.stringify(this.project))
|
//this.http.post('http://someurl', JSON.stringify(this.project))
|
||||||
|
|
||||||
|
this.dmp.project = {"id":this.dmp.project};
|
||||||
|
this.dmp["version"] = 1;
|
||||||
|
|
||||||
this.serverService.createDmpForProject(this.dmp)
|
this.serverService.createDmpForProject(this.dmp)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
response =>{
|
response =>{
|
||||||
|
|
|
@ -104,15 +104,9 @@ export class ServerService {
|
||||||
return this.restBase.get("dmp/getofuser");
|
return this.restBase.get("dmp/getofuser");
|
||||||
}
|
}
|
||||||
|
|
||||||
public createDmpForProject2(data:any, projectid: string){
|
|
||||||
//return this.restBase.post("dmp/createforproject", data);
|
|
||||||
return this.restBase.post('dmp/create', data,
|
|
||||||
{"id":projectid}
|
|
||||||
//new HttpParams().set('id', projectid)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
public createDmpForProject(data:any){
|
public createDmpForProject(data:any){
|
||||||
|
debugger;
|
||||||
return this.restBase.post("dmp/create", data);
|
return this.restBase.post("dmp/create", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue