12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { Base } from '../../static/util/base.js'
- class TaskList extends Base {
- constructor() {
- super();
- }
-
- getTaskList(callBack){
- var params = {
- url: '/ah/ahZoneSampleCheck/getSampleTasksList?pageNum=1&pageSize=100',
- sCallBack: function (res) {
- callBack && callBack(res)
- }
- }
- this.serviceRequest(params);
- }
-
- getDictionary(type, callBack){
- var params = {
- url: '/ah/ahDictionary/listType?type='+type,
- sCallBack: function (res) {
- callBack && callBack(res.data)
- }
- }
- this.serviceRequest(params);
- }
-
-
- getTaskSampleDetail(taskId,callBack){
- var params = {
- url: '/ah/ahTaskDetail/list?pageNum=1&pageSize=100&taskId='+taskId,
- sCallBack: function (res) {
- callBack && callBack(res)
- }
- }
- this.serviceRequest(params);
- }
-
- }
-
- const _taskList = new TaskList();
- export { _taskList }
|