task-list-model.js 907 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Base } from '../../static/util/base.js'
  2. class TaskList extends Base {
  3. constructor() {
  4. super();
  5. }
  6. getTaskList(callBack){
  7. var params = {
  8. url: '/ah/ahZoneSampleCheck/getSampleTasksList?pageNum=1&pageSize=100',
  9. sCallBack: function (res) {
  10. callBack && callBack(res)
  11. }
  12. }
  13. this.serviceRequest(params);
  14. }
  15. getDictionary(type, callBack){
  16. var params = {
  17. url: '/ah/ahDictionary/listType?type='+type,
  18. sCallBack: function (res) {
  19. callBack && callBack(res.data)
  20. }
  21. }
  22. this.serviceRequest(params);
  23. }
  24. getTaskSampleDetail(taskId,callBack){
  25. var params = {
  26. url: '/ah/ahTaskDetail/list?pageNum=1&pageSize=100&taskId='+taskId,
  27. sCallBack: function (res) {
  28. callBack && callBack(res)
  29. }
  30. }
  31. this.serviceRequest(params);
  32. }
  33. }
  34. const _taskList = new TaskList();
  35. export { _taskList }