diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index 22930f5..0aad28c 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -141,7 +141,8 @@ export default { dataInfo: { planName: '', areas: [] - } + }, + areaRes:{} } }, @@ -195,6 +196,7 @@ export default { } const res = await GetAwaitUploadAreaApi(req) console.log(res, 'res---') + this.areaRes = res uni.showModal({ title: "开发调试查看", content: JSON.stringify(res) || "未传入参数 initFn", @@ -222,9 +224,9 @@ export default { console.log('%c%s', 'color:red', '上传图片') const params = { - planName: this.dataInfo.planName, - id: this.dataInfo.areas[this.dataInfo.areas.length - 1].id, - aeraNmae: this.dataInfo.areas[this.dataInfo.areas.length - 1].aeraNmae + planName: this.areaRes.planName, + id: this.areaRes.id, + aeraNmae: this.areaRes.name } console.log(params)