From cba68e8cf8194c04a185288ccbf871deb736d939 Mon Sep 17 00:00:00 2001 From: jsy_zjg <31502350@qq.com> Date: Fri, 22 Nov 2024 11:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/system/land.js | 1 - pages/work/land/create-new.vue | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/api/system/land.js b/api/system/land.js index 45cba83..92877c3 100644 --- a/api/system/land.js +++ b/api/system/land.js @@ -3,7 +3,6 @@ import request from '@/utils/request' // 查询列表 export function getLandList(data) { - console.log(data) return request({ url: '/system/land/app/getLandList', method: 'get', diff --git a/pages/work/land/create-new.vue b/pages/work/land/create-new.vue index f1f3b7c..2f66561 100644 --- a/pages/work/land/create-new.vue +++ b/pages/work/land/create-new.vue @@ -8,7 +8,7 @@ - + @@ -180,7 +180,7 @@ //获取数据字典 this.getDictList("custom_soil_type"); this.getDictList("custom_water_source_type"); - + if (data) { if (data.companyObj) { let companyAllObj = JSON.parse(decodeURIComponent(data.companyObj)); @@ -213,7 +213,7 @@ title: "修改地块" }) } - }else{ + } else { this.getLandNum(); this.getChargeList(); } @@ -350,12 +350,12 @@ enableButterflyValve: this.landInfo.enableButterflyValve, enableAutoRefresh: this.landInfo.enableAutoRefresh, } - if(this.landInfo.id){ + if (this.landInfo.id) { landConfig.id = this.landInfo.landConfig.id; } this.landInfo.landConfig = landConfig; if (this.landInfo.id) { - + //编辑地块 store.dispatch("updateLand", this.landInfo).then(res => { plugin.modal.showToast("提交成功") @@ -381,7 +381,6 @@ store .dispatch("getLandNum") .then(res => { - console.log(res) this.landInfo.landNum = res.data.landNum this.landInfo.orderNum = res.data.orderNum })