From dc4ba8076aebd30f33282121a414262b4d4919f4 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 09 九月 2024 10:40:34 +0800 Subject: [PATCH] 1. 编写设备匹配功能 --- src/api/fysp/problemApi.js | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/api/fysp/problemApi.js b/src/api/fysp/problemApi.js index 747067c..b543b7e 100644 --- a/src/api/fysp/problemApi.js +++ b/src/api/fysp/problemApi.js @@ -5,18 +5,16 @@ export default { /** - * 鑾峰彇瀛愪换鍔$粺璁′俊鎭� + * 闂瀹℃牳 * @param {Number} action 0锛氶棶棰橀�氳繃锛�1锛氶棶棰樹笉閫氳繃锛�2锛氭暣鏀归�氳繃锛�3鏁存敼涓嶉�氳繃 */ checkProblem({ pId, action, remark = '', userId = id, userName = name }) { - return $fysp - .post('problemlist/check', { - pId: pId, - action: action, - remark: remark, - userId: userId, - userName: userName, - }) - .then((res) => res.data); + 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