From d31a24ca22ffc8638ca8711eb3ee1cf5bbdecf73 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 03 三月 2025 16:36:55 +0800
Subject: [PATCH] 修复新增巡查子任务时,巡查人员信息没有正确录入的问题

---
 src/api/fysp/problemApi.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/api/fysp/problemApi.js b/src/api/fysp/problemApi.js
index 9fbc690..b5ed2fb 100644
--- a/src/api/fysp/problemApi.js
+++ b/src/api/fysp/problemApi.js
@@ -15,7 +15,7 @@
 
   fetchProblemType({ cityCode, districtCode, sceneTypeId }) {
     const params = `?taskTypeId=1&cityCode=${cityCode}&districtCode=${districtCode}&sceneTypeId=${sceneTypeId}`;
-    return $fysp.get(`problemtype/search${params}`).then((res) => res);
+    return $fysp.get(`problemtype/search${params}`).then((res) => res.data);
   },
 
   /**
@@ -45,5 +45,13 @@
   // 淇敼鏁存敼
   updateChange(data) {
     return $fysp.post(`problemlist/updateChange`, data).then((res) => res) 
+  },
+  // 鏁存敼涓婁紶
+  changeProblem(data) {
+    return $fysp.post(`problemlist/changeProblem`, data).then((res) => res) 
+  },
+  // 闂鍒犻櫎
+  deleteProblem({ pid }) {
+    return $fysp.post(`problemlist/${pid}`).then((res) => res.data) 
   }
-};
+}

--
Gitblit v1.9.3