mockJson.ts 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399
  1. export const data0 = {
  2. envVars: [
  3. {
  4. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  5. type: 'String',
  6. source: 'env',
  7. label: 'env----1',
  8. key: 'asd',
  9. value: '32113123213',
  10. },
  11. {
  12. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  13. type: 'Number',
  14. source: 'env',
  15. label: 'ewqe',
  16. key: 'e123',
  17. value: 12312312,
  18. },
  19. {
  20. id: '7af14f11-0e44-4ed7-aabc-00e0d11b640b',
  21. type: 'String',
  22. source: 'env',
  23. label: '124214',
  24. key: '425',
  25. value: 'cascasca',
  26. },
  27. {
  28. id: '3501737e-c792-4d77-a821-eb70f2287c3e',
  29. type: 'Number',
  30. source: 'env',
  31. label: '1251',
  32. key: 'rsd',
  33. value: 1231,
  34. },
  35. ],
  36. graph: {
  37. nodes: [
  38. {
  39. id: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  40. x: -470,
  41. y: -40,
  42. data: {
  43. id: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  44. title: '开始',
  45. desc: '',
  46. __outVars: [
  47. {
  48. label: '输入参数1',
  49. key: 'ppp1',
  50. type: 'String',
  51. length: '20',
  52. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  53. },
  54. {
  55. label:
  56. 'w213123sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss',
  57. key: '3434',
  58. type: 'Number',
  59. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  60. },
  61. {
  62. label: '4',
  63. key: '4',
  64. type: 'String',
  65. length: '24',
  66. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  67. },
  68. {
  69. label: '2414',
  70. key: 'r3423',
  71. type: 'Number',
  72. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  73. },
  74. ],
  75. type: 'root',
  76. __sysVars: [
  77. {
  78. label: '查询内容',
  79. key: 'sys.query',
  80. type: 'String',
  81. source: 'root',
  82. },
  83. {
  84. label: '用户ID',
  85. key: 'sys.user_id',
  86. type: 'String',
  87. source: 'root',
  88. },
  89. ],
  90. },
  91. },
  92. {
  93. id: 'c3187871-987e-46fc-98e1-40946577a8f3',
  94. x: -860,
  95. y: 510,
  96. data: {
  97. id: 'c3187871-987e-46fc-98e1-40946577a8f3',
  98. title: '条件分支',
  99. desc: '各种判断',
  100. ports: [
  101. {
  102. id: '17f331e3-adcd-42f6-b4b8-25806d7d8bad',
  103. mode: 'and',
  104. cases: [
  105. {
  106. id: '5cc80ce1-eab9-4549-8aef-c3ebf3f6883a',
  107. source: {
  108. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  109. type: 'String',
  110. source: 'env',
  111. label: 'env----1',
  112. key: 'asd',
  113. },
  114. method: 'includes',
  115. type: 'constant',
  116. target: 'asdasd',
  117. },
  118. {
  119. id: 'c93d4514-cede-4361-a6c7-dcc1a2f34fdb',
  120. source: {
  121. label: '输入参数1',
  122. key: 'ppp1',
  123. type: 'String',
  124. length: '20',
  125. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  126. },
  127. method: 'end with',
  128. type: 'constant',
  129. target: 'casc',
  130. },
  131. {
  132. id: '0064d690-3e39-4d68-a60d-dd53244ce41a',
  133. source: {
  134. label: '查询内容',
  135. key: 'sys.query',
  136. type: 'String',
  137. source: 'root',
  138. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  139. },
  140. method: 'not equals',
  141. type: 'constant',
  142. target: 'asfasf',
  143. },
  144. {
  145. id: 'fbdc23c5-4564-4d8a-9572-03e7059fe856',
  146. source: {
  147. label: '输入参数1',
  148. key: 'ppp1',
  149. type: 'String',
  150. length: '20',
  151. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  152. },
  153. method: 'includes',
  154. type: 'variable',
  155. target: {
  156. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  157. type: 'String',
  158. source: 'env',
  159. label: 'env----1',
  160. key: 'asd',
  161. },
  162. },
  163. ],
  164. },
  165. {
  166. id: '49d72236-24e6-488a-8f3e-d430b687129d',
  167. mode: 'and',
  168. cases: [],
  169. },
  170. {
  171. id: '11f7d4bc-1bfd-4593-b300-28694b920d58',
  172. mode: 'and',
  173. cases: [
  174. {
  175. id: 'ac081f15-7237-448c-8565-32912ad0d488',
  176. source: {
  177. label: '查询内容',
  178. key: 'sys.query',
  179. type: 'String',
  180. source: 'root',
  181. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  182. },
  183. method: 'empty',
  184. type: 'constant',
  185. target: '',
  186. },
  187. {
  188. id: '387345db-2147-46be-b728-5e768130e458',
  189. source: {
  190. label: '2414',
  191. key: 'r3423',
  192. type: 'Number',
  193. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  194. },
  195. method: 'empty',
  196. type: 'constant',
  197. target: '',
  198. },
  199. {
  200. id: '53a9ad75-8737-4323-887c-937e477249ef',
  201. source: {
  202. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  203. type: 'String',
  204. source: 'env',
  205. label: 'env----1',
  206. key: 'asd',
  207. },
  208. method: 'not empty',
  209. type: 'constant',
  210. target: '',
  211. },
  212. ],
  213. },
  214. {
  215. id: 'b712fcdc-247c-4705-a22e-205728109f61',
  216. mode: 'and',
  217. cases: [
  218. {
  219. id: '95444d9d-7087-482c-9d36-16c7c54e8c78',
  220. source: {
  221. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  222. type: 'Number',
  223. source: 'env',
  224. label: 'ewqe',
  225. key: 'e123',
  226. },
  227. method: '=',
  228. type: 'constant',
  229. target: 233,
  230. },
  231. {
  232. id: 'a2e604b4-8b4f-4d8f-a50f-445266ffa6b9',
  233. source: {
  234. label: '用户ID',
  235. key: 'sys.user_id',
  236. type: 'String',
  237. source: 'root',
  238. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  239. },
  240. method: 'includes',
  241. type: 'variable',
  242. target: {
  243. id: '7af14f11-0e44-4ed7-aabc-00e0d11b640b',
  244. type: 'String',
  245. source: 'env',
  246. label: '124214',
  247. key: '425',
  248. },
  249. },
  250. ],
  251. },
  252. {
  253. id: '99d376e3-2033-4165-afdf-1f0ec3307a8b',
  254. mode: 'and',
  255. cases: [],
  256. },
  257. {
  258. id: 'f14f5500-4dd3-4b2e-a5bf-d5fc4d2202e0',
  259. mode: 'and',
  260. cases: [
  261. {
  262. id: '44599635-506c-484a-9112-a53e95289170',
  263. source: {
  264. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  265. type: 'Number',
  266. source: 'env',
  267. label: 'ewqe',
  268. key: 'e123',
  269. },
  270. method: '=',
  271. type: 'constant',
  272. target: '',
  273. },
  274. ],
  275. },
  276. {
  277. id: 'a31bf48b-2f82-4a0a-af41-24076fc170a0',
  278. isElse: true,
  279. },
  280. ],
  281. type: 'if-else',
  282. },
  283. },
  284. {
  285. id: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  286. x: -134,
  287. y: 60,
  288. data: {
  289. id: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  290. title: '测试节点',
  291. desc: '',
  292. __outVars: [
  293. {
  294. label: '参数1',
  295. key: 'param1',
  296. type: 'String',
  297. },
  298. {
  299. label: '参数2',
  300. key: 'param2',
  301. type: 'Number',
  302. },
  303. ],
  304. type: 'test',
  305. },
  306. },
  307. {
  308. id: '01ce0ef3-13dd-41b4-9995-d40ee232801e',
  309. x: -134,
  310. y: 210,
  311. data: {
  312. id: '01ce0ef3-13dd-41b4-9995-d40ee232801e',
  313. title: '测试节点',
  314. desc: '',
  315. __outVars: [
  316. {
  317. label: '参数1',
  318. key: 'param1',
  319. type: 'String',
  320. },
  321. {
  322. label: '参数2',
  323. key: 'param2',
  324. type: 'Number',
  325. },
  326. ],
  327. type: 'test',
  328. },
  329. },
  330. {
  331. id: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  332. x: -134,
  333. y: 360,
  334. data: {
  335. id: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  336. title: '测试节点',
  337. desc: '副标题',
  338. __outVars: [
  339. {
  340. label: '参数1',
  341. key: 'param1',
  342. type: 'String',
  343. nodeId: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  344. },
  345. {
  346. label: '参数2',
  347. key: 'param2',
  348. type: 'Number',
  349. nodeId: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  350. },
  351. ],
  352. type: 'test',
  353. },
  354. },
  355. {
  356. id: '7cd1a345-d326-4bde-bb9d-81eb8d884777',
  357. x: -104,
  358. y: 490,
  359. data: {
  360. id: '7cd1a345-d326-4bde-bb9d-81eb8d884777',
  361. title: '测试节点',
  362. desc: '',
  363. __outVars: [
  364. {
  365. label: '参数1',
  366. key: 'param1',
  367. type: 'String',
  368. },
  369. {
  370. label: '参数2',
  371. key: 'param2',
  372. type: 'Number',
  373. },
  374. ],
  375. type: 'test',
  376. },
  377. },
  378. {
  379. id: '123',
  380. x: -304,
  381. y: 490,
  382. data: {
  383. id: '123',
  384. title: '测试节点123',
  385. desc: '',
  386. __outVars: [
  387. {
  388. label: '参数1',
  389. key: 'param1',
  390. type: 'String',
  391. },
  392. {
  393. label: '参数2',
  394. key: 'param2',
  395. type: 'Number',
  396. },
  397. ],
  398. type: 'test',
  399. },
  400. },
  401. {
  402. id: '06cf0d93-262e-488d-803b-c4e45cc50b2c',
  403. x: -74,
  404. y: 650,
  405. data: {
  406. id: '06cf0d93-262e-488d-803b-c4e45cc50b2c',
  407. title: '测试节点',
  408. desc: '',
  409. __outVars: [
  410. {
  411. label: '参数1',
  412. key: 'param1',
  413. type: 'String',
  414. },
  415. {
  416. label: '参数2',
  417. key: 'param2',
  418. type: 'Number',
  419. },
  420. ],
  421. type: 'test',
  422. },
  423. },
  424. {
  425. id: '1402df48-f7af-4669-a105-9d649eab31e5',
  426. x: -134,
  427. y: 810,
  428. data: {
  429. id: '1402df48-f7af-4669-a105-9d649eab31e5',
  430. title: '测试节点',
  431. desc: '',
  432. __outVars: [
  433. {
  434. label: '参数1',
  435. key: 'param1',
  436. type: 'String',
  437. },
  438. {
  439. label: '参数2',
  440. key: 'param2',
  441. type: 'Number',
  442. },
  443. ],
  444. type: 'test',
  445. },
  446. },
  447. {
  448. id: '4c6c1fc8-61a9-440b-aae5-72d0520639cf',
  449. x: 230,
  450. y: -30,
  451. data: {
  452. id: '4c6c1fc8-61a9-440b-aae5-72d0520639cf',
  453. title: '测试节点',
  454. desc: '',
  455. __outVars: [
  456. {
  457. label: '参数1',
  458. key: 'param1',
  459. type: 'String',
  460. },
  461. {
  462. label: '参数2',
  463. key: 'param2',
  464. type: 'Number',
  465. },
  466. ],
  467. type: 'test',
  468. },
  469. },
  470. {
  471. id: '75619758-a5f1-4894-bb17-f2ffb9c7a4d8',
  472. x: 392,
  473. y: 60,
  474. data: {
  475. id: '75619758-a5f1-4894-bb17-f2ffb9c7a4d8',
  476. title: '测试节点',
  477. desc: '',
  478. __outVars: [
  479. {
  480. label: '参数1',
  481. key: 'param1',
  482. type: 'String',
  483. },
  484. {
  485. label: '参数2',
  486. key: 'param2',
  487. type: 'Number',
  488. },
  489. ],
  490. type: 'test',
  491. },
  492. },
  493. {
  494. id: '2003fab1-4747-4424-ac30-a261971131f5',
  495. x: 466,
  496. y: 160,
  497. data: {
  498. id: '2003fab1-4747-4424-ac30-a261971131f5',
  499. title: '测试节点',
  500. desc: '',
  501. __outVars: [
  502. {
  503. label: '参数1',
  504. key: 'param1',
  505. type: 'String',
  506. },
  507. {
  508. label: '参数2',
  509. key: 'param2',
  510. type: 'Number',
  511. },
  512. ],
  513. type: 'test',
  514. },
  515. },
  516. {
  517. id: 'f88b00f3-22e2-4712-b979-b03554ff1173',
  518. x: 410,
  519. y: 440,
  520. data: {
  521. id: 'f88b00f3-22e2-4712-b979-b03554ff1173',
  522. title: '测试节点',
  523. desc: '',
  524. __outVars: [
  525. {
  526. label: '参数1',
  527. key: 'param1',
  528. type: 'String',
  529. },
  530. {
  531. label: '参数2',
  532. key: 'param2',
  533. type: 'Number',
  534. },
  535. ],
  536. type: 'test',
  537. },
  538. },
  539. {
  540. id: '8746b00b-c1b3-41e0-9b1c-4c57f9e19b5b',
  541. x: 422,
  542. y: 610,
  543. data: {
  544. id: '8746b00b-c1b3-41e0-9b1c-4c57f9e19b5b',
  545. title: '测试节点',
  546. desc: '',
  547. __outVars: [
  548. {
  549. label: '参数1',
  550. key: 'param1',
  551. type: 'String',
  552. },
  553. {
  554. label: '参数2',
  555. key: 'param2',
  556. type: 'Number',
  557. },
  558. ],
  559. type: 'test',
  560. },
  561. },
  562. {
  563. id: '3ae80188-4daf-4914-8b38-27786abe9031',
  564. x: 438,
  565. y: 250,
  566. data: {
  567. id: '3ae80188-4daf-4914-8b38-27786abe9031',
  568. title: '测试节点',
  569. desc: '',
  570. __outVars: [
  571. {
  572. label: '参数1',
  573. key: 'param1',
  574. type: 'String',
  575. nodeId: '3ae80188-4daf-4914-8b38-27786abe9031',
  576. },
  577. {
  578. label: '参数2',
  579. key: 'param2',
  580. type: 'Number',
  581. nodeId: '3ae80188-4daf-4914-8b38-27786abe9031',
  582. },
  583. ],
  584. type: 'test',
  585. },
  586. },
  587. {
  588. id: 'cf5e5e34-7bef-4dc8-a9bd-842d2f3bab70',
  589. x: 450,
  590. y: 320,
  591. data: {
  592. id: 'cf5e5e34-7bef-4dc8-a9bd-842d2f3bab70',
  593. title: '测试节点',
  594. desc: '',
  595. __outVars: [
  596. {
  597. label: '参数1',
  598. key: 'param1',
  599. type: 'String',
  600. },
  601. {
  602. label: '参数2',
  603. key: 'param2',
  604. type: 'Number',
  605. },
  606. ],
  607. type: 'test',
  608. },
  609. },
  610. {
  611. id: '8662c97f-615c-4a31-8de2-173dcfbce7e2',
  612. x: 92,
  613. y: -200,
  614. data: {
  615. id: '8662c97f-615c-4a31-8de2-173dcfbce7e2',
  616. title: '测试节点',
  617. desc: '',
  618. __outVars: [
  619. {
  620. label: '参数1',
  621. key: 'param1',
  622. type: 'String',
  623. },
  624. {
  625. label: '参数2',
  626. key: 'param2',
  627. type: 'Number',
  628. },
  629. ],
  630. type: 'test',
  631. },
  632. },
  633. {
  634. id: 'ee9a4b52-3a9c-4127-84f2-ac5dadfd4876',
  635. x: 392,
  636. y: 770,
  637. data: {
  638. id: 'ee9a4b52-3a9c-4127-84f2-ac5dadfd4876',
  639. title: '测试节点',
  640. desc: '',
  641. __outVars: [
  642. {
  643. label: '参数1',
  644. key: 'param1',
  645. type: 'String',
  646. },
  647. {
  648. label: '参数2',
  649. key: 'param2',
  650. type: 'Number',
  651. },
  652. ],
  653. type: 'test',
  654. },
  655. },
  656. {
  657. id: 'a84c8867-50a5-4494-b138-02e00e4ef50c',
  658. x: 674,
  659. y: 930,
  660. data: {
  661. id: 'a84c8867-50a5-4494-b138-02e00e4ef50c',
  662. title: '测试节点',
  663. desc: '',
  664. __outVars: [
  665. {
  666. label: '参数1',
  667. key: 'param1',
  668. type: 'String',
  669. },
  670. {
  671. label: '参数2',
  672. key: 'param2',
  673. type: 'Number',
  674. },
  675. ],
  676. type: 'test',
  677. },
  678. },
  679. {
  680. id: 'ef197c14-1661-465a-a8c6-b9e184a9d2f6',
  681. x: 230,
  682. y: 970,
  683. data: {
  684. id: 'ef197c14-1661-465a-a8c6-b9e184a9d2f6',
  685. title: '测试节点',
  686. desc: '',
  687. __outVars: [
  688. {
  689. label: '参数1',
  690. key: 'param1',
  691. type: 'String',
  692. },
  693. {
  694. label: '参数2',
  695. key: 'param2',
  696. type: 'Number',
  697. },
  698. ],
  699. type: 'test',
  700. },
  701. },
  702. {
  703. id: '7b96e828-053c-4515-985d-639bc692f1ba',
  704. x: 628,
  705. y: -200,
  706. data: {
  707. id: '7b96e828-053c-4515-985d-639bc692f1ba',
  708. title: '测试节点',
  709. desc: '',
  710. __outVars: [
  711. {
  712. label: '参数1',
  713. key: 'param1',
  714. type: 'String',
  715. },
  716. {
  717. label: '参数2',
  718. key: 'param2',
  719. type: 'Number',
  720. },
  721. ],
  722. type: 'test',
  723. },
  724. },
  725. {
  726. id: '260d696e-c8ef-4bd1-be21-b7e6d1c280e2',
  727. x: 720,
  728. y: -70,
  729. data: {
  730. id: '260d696e-c8ef-4bd1-be21-b7e6d1c280e2',
  731. title: '测试节点',
  732. desc: '',
  733. __outVars: [
  734. {
  735. label: '参数1',
  736. key: 'param1',
  737. type: 'String',
  738. },
  739. {
  740. label: '参数2',
  741. key: 'param2',
  742. type: 'Number',
  743. },
  744. ],
  745. type: 'test',
  746. },
  747. },
  748. {
  749. id: '3d5addb1-ce96-4095-b7c9-e460ba7b21f1',
  750. x: 880,
  751. y: 80,
  752. data: {
  753. id: '3d5addb1-ce96-4095-b7c9-e460ba7b21f1',
  754. title: '测试节点',
  755. desc: '',
  756. __outVars: [
  757. {
  758. label: '参数1',
  759. key: 'param1',
  760. type: 'String',
  761. },
  762. {
  763. label: '参数2',
  764. key: 'param2',
  765. type: 'Number',
  766. },
  767. ],
  768. type: 'test',
  769. },
  770. },
  771. {
  772. id: '85a8702c-1dd8-4c85-938f-73d4337c2ce0',
  773. x: 830,
  774. y: 230,
  775. data: {
  776. id: '85a8702c-1dd8-4c85-938f-73d4337c2ce0',
  777. title: '测试节点',
  778. desc: '',
  779. __outVars: [
  780. {
  781. label: '参数1',
  782. key: 'param1',
  783. type: 'String',
  784. },
  785. {
  786. label: '参数2',
  787. key: 'param2',
  788. type: 'Number',
  789. },
  790. ],
  791. type: 'test',
  792. },
  793. },
  794. {
  795. id: 'cb662c40-1794-4d17-9fa7-7313f60c1a0e',
  796. x: 944,
  797. y: 360,
  798. data: {
  799. id: 'cb662c40-1794-4d17-9fa7-7313f60c1a0e',
  800. title: '测试节点',
  801. desc: '',
  802. __outVars: [
  803. {
  804. label: '参数1',
  805. key: 'param1',
  806. type: 'String',
  807. },
  808. {
  809. label: '参数2',
  810. key: 'param2',
  811. type: 'Number',
  812. },
  813. ],
  814. type: 'test',
  815. },
  816. },
  817. {
  818. id: 'c4d990fa-533d-46ab-8474-f97098baa639',
  819. x: 956,
  820. y: 490,
  821. data: {
  822. id: 'c4d990fa-533d-46ab-8474-f97098baa639',
  823. title: '直接回复',
  824. desc: '',
  825. type: 'answer',
  826. },
  827. },
  828. {
  829. id: 'dc2b0be1-e861-4e16-8d7e-eba5a713235c',
  830. x: 920,
  831. y: 620,
  832. data: {
  833. id: 'dc2b0be1-e861-4e16-8d7e-eba5a713235c',
  834. title: '直接回复',
  835. desc: '',
  836. type: 'answer',
  837. },
  838. },
  839. {
  840. id: '1e59d45d-2650-40a7-af0e-b56547427376',
  841. x: 830,
  842. y: 792,
  843. data: {
  844. id: '1e59d45d-2650-40a7-af0e-b56547427376',
  845. title: '直接回复',
  846. desc: '',
  847. type: 'answer',
  848. },
  849. },
  850. {
  851. id: 'ab97d57a-5895-45ad-a931-5a115c793b00',
  852. x: 500,
  853. y: -380,
  854. data: {
  855. id: 'ab97d57a-5895-45ad-a931-5a115c793b00',
  856. title: '直接回复',
  857. desc: '',
  858. type: 'answer',
  859. },
  860. },
  861. {
  862. id: '18202e3a-43f7-47bd-9c4d-4bcc8b974aed',
  863. x: -434,
  864. y: 429,
  865. data: {
  866. id: '18202e3a-43f7-47bd-9c4d-4bcc8b974aed',
  867. title: '直接回复',
  868. desc: '',
  869. type: 'answer',
  870. },
  871. },
  872. {
  873. id: '0df2bc7c-7616-42d3-ad92-e72dfede22ce',
  874. x: -434,
  875. y: 529,
  876. data: {
  877. id: '0df2bc7c-7616-42d3-ad92-e72dfede22ce',
  878. title: '直接回复',
  879. desc: '',
  880. type: 'answer',
  881. },
  882. },
  883. {
  884. id: '0c2f8b8d-1a62-43a5-9142-2b39615c02f6',
  885. x: -414,
  886. y: 620,
  887. data: {
  888. id: '0c2f8b8d-1a62-43a5-9142-2b39615c02f6',
  889. title: '直接回复',
  890. desc: '',
  891. type: 'answer',
  892. },
  893. },
  894. {
  895. id: '93e44df4-dc00-47f2-90aa-3c4848975a09',
  896. x: -444,
  897. y: 720,
  898. data: {
  899. id: '93e44df4-dc00-47f2-90aa-3c4848975a09',
  900. title: '直接回复',
  901. desc: '',
  902. type: 'answer',
  903. },
  904. },
  905. {
  906. id: '6bc7f1a1-efdd-4958-84c7-b31a60ee6796',
  907. x: -470,
  908. y: 920,
  909. data: {
  910. id: '6bc7f1a1-efdd-4958-84c7-b31a60ee6796',
  911. title: '测试节点',
  912. desc: '',
  913. __outVars: [
  914. {
  915. label: '参数1',
  916. key: 'param1',
  917. type: 'String',
  918. },
  919. {
  920. label: '参数2',
  921. key: 'param2',
  922. type: 'Number',
  923. },
  924. ],
  925. type: 'test',
  926. },
  927. },
  928. ],
  929. edges: [
  930. {
  931. target: 'c3187871-987e-46fc-98e1-40946577a8f3',
  932. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  933. },
  934. {
  935. target: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  936. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  937. },
  938. {
  939. target: '01ce0ef3-13dd-41b4-9995-d40ee232801e',
  940. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  941. },
  942. {
  943. target: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  944. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  945. },
  946. {
  947. target: '7cd1a345-d326-4bde-bb9d-81eb8d884777',
  948. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  949. },
  950. {
  951. target: '123',
  952. source: '7cd1a345-d326-4bde-bb9d-81eb8d884777',
  953. },
  954. {
  955. target: '06cf0d93-262e-488d-803b-c4e45cc50b2c',
  956. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  957. },
  958. {
  959. target: '1402df48-f7af-4669-a105-9d649eab31e5',
  960. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  961. },
  962. {
  963. target: '4c6c1fc8-61a9-440b-aae5-72d0520639cf',
  964. source: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  965. },
  966. {
  967. target: '75619758-a5f1-4894-bb17-f2ffb9c7a4d8',
  968. source: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  969. },
  970. {
  971. target: '2003fab1-4747-4424-ac30-a261971131f5',
  972. source: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  973. },
  974. {
  975. target: 'f88b00f3-22e2-4712-b979-b03554ff1173',
  976. source: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  977. },
  978. {
  979. target: '8746b00b-c1b3-41e0-9b1c-4c57f9e19b5b',
  980. source: '0948a3c4-76f6-4282-9a3a-e83fd7a3c957',
  981. },
  982. {
  983. target: '3ae80188-4daf-4914-8b38-27786abe9031',
  984. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  985. },
  986. {
  987. target: 'cf5e5e34-7bef-4dc8-a9bd-842d2f3bab70',
  988. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  989. },
  990. {
  991. target: '8662c97f-615c-4a31-8de2-173dcfbce7e2',
  992. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  993. },
  994. {
  995. target: 'ee9a4b52-3a9c-4127-84f2-ac5dadfd4876',
  996. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  997. },
  998. {
  999. target: 'a84c8867-50a5-4494-b138-02e00e4ef50c',
  1000. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  1001. },
  1002. {
  1003. target: 'ef197c14-1661-465a-a8c6-b9e184a9d2f6',
  1004. source: '05f487b0-30e9-4c4a-92d1-bd24076bac04',
  1005. },
  1006. {
  1007. target: '7b96e828-053c-4515-985d-639bc692f1ba',
  1008. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1009. },
  1010. {
  1011. target: '260d696e-c8ef-4bd1-be21-b7e6d1c280e2',
  1012. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1013. },
  1014. {
  1015. target: '3d5addb1-ce96-4095-b7c9-e460ba7b21f1',
  1016. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1017. },
  1018. {
  1019. target: '85a8702c-1dd8-4c85-938f-73d4337c2ce0',
  1020. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1021. },
  1022. {
  1023. target: 'cb662c40-1794-4d17-9fa7-7313f60c1a0e',
  1024. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1025. },
  1026. {
  1027. target: 'c4d990fa-533d-46ab-8474-f97098baa639',
  1028. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1029. },
  1030. {
  1031. target: 'dc2b0be1-e861-4e16-8d7e-eba5a713235c',
  1032. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1033. },
  1034. {
  1035. target: '1e59d45d-2650-40a7-af0e-b56547427376',
  1036. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1037. },
  1038. {
  1039. target: 'ab97d57a-5895-45ad-a931-5a115c793b00',
  1040. source: '3ae80188-4daf-4914-8b38-27786abe9031',
  1041. },
  1042. {
  1043. target: '18202e3a-43f7-47bd-9c4d-4bcc8b974aed',
  1044. source: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1045. port: '17f331e3-adcd-42f6-b4b8-25806d7d8bad',
  1046. },
  1047. {
  1048. target: '0df2bc7c-7616-42d3-ad92-e72dfede22ce',
  1049. source: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1050. port: '17f331e3-adcd-42f6-b4b8-25806d7d8bad',
  1051. },
  1052. {
  1053. target: '0c2f8b8d-1a62-43a5-9142-2b39615c02f6',
  1054. source: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1055. port: '11f7d4bc-1bfd-4593-b300-28694b920d58',
  1056. },
  1057. {
  1058. target: '93e44df4-dc00-47f2-90aa-3c4848975a09',
  1059. source: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1060. port: '11f7d4bc-1bfd-4593-b300-28694b920d58',
  1061. },
  1062. {
  1063. target: '6bc7f1a1-efdd-4958-84c7-b31a60ee6796',
  1064. source: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1065. port: 'a31bf48b-2f82-4a0a-af41-24076fc170a0',
  1066. },
  1067. ],
  1068. viewport: {
  1069. zoom: 0.7499999999999999,
  1070. x: 866.9041335153236,
  1071. y: 114.47241709701427,
  1072. },
  1073. },
  1074. }
  1075. export const data1 = {
  1076. envVars: [
  1077. {
  1078. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  1079. type: 'String',
  1080. source: 'env',
  1081. label: 'env----1',
  1082. key: 'asd',
  1083. value: '32113123213',
  1084. },
  1085. {
  1086. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  1087. type: 'Number',
  1088. source: 'env',
  1089. label: 'ewqe',
  1090. key: 'e123',
  1091. value: 12312312,
  1092. },
  1093. {
  1094. id: '7af14f11-0e44-4ed7-aabc-00e0d11b640b',
  1095. type: 'String',
  1096. source: 'env',
  1097. label: '124214',
  1098. key: '425',
  1099. value: 'cascasca',
  1100. },
  1101. {
  1102. id: '3501737e-c792-4d77-a821-eb70f2287c3e',
  1103. type: 'Number',
  1104. source: 'env',
  1105. label: '1251',
  1106. key: 'rsd',
  1107. value: 1231,
  1108. },
  1109. ],
  1110. graph: {
  1111. nodes: [
  1112. {
  1113. id: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1114. x: 118,
  1115. y: 292.75,
  1116. data: {
  1117. id: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1118. title: '开始',
  1119. desc: '',
  1120. __outVars: [
  1121. {
  1122. label: '输入参数1',
  1123. key: 'ppp1',
  1124. type: 'String',
  1125. length: '20',
  1126. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1127. },
  1128. {
  1129. label:
  1130. 'w213123sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss',
  1131. key: '3434',
  1132. type: 'Number',
  1133. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1134. },
  1135. {
  1136. label: '4',
  1137. key: '4',
  1138. type: 'String',
  1139. length: '24',
  1140. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1141. },
  1142. {
  1143. label: '2414',
  1144. key: 'r3423',
  1145. type: 'Number',
  1146. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1147. },
  1148. ],
  1149. type: 'root',
  1150. __sysVars: [
  1151. {
  1152. label: '查询内容',
  1153. key: 'sys.query',
  1154. type: 'String',
  1155. source: 'root',
  1156. },
  1157. {
  1158. label: '用户ID',
  1159. key: 'sys.user_id',
  1160. type: 'String',
  1161. source: 'root',
  1162. },
  1163. ],
  1164. },
  1165. },
  1166. {
  1167. id: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1168. x: 454,
  1169. y: 181.5,
  1170. data: {
  1171. id: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1172. title: '条件分支',
  1173. desc: '各种判断',
  1174. ports: [
  1175. {
  1176. id: '17f331e3-adcd-42f6-b4b8-25806d7d8bad',
  1177. mode: 'and',
  1178. cases: [
  1179. {
  1180. id: '5cc80ce1-eab9-4549-8aef-c3ebf3f6883a',
  1181. source: {
  1182. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  1183. type: 'String',
  1184. source: 'env',
  1185. label: 'env----1',
  1186. key: 'asd',
  1187. },
  1188. method: 'includes',
  1189. type: 'constant',
  1190. target: 'asdasd',
  1191. },
  1192. {
  1193. id: 'c93d4514-cede-4361-a6c7-dcc1a2f34fdb',
  1194. source: {
  1195. label: '输入参数1',
  1196. key: 'ppp1',
  1197. type: 'String',
  1198. length: '20',
  1199. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1200. },
  1201. method: 'end with',
  1202. type: 'constant',
  1203. target: 'casc',
  1204. },
  1205. {
  1206. id: '0064d690-3e39-4d68-a60d-dd53244ce41a',
  1207. source: {
  1208. label: '查询内容',
  1209. key: 'sys.query',
  1210. type: 'String',
  1211. source: 'root',
  1212. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1213. },
  1214. method: 'not equals',
  1215. type: 'constant',
  1216. target: 'asfasf',
  1217. },
  1218. {
  1219. id: 'fbdc23c5-4564-4d8a-9572-03e7059fe856',
  1220. source: {
  1221. label: '输入参数1',
  1222. key: 'ppp1',
  1223. type: 'String',
  1224. length: '20',
  1225. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1226. },
  1227. method: 'includes',
  1228. type: 'variable',
  1229. target: {
  1230. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  1231. type: 'String',
  1232. source: 'env',
  1233. label: 'env----1',
  1234. key: 'asd',
  1235. },
  1236. },
  1237. ],
  1238. },
  1239. {
  1240. id: '49d72236-24e6-488a-8f3e-d430b687129d',
  1241. mode: 'and',
  1242. cases: [],
  1243. },
  1244. {
  1245. id: '11f7d4bc-1bfd-4593-b300-28694b920d58',
  1246. mode: 'and',
  1247. cases: [
  1248. {
  1249. id: 'ac081f15-7237-448c-8565-32912ad0d488',
  1250. source: {
  1251. label: '查询内容',
  1252. key: 'sys.query',
  1253. type: 'String',
  1254. source: 'root',
  1255. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1256. },
  1257. method: 'empty',
  1258. type: 'constant',
  1259. target: '',
  1260. },
  1261. {
  1262. id: '387345db-2147-46be-b728-5e768130e458',
  1263. source: {
  1264. label: '2414',
  1265. key: 'r3423',
  1266. type: 'Number',
  1267. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1268. },
  1269. method: 'empty',
  1270. type: 'constant',
  1271. target: '',
  1272. },
  1273. {
  1274. id: '53a9ad75-8737-4323-887c-937e477249ef',
  1275. source: {
  1276. id: '46bdf6ae-8c0e-4da8-924b-e135fdd83008',
  1277. type: 'String',
  1278. source: 'env',
  1279. label: 'env----1',
  1280. key: 'asd',
  1281. },
  1282. method: 'not empty',
  1283. type: 'constant',
  1284. target: '',
  1285. },
  1286. ],
  1287. },
  1288. {
  1289. id: 'b712fcdc-247c-4705-a22e-205728109f61',
  1290. mode: 'and',
  1291. cases: [
  1292. {
  1293. id: '95444d9d-7087-482c-9d36-16c7c54e8c78',
  1294. source: {
  1295. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  1296. type: 'Number',
  1297. source: 'env',
  1298. label: 'ewqe',
  1299. key: 'e123',
  1300. },
  1301. method: '=',
  1302. type: 'constant',
  1303. target: 233,
  1304. },
  1305. {
  1306. id: 'a2e604b4-8b4f-4d8f-a50f-445266ffa6b9',
  1307. source: {
  1308. label: '用户ID',
  1309. key: 'sys.user_id',
  1310. type: 'String',
  1311. source: 'root',
  1312. nodeId: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1313. },
  1314. method: 'includes',
  1315. type: 'variable',
  1316. target: {
  1317. id: '7af14f11-0e44-4ed7-aabc-00e0d11b640b',
  1318. type: 'String',
  1319. source: 'env',
  1320. label: '124214',
  1321. key: '425',
  1322. },
  1323. },
  1324. ],
  1325. },
  1326. {
  1327. id: '99d376e3-2033-4165-afdf-1f0ec3307a8b',
  1328. mode: 'and',
  1329. cases: [],
  1330. },
  1331. {
  1332. id: 'f14f5500-4dd3-4b2e-a5bf-d5fc4d2202e0',
  1333. mode: 'and',
  1334. cases: [
  1335. {
  1336. id: '44599635-506c-484a-9112-a53e95289170',
  1337. source: {
  1338. id: 'a15aa50f-814e-4d8e-8317-2f4f5b65abb6',
  1339. type: 'Number',
  1340. source: 'env',
  1341. label: 'ewqe',
  1342. key: 'e123',
  1343. },
  1344. method: '=',
  1345. type: 'constant',
  1346. target: '',
  1347. },
  1348. ],
  1349. },
  1350. {
  1351. id: 'a31bf48b-2f82-4a0a-af41-24076fc170a0',
  1352. isElse: true,
  1353. },
  1354. ],
  1355. type: 'if-else',
  1356. },
  1357. },
  1358. {
  1359. id: '483d0519-446b-4d4c-8f70-0f3c96329e7c',
  1360. x: 454,
  1361. y: 404,
  1362. data: {
  1363. id: '483d0519-446b-4d4c-8f70-0f3c96329e7c',
  1364. title: '测试节点',
  1365. desc: '',
  1366. __outVars: [
  1367. {
  1368. label: '参数1',
  1369. key: 'param1',
  1370. type: 'String',
  1371. },
  1372. {
  1373. label: '参数2',
  1374. key: 'param2',
  1375. type: 'Number',
  1376. },
  1377. ],
  1378. type: 'test',
  1379. },
  1380. },
  1381. ],
  1382. edges: [
  1383. {
  1384. target: 'c3187871-987e-46fc-98e1-40946577a8f3',
  1385. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1386. },
  1387. {
  1388. target: '483d0519-446b-4d4c-8f70-0f3c96329e7c',
  1389. source: 'eeec6579-6214-4b26-8d53-a7a68abbb032',
  1390. },
  1391. ],
  1392. viewport: {
  1393. zoom: 1.45,
  1394. x: 47.34799120418404,
  1395. y: -87.3533248803019,
  1396. },
  1397. },
  1398. }