schangxiang@126.com
2024-08-16 65bd2dc1d4c1fb136af853c7ede93a338431be29
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
 
export class Condition {
  index
  costom
  field
  operator
  value
  type
}
export class ConditionFlowNode {
  constructor({ label, nodeId, conditions, type, source, target }) {
    this.label = label
    this.nodeId = nodeId
    this.type = type
    this.source = source
    this.target = target
    this.conditions = conditions
  }
}
export function createconditionFlowNode(Data) {
  return new ConditionFlowNode({
    label: Data.label,
    nodeId: Data.nodeId,
    conditions: Data.conditions,
    type: Data.type,
    source: Data.source,
    target: Data.target
  })
}
 
export function createconditionFlowNodeDetail(nodeid, source, target) {
  return new ConditionFlowNode({
    label: '',
    nodeId: nodeid,
    type: '条件',
    source: source,
    target: target,
    conditions: []
  })
}