index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /** 上传图片 */
  4. export const UploadZxFile = `${REQUEST_CONFIG.BASE_URL}upload/uploadZxFile.do`;
  5. /** 问卷任务-查询由渠道任务发布的满意度调查问卷列表 */
  6. export const QuerySubjectListToChannelTask_V3 = async (queryData) => {
  7. let resp = handle.promistHandle(
  8. await request.doPost(
  9. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectListToChannelTask/callApiJSON.do`,
  10. queryData
  11. )
  12. );
  13. return handle.catchPromise(resp, () => resp);
  14. };
  15. /** 问卷详情 */
  16. export const QuerySubjectInfoById_V3 = async (queryData) => {
  17. let resp = handle.promistHandle(
  18. await request.doPost(
  19. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectInfoById/callApiJSON.do`,
  20. queryData
  21. )
  22. );
  23. return handle.catchPromise(resp, () => resp);
  24. };
  25. /** 提交答案 */
  26. export const CommitAnswer_V3 = async (queryData) => {
  27. let resp = handle.promistHandle(
  28. await request.doPost(
  29. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/CommitAnswer_V3/callApiJSON.do`,
  30. queryData
  31. )
  32. );
  33. return handle.catchPromise(resp, () => resp);
  34. };