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
})