Commit a7dbdd7a by niuxiaolin

添加address

parent c6274866
......@@ -45,9 +45,11 @@ export class CheckAddComponent implements OnInit {
.getCurrentPosition()
.then((res: PositionOptions) => {
console.log(res);// res.address 为位置信息
this.address=res.address;
})
.catch(error => console.error(error));
}
address:string;
registerForm: FormGroup;
submit: any = { checkPlanAssetList: [] };
inventoryType = ["资产明细盘点", "资产范围盘点"];
......@@ -209,7 +211,7 @@ export class CheckAddComponent implements OnInit {
// result.checkPlanAssetList = [this.detail];
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(',');
this.api.addCheckPlan(result).subscribe(data => {
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