From da51e7d5bbf5ff1610209510571e94d0523b515c Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 24 四月 2024 17:40:37 +0800 Subject: [PATCH] 完善自动评估模块,规范性分析报告的后台任务和结果下载逻辑 --- 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