riku
2024-04-25 743044407e35a10ff824ef18cb883ac2b66e2d12
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}`);
    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);
  }
};