From 54b5fa2047324b81b6d2ee7f830693267f946c0a Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 10 一月 2024 17:45:54 +0800
Subject: [PATCH] 1. 编写数据源检查模块

---
 src/api/fysp/problemApi.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/api/fysp/problemApi.js b/src/api/fysp/problemApi.js
index 5bb2b72..b543b7e 100644
--- a/src/api/fysp/problemApi.js
+++ b/src/api/fysp/problemApi.js
@@ -5,11 +5,16 @@
 
 export default {
   /**
-   * 鑾峰彇瀛愪换鍔$粺璁′俊鎭�
+   * 闂瀹℃牳
    * @param {Number} action 0锛氶棶棰橀�氳繃锛�1锛氶棶棰樹笉閫氳繃锛�2锛氭暣鏀归�氳繃锛�3鏁存敼涓嶉�氳繃
    */
   checkProblem({ pId, action, remark = '', userId = id, userName = name }) {
     const params = `?pId=${pId}&action=${action}&remark=${remark}&userId=${userId}&userName=${userName}`;
     return $fysp.post(`problemlist/check${params}`).then((res) => res.data);
   },
+
+  fetchProblemType({ cityCode, districtCode, sceneTypeId }) {
+    const params = `?taskTypeId=1&cityCode=${cityCode}&districtCode=${districtCode}&sceneTypeId=${sceneTypeId}`;
+    return $fysp.get(`problemtype/search${params}`).then((res) => res.data);
+  }
 };

--
Gitblit v1.9.3