INNER CODE UNIT · TypeScript

task_modelview_add

data-infra/cube-studio · myapp/vision/src/api/index.ts:79

const task_modelview_add = (pipelineId: number | string, data: ITaskAdd): Promise<any> => {
  return ajax.post({
    url: '/task_modelview/api/',
    data: {
      ...data,
      filters: [
        {
          col: 'pipeline',
          opr: 'rel_o_m',
          value: +pipelineId,
        },
      ],
    },
  });
};

// 获取流水线中相应的task
const task_modelview_get = (taskId: string | number): Promise<any> => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…