Browse Source

修改新增农事bug

shuhao 1 month ago
parent
commit
3a038cddd2

+ 1 - 1
src/api/modules/farm.js

@@ -78,7 +78,7 @@ module.exports = {
         type: "get",
     },
     saveFarmWork: {
-        url: config.base_dev_url + "z_farm_work_order/save?key="+config.mini_key,
+        url: config.base_url + "z_farm_work_order/save",
         type: "post",
     },
     deleteFarmWork: {

+ 1 - 6
src/api/modules/warning.js

@@ -11,13 +11,8 @@ module.exports = {
         type: "get",
     },
 
-    fetchFarmLog: {
-        url:  config.base_url + "temp_blue_region/vrOrchardContent",
-        type: "post",
-    },
-    
     transformLocation: {
         url: "/ws/geocoder/v1",
         type: "get"
     },
-}
+}

+ 1 - 1
src/views/home/index.vue

@@ -149,7 +149,7 @@ onMounted(() => {
   blueRegionLayer = new BlueRegionLayer(homeMap.kmap)
 
   getYellow()
-  getFarmLog()
+  // getFarmLog()
 
   //区域切换监听事件
   eventBus.on('area:id',areaId)

+ 0 - 7
src/views/warningHome/components/album.vue

@@ -293,12 +293,10 @@ onMounted(() => {
         farmId.value = farmIdVal;
         getFarmDetail(farmId.value);
         getFarmWorkList(farmId.value);
-        // getFarmLog()
     });
     getFarmDetail(farmId.value);
     getFarmWorkList(farmId.value);
     window.addEventListener("scroll", debouncedHandleScroll);
-    // getFarmLog()
 });
 // onActivated(() => {
 //     sampleId.value = route.query.sampleId;
@@ -318,11 +316,6 @@ onUnmounted(() => {
     window.removeEventListener("scroll", debouncedHandleScroll);
 });
 
-const getFarmLog = () => {    
-    VE_API.warning.fetchFarmLog({id: farmId.value, farmId: sampleId.value}).then(({data}) => {
-        console.log('fetchFarmLog', data);
-    })
-}
 
 // 农场详情
 const farmDetail = ref({});