兰宝车间质量管理系统-前端
gssong
2024-03-31 2ea1807f34479f683f4fc3691dfccf4146b94706
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { NodeConfigVO, NodeConfigForm, NodeConfigQuery } from '@/api/workflow/nodeConfig/types';
 
/**
 * 查询节点配置列表
 * @param query
 * @returns {*}
 */
 
export const listNodeConfig = (query?: NodeConfigQuery): AxiosPromise<NodeConfigVO[]> => {
  return request({
    url: '/workflow/nodeConfig/list',
    method: 'get',
    params: query
  });
};
 
/**
 * 查询节点配置详细
 * @param id
 */
export const getNodeConfig = (id: string | number): AxiosPromise<NodeConfigVO> => {
  return request({
    url: '/workflow/nodeConfig/' + id,
    method: 'get'
  });
};
 
/**
 * 新增节点配置
 * @param data
 */
export const addNodeConfig = (data: NodeConfigForm) => {
  return request({
    url: '/workflow/nodeConfig',
    method: 'post',
    data: data
  });
};
 
/**
 * 修改节点配置
 * @param data
 */
export const updateNodeConfig = (data: NodeConfigForm) => {
  return request({
    url: '/workflow/nodeConfig',
    method: 'put',
    data: data
  });
};
 
/**
 * 删除节点配置
 * @param id
 */
export const delNodeConfig = (id: string | number | Array<string | number>) => {
  return request({
    url: '/workflow/nodeConfig/' + id,
    method: 'delete'
  });
};