From 6f3fac4493995e16ee0f37c6cf2b06e5de2a6a72 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 02 七月 2025 16:27:37 +0800
Subject: [PATCH] 1. 将场景图片的分类修改为从服务端动态获取; 2. 问题整改节目中的问题复现功能修改为可拖动对话框且移除背景模态框;

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