前端弹出对话框代码:
inspectionInformation(row) { this.$refs.inspectionInformationDialog.init(row); },
弹出的对话框初始信息代码:
init(row, diaType) { this.dialogSwitch = true; this.diaType = diaType; if (diaType == 'inspectionInformation') { this.layout = { title: "巡查信息", disabled: false, }; this.row = row; this.initDialogData(); } }, initDialogData() { this.DZGET(this.FACAPI.ENTITY_BASE_0300_INSPECTINFOMATION_PAGE_URL + this.row.entityId ).then(res => { if (res.code == 0) { this.formInfo = res.data; if(this.formInfo.automid!=null){ this.formInfo.automid = this.formInfo.automid + ''; } } else { this.$message.error(res.message); } }) },
后端接收数据代码:
@ApiOperation(value = "巡查信息分页查询", notes = "巡查信息分页查询") @GetMapping("/v1/inspectionInformationPageList") public R<MPage<InspectionInformationDto>> inspectionInformationPageList(MPage page, InspectionInformationDto param) { return R.success(d0300EntityBaseService.inspectionInformationPageList(page, param)); }
后端接收page对象但是页面只能传递row对象,请问怎样才能把row信息放在param里和page一起发送到后台
讲实话不太明白你的意思
let params={
page:1,
pageSize:10,
total:500,
row:{
id:"",
title:""
}
}
我大概理解你的意思 你应该是想根据行的一些相关信息 来做为基础的查询条件,来显示 相关的数据,你可以这样做:
红框内两个字段 分别是 传入参数 和传出参数
接收传入参数
传出参数