Commit a7dbdd7a by niuxiaolin

添加address

parent c6274866
...@@ -45,9 +45,11 @@ export class CheckAddComponent implements OnInit { ...@@ -45,9 +45,11 @@ export class CheckAddComponent implements OnInit {
.getCurrentPosition() .getCurrentPosition()
.then((res: PositionOptions) => { .then((res: PositionOptions) => {
console.log(res);// res.address 为位置信息 console.log(res);// res.address 为位置信息
this.address=res.address;
}) })
.catch(error => console.error(error)); .catch(error => console.error(error));
} }
address:string;
registerForm: FormGroup; registerForm: FormGroup;
submit: any = { checkPlanAssetList: [] }; submit: any = { checkPlanAssetList: [] };
inventoryType = ["资产明细盘点", "资产范围盘点"]; inventoryType = ["资产明细盘点", "资产范围盘点"];
...@@ -209,7 +211,7 @@ export class CheckAddComponent implements OnInit { ...@@ -209,7 +211,7 @@ export class CheckAddComponent implements OnInit {
// result.checkPlanAssetList = [this.detail]; // result.checkPlanAssetList = [this.detail];
console.log(this.registerForm.value); console.log(this.registerForm.value);
var result = {id:this.registerForm.value.id,remarks:this.registerForm.value.remarks,checkSta:this.registerForm.value.checkSta,checkAnnex:""} var result = {address:this.address,id:this.registerForm.value.id,remarks:this.registerForm.value.remarks,checkSta:this.registerForm.value.checkSta,checkAnnex:""}
result.checkAnnex = this.fileStrs.join(','); result.checkAnnex = this.fileStrs.join(',');
this.api.addCheckPlan(result).subscribe(data => { this.api.addCheckPlan(result).subscribe(data => {
if (!data.success) { if (!data.success) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment