|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294 |
- import { defineMock } from 'umi';
-
- export default defineMock({
- 'GET /api/mmp/workflow/235': {
- code: 200,
- msg: '操作成功',
- data: {
- id: 233,
- name: '分布式训练',
- description: 'aa',
- dag: {
- nodes: [
- {
- id: 'git-clone-c0724278',
- category_id: 1,
- component_name: 'git-clone',
- component_label: '代码拉取组件',
- task_info: {
- image: {
- type: 'ref',
- item_type: 'image',
- label: '镜像',
- value: null,
- visible: false,
- editable: false,
- require: 1,
- default: '',
- condition: '',
- description: '克隆代码的镜像',
- placeholder: '请选择镜像',
- rulers: {},
- },
- working_directory: {
- type: 'str',
- item_type: '',
- label: '工作目录',
- value: '',
- visible: false,
- editable: false,
- require: 1,
- default: '',
- placeholder: '请输入工作目录',
- condition: '',
- description: '容器内的工作目录',
- rulers: {},
- },
- command: {
- type: 'str',
- item_type: '',
- label: '启动命令',
- value: '',
- visible: false,
- editable: false,
- require: 1,
- default: '',
- placeholder: '请输入启动命令',
- description: '启动命令,不包括运行参数',
- rulers: '',
- },
- run_args: {
- type: 'map',
- item_type: '',
- label: '运行参数',
- value: [],
- visible: false,
- editable: false,
- require: 0,
- default: '',
- placeholder: '',
- condition: '',
- description: '运行命令的参数',
- rulers: '',
- },
- resources_standard: {
- type: 'select',
- item_type: 'resource',
- label: '资源',
- value: {},
- visible: false,
- editable: false,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '资源规格',
- rulers: {},
- },
- },
-
- control_strategy: {
- retry_times: {
- type: 'str',
- item_type: '',
- label: '重试次数',
- require: 0,
- default: '',
- placeholder: '',
- describe: '任务重试次数',
- visible: true,
- editable: false,
- condition: '',
- value: '',
- rulers: {},
- },
- max_run_times: {
- type: 'str',
- item_type: '',
- label: '最大运行时间',
- require: 0,
- default: '',
- placeholder: '',
- describe: '最大运行时间',
- editable: false,
- visible: true,
- condition: '',
- value: '',
- rulers: {},
- },
- },
-
- in_parameters: {
- '--code_config': {
- type: 'ref',
- item_type: 'code',
- label: '代码配置',
- require: 1,
- default: '',
- placeholder: '私有仓库填写ssh地址,公有仓库填写https git地址',
- describe:
- '代码配置,支持私有仓库和公有仓库,私有仓库填写ssh地址,公有仓库填写https git地址',
- editable: false,
- visible: true,
- condition: '',
- value: {
- id: 21,
- code_repo_name: '原子掺杂识别',
- code_repo_vis: 1,
- is_public: true,
- git_url: 'https://gitlink.org.cn/somunslotus/material-atom-predict.git',
- git_branch: 'master',
- verify_mode: null,
- git_user_name: null,
- git_password: null,
- ssh_key: null,
- create_by: 'admin',
- create_time: '2025-03-12T16:46:08.000+08:00',
- update_by: 'admin',
- update_time: '2025-03-14T14:59:19.000+08:00',
- state: 1,
- },
- rulers: {},
- showValue: '原子掺杂识别',
- fromSelect: true,
- },
- },
-
- out_parameters: {
- '--code_output': {
- type: 'str',
- item_type: 'code',
- label: '代码保存路径',
- require: 1,
- default: '/code',
- editable: false,
- visible: true,
- placeholder: '代码保存路径',
- describe: '代码保存路径',
- condition: '',
- showValue: '/mycode',
- value: '/mycode',
- rulers: {},
- fromSelect: false,
- },
- },
-
- available_range: 0,
- description: '代码拉取组件',
- icon_path: 'component-icon-1',
- create_by: 'admin',
- create_time: '2024-09-02T06:08:06.000+08:00',
- update_by: 'admin',
- update_time: '2024-09-02T06:08:06.000+08:00',
- state: 1,
- env_variables: [],
- x: 612,
- y: 215,
- label: '代码拉取',
- img: '/assets/images/component-icon-1.png',
- isCluster: false,
- formError: false,
- type: 'rect-node',
- size: [110, 36],
- labelCfg: {
- style: {
- fill: 'transparent',
- fontSize: 0,
- boxShadow: '0px 0px 12px rgba(75, 84, 137, 0.05)',
- overflow: 'hidden',
- x: -20,
- y: 0,
- textAlign: 'left',
- textBaseline: 'middle',
- },
- },
- style: {
- active: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- },
- selected: {
- fill: 'rgb(255, 255, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 4,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- fill: 'rgb(223, 234, 255)',
- stroke: '#4572d9',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(191, 213, 255)',
- lineWidth: 1,
- },
- disable: {
- fill: 'rgb(250, 250, 250)',
- stroke: 'rgb(224, 224, 224)',
- lineWidth: 1,
- },
- fill: '#fff',
- stroke: 'transparent',
- cursor: 'pointer',
- radius: 8,
- shadowColor: 'rgba(75, 84, 137, 0.4)',
- shadowBlur: 6,
- shadowOffsetX: 0,
- shadowOffsetY: 0,
- overflow: 'hidden',
- lineWidth: 0.5,
- },
- depth: 0,
- },
- {
- id: 'model-train-39e9bc7c',
- category_id: 2,
- component_name: 'model-train',
- component_label: '模型训练',
- task_info: {
- image: {
- type: 'ref',
- item_type: 'image',
- label: '镜像',
- value: {},
- visible: true,
- editable: true,
- require: 1,
- default: '',
- condition: '',
- description: '镜像',
- placeholder: '',
- rulers: {},
- },
- working_directory: {
- type: 'str',
- item_type: '',
- label: '工作目录',
- value: '{{git-clone-c0724278.--code_output}}',
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '容器内的工作目录',
- rulers: {},
- },
- command: {
- type: 'str',
- item_type: '',
- label: '启动命令',
- value: 'conda run -n atom-predict python recognize_dophant/egnn/train_pl_vor.py',
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- description: '启动命令,不包括运行参数',
- rulers: '',
- },
- run_args: {
- type: 'map',
- item_type: '',
- label: '运行参数',
- value: [],
- visible: true,
- editable: true,
- require: 0,
- default: '',
- placeholder: '',
- condition: '',
- description: '运行命令的参数',
- rulers: '',
- },
- resources_standard: {
- type: 'select',
- item_type: 'resource',
- label: '资源',
- value: {
- id: 30,
- resource_id: 4,
- computing_resource: 'CPU',
- standard: {
- name: 'CPU',
- value: {
- gpu: 0,
- cpu: 4,
- memory: '8GB',
- },
- },
- description: 'GPU: 0, CPU:4, 内存: 8GB',
- cpu_cores: 4,
- memory_gb: 8,
- gpu_memory_gb: 0,
- gpu_nums: 0,
- credit_per_hour: 2.0,
- labels: 'accelertor=cpu',
- create_by: 'admin',
- create_time: '2024-04-19T11:39:40.000+08:00',
- update_by: 'admin',
- update_time: '2024-04-19T11:39:40.000+08:00',
- state: 1,
- },
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '资源规格',
- rulers: {},
- },
- },
-
- control_strategy: {
- retry_times: {
- type: 'str',
- item_type: '',
- label: '重试次数',
- require: 0,
- default: '',
- placeholder: '',
- describe: '任务重试次数',
- visible: true,
- editable: true,
- condition: '',
- value: '',
- rulers: {},
- },
- max_run_times: {
- type: 'str',
- item_type: '',
- label: '最大运行时间',
- require: 0,
- default: '',
- placeholder: '',
- describe: '最大运行时间',
- editable: true,
- visible: true,
- condition: '',
- value: '',
- rulers: {},
- },
- },
- in_parameters: {
- '--dataset': {
- type: 'ref',
- item_type: 'dataset',
- label: '选择数据集',
- require: 1,
- default: '',
- placeholder: '',
- describe: '选择数据集',
- condition: '',
- visible: true,
- editable: true,
- value: {
- id: '73',
- name: '原子掺杂识别场景测试',
- version: 'v1',
- path: 'fanshuai/datasets/73/fanshuai_dataset_20250519103524/v1/dataset',
- identifier: 'fanshuai_dataset_20250519103524',
- owner: 'fanshuai',
- },
- rulers: {},
- showValue: '原子掺杂识别场景测试:v1',
- fromSelect: true,
- activeTab: 'Private',
- expandedKeys: ['73'],
- checkedKeys: ['73-v1'],
- },
- '--model_name': {
- type: 'ref',
- item_type: 'model',
- label: '选择模型',
- require: 0,
- default: '',
- placeholder: '',
- describe: '最大运行时间',
- editable: true,
- visible: true,
- condition: '',
- value: {
- id: '39',
- name: '原子参杂识别模型',
- version: 'v1',
- path: 'fanshuai/model/39/fanshuai_model_20250513113514/v1/model',
- identifier: 'fanshuai_model_20250513113514',
- owner: 'fanshuai',
- },
- rulers: {},
- showValue: '原子参杂识别模型:v1',
- fromSelect: true,
- activeTab: 'Private',
- expandedKeys: ['39'],
- checkedKeys: ['39-v1'],
- },
- },
- out_parameters: {
- '--model_output': {
- type: 'str',
- item_type: '',
- label: '模型输出路径',
- require: 1,
- showValue: '/model',
- default: '',
- placeholder: '',
- describe: '模型输出路径',
- editable: true,
- visible: true,
- rulers: {},
- condition: '',
- value: '/model',
- fromSelect: false,
- },
- },
- available_range: 1,
- description: '通用模型训练组件介绍',
- icon_path: 'component-icon-2',
- create_by: 'admin',
- create_time: '2024-05-28T07:33:53.000+08:00',
- update_by: 'admin',
- update_time: '2024-05-28T07:33:53.000+08:00',
- state: 1,
- env_variables: [],
- x: 596,
- y: 348,
- label: '模型训练',
- img: '/assets/images/component-icon-2.png',
- isCluster: false,
- formError: false,
- type: 'rect-node',
- size: [110, 36],
- labelCfg: {
- style: {
- fill: 'transparent',
- fontSize: 0,
- boxShadow: '0px 0px 12px rgba(75, 84, 137, 0.05)',
- overflow: 'hidden',
- x: -20,
- y: 0,
- textAlign: 'left',
- textBaseline: 'middle',
- },
- },
- style: {
- active: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- },
- selected: {
- fill: 'rgb(255, 255, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 4,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- fill: 'rgb(223, 234, 255)',
- stroke: '#4572d9',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(191, 213, 255)',
- lineWidth: 1,
- },
- disable: {
- fill: 'rgb(250, 250, 250)',
- stroke: 'rgb(224, 224, 224)',
- lineWidth: 1,
- },
- fill: '#fff',
- stroke: 'transparent',
- cursor: 'pointer',
- radius: 8,
- shadowColor: 'rgba(75, 84, 137, 0.4)',
- shadowBlur: 6,
- shadowOffsetX: 0,
- shadowOffsetY: 0,
- overflow: 'hidden',
- lineWidth: 0.5,
- },
- depth: 0,
- },
- {
- id: 'model-evaluate-c5b68e7c',
- category_id: 4,
- component_name: 'model-evaluate',
- component_label: '模型测试',
- task_info: {
- image: {
- type: 'ref',
- item_type: 'image',
- label: '镜像',
- value: {
- id: 15,
- image_id: 17,
- version: 'v1',
- description: null,
- url: '172.20.32.187/machine-learning/atom-egnn:v2',
- tag_name: 'v1',
- file_size: '125MB',
- status: 'Available',
- create_by: 'fanshuai',
- create_time: '2024-04-18T00:00:00.000+08:00',
- update_by: 'admin',
- update_time: '2024-04-18T00:00:00.000+08:00',
- state: 1,
- host_ip: null,
- },
- visible: false,
- editable: false,
- require: 0,
- default: '',
- condition: '',
- description: '镜像',
- placeholder: '',
- rulers: {},
- },
- working_directory: {
- type: 'str',
- item_type: '',
- label: '工作目录',
- value: '{{git-clone-c0724278.--code_output}}',
- visible: false,
- editable: false,
- require: 0,
- default: '',
- placeholder: '',
- condition: '',
- description: '容器内的工作目录',
- rulers: {},
- },
- command: {
- type: 'str',
- item_type: '',
- label: '启动命令',
- value: 'conda run -n atom-predict python recognize_dophant/egnn/test_pl_vor.py',
- visible: false,
- editable: false,
- require: 0,
- default: '',
- placeholder: '',
- description: '启动命令,不包括运行参数',
- rulers: '',
- },
- run_args: {
- type: 'map',
- item_type: '',
- label: '运行参数',
- value: [],
- visible: false,
- editable: false,
- require: 0,
- default: '',
- placeholder: '',
- condition: '',
- description: '运行命令的参数',
- rulers: '',
- },
- resources_standard: {
- type: 'select',
- item_type: 'resource',
- label: '资源',
- value: {
- id: 30,
- resource_id: 4,
- computing_resource: 'CPU',
- standard: {
- name: 'CPU',
- value: {
- gpu: 0,
- cpu: 4,
- memory: '8GB',
- },
- },
- description: 'GPU: 0, CPU:4, 内存: 8GB',
- cpu_cores: 4,
- memory_gb: 8,
- gpu_memory_gb: 0,
- gpu_nums: 0,
- credit_per_hour: 2.0,
- labels: 'accelertor=cpu',
- create_by: 'admin',
- create_time: '2024-04-19T11:39:40.000+08:00',
- update_by: 'admin',
- update_time: '2024-04-19T11:39:40.000+08:00',
- state: 1,
- },
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '资源规格',
- rulers: {},
- },
- },
-
- control_strategy: {
- retry_times: {
- type: 'str',
- item_type: '',
- label: '重试次数',
- require: 0,
- default: '',
- placeholder: '',
- describe: '任务重试次数',
- visible: true,
- editable: true,
- condition: '',
- value: '',
- rulers: {},
- },
- max_run_times: {
- type: 'str',
- item_type: '',
- label: '最大运行时间',
- require: 0,
- default: '',
- placeholder: '',
- describe: '最大运行时间',
- editable: true,
- visible: true,
- condition: '',
- value: '',
- rulers: {},
- },
- },
-
- in_parameters: {
- '--dataset': {
- type: 'ref',
- item_type: 'dataset',
- label: '选择数据集',
- require: 1,
- default: '',
- placeholder: '',
- describe: '选择数据集',
- condition: '',
- editable: true,
- visible: true,
- value: {
- id: '74',
- name: '原子掺杂识别模型测试数据集',
- version: 'v2',
- path: 'fanshuai/datasets/74/fanshuai_dataset_20250519103749/v2/dataset',
- identifier: 'fanshuai_dataset_20250519103749',
- owner: 'fanshuai',
- },
- rulers: {},
- showValue: '原子掺杂识别模型测试数据集:v2',
- fromSelect: true,
- activeTab: 'Private',
- expandedKeys: ['74'],
- checkedKeys: ['74-v2'],
- },
- '--model_name': {
- type: 'ref',
- item_type: 'model',
- label: '选择模型',
- require: 1,
- editable: true,
- visible: true,
- rulers: {},
- default: '',
- placeholder: '',
- describe: '这里是这个参数的描述和备注',
- condition: '',
- value: '{{model-train-39e9bc7c.--model_output}}',
- showValue: '{{model-train-39e9bc7c.--model_output}}',
- fromSelect: true,
- },
- },
- out_parameters: {
- '--model_output': {
- type: 'str',
- item_type: '',
- label: '模型测试结果路径',
- editable: true,
- visible: true,
- rulers: {},
- default: '',
- placeholder: '',
- describe: '这里是这个参数的描述和备注',
- condition: '',
- require: 1,
- showValue: '/result',
- value: '/result',
- fromSelect: false,
- },
- },
- available_range: 1,
- description: '模型测试',
- icon_path: 'component-icon-4',
- create_by: 'admin',
- create_time: '2024-05-24T07:00:10.000+08:00',
- update_by: 'admin',
- update_time: '2024-05-24T07:00:10.000+08:00',
- state: 1,
- env_variables: [],
- x: 600,
- y: 460,
- label: '模型评估',
- img: '/assets/images/component-icon-4.png',
- isCluster: false,
- formError: false,
- type: 'rect-node',
- size: [110, 36],
- labelCfg: {
- style: {
- fill: 'transparent',
- fontSize: 0,
- boxShadow: '0px 0px 12px rgba(75, 84, 137, 0.05)',
- overflow: 'hidden',
- x: -20,
- y: 0,
- textAlign: 'left',
- textBaseline: 'middle',
- },
- },
- style: {
- active: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- },
- selected: {
- fill: 'rgb(255, 255, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 4,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- fill: 'rgb(223, 234, 255)',
- stroke: '#4572d9',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(191, 213, 255)',
- lineWidth: 1,
- },
- disable: {
- fill: 'rgb(250, 250, 250)',
- stroke: 'rgb(224, 224, 224)',
- lineWidth: 1,
- },
- fill: '#fff',
- stroke: 'transparent',
- cursor: 'pointer',
- radius: 8,
- shadowColor: 'rgba(75, 84, 137, 0.4)',
- shadowBlur: 6,
- shadowOffsetX: 0,
- shadowOffsetY: 0,
- overflow: 'hidden',
- lineWidth: 0.5,
- },
- depth: 0,
- },
- {
- id: 'model-export-edcf438e',
- category_id: 6,
- component_name: 'model-export',
- component_label: '模型导出',
- task_info: {
- image: {
- type: 'ref',
- item_type: 'image',
- label: '镜像',
- value: {},
- visible: true,
- editable: true,
- require: 1,
- default: '',
- condition: '',
- description: '镜像',
- placeholder: '',
- rulers: {},
- },
- working_directory: {
- type: 'str',
- item_type: '',
- label: '工作目录',
- value: '{{git-clone-c0724278.--code_output}}',
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '容器内的工作目录',
- rulers: {},
- },
- command: {
- type: 'str',
- item_type: '',
- label: '启动命令',
- value: 'conda run -n atom-predict python recognize_dophant/egnn/test_pl_vor.py',
- visible: true,
- editable: true,
- require: 1,
- default: '',
- placeholder: '',
- description: '启动命令,不包括运行参数',
- rulers: '',
- },
- run_args: {
- type: 'map',
- item_type: '',
- label: '运行参数',
- value: [],
- visible: true,
- editable: true,
- require: 0,
- default: '',
- placeholder: '',
- condition: '',
- description: '运行命令的参数',
- rulers: '',
- },
- resources_standard: {
- type: 'select',
- item_type: 'resource',
- label: '资源',
- value: {},
- visible: false,
- editable: false,
- require: 1,
- default: '',
- placeholder: '',
- condition: '',
- description: '资源规格',
- rulers: {},
- },
- },
- control_strategy: {
- retry_times: {
- type: 'str',
- item_type: '',
- label: '重试次数',
- require: 0,
- default: '',
- placeholder: '',
- describe: '任务重试次数',
- visible: true,
- editable: true,
- condition: '',
- value: '',
- rulers: {},
- },
- max_run_times: {
- type: 'str',
- item_type: '',
- label: '最大运行时间',
- require: 0,
- default: '',
- placeholder: '',
- describe: '最大运行时间',
- editable: true,
- visible: true,
- condition: '',
- value: '',
- rulers: {},
- },
- },
-
- in_parameters: {
- '--model_source': {
- type: 'str',
- item_type: '',
- label: '模型来源',
- require: 1,
- default: '',
- placeholder: '模型来源',
- describe: '模型来源',
- editable: true,
- visible: true,
- condition: '',
- value: '{{model-train-39e9bc7c.--model_output}}',
- rulers: {},
- fromSelect: true,
- showValue: '{{model-train-39e9bc7c.--model_output}}',
- },
- '--model_id': {
- type: 'select',
- item_type: 'model',
- label: '导出到模型',
- require: 1,
- default: '',
- placeholder: '',
- describe: '导出到模型',
- editable: true,
- visible: true,
- condition: '',
- value: {
- id: '76',
- name: '原子掺杂识别模型场景测试',
- identifier: 'fanshuai_model_20250519105223',
- owner: 'fanshuai',
- },
- rulers: {},
- },
- '--version': {
- type: 'str',
- item_type: '',
- label: '模型版本',
- require: 1,
- choice: [],
- default: '1',
- placeholder: '',
- describe: '模型版本',
- editable: false,
- condition: '',
- showValue: '${model_version}',
- value: '${model_version}',
- fromSelect: false,
- },
- '--description': {
- type: 'str',
- item_type: '',
- label: '版本描述',
- require: 1,
- choice: [],
- default: '',
- placeholder: '版本描述',
- describe: '版本描述',
- editable: false,
- condition: '',
- showValue: '流水线自动导出',
- value: '流水线自动导出',
- fromSelect: false,
- },
- },
- available_range: 0,
- description: '模型导出',
- icon_path: 'component-icon-8',
- create_by: 'admin',
- create_time: '2024-05-29T01:12:01.000+08:00',
- update_by: 'admin',
- update_time: '2024-05-29T09:11:55.000+08:00',
- state: 1,
- env_variables: [],
- x: 592,
- y: 581,
- label: '模型导出',
- img: '/assets/images/component-icon-8.png',
- isCluster: false,
- formError: false,
- type: 'rect-node',
- size: [110, 36],
- labelCfg: {
- style: {
- fill: 'transparent',
- fontSize: 0,
- boxShadow: '0px 0px 12px rgba(75, 84, 137, 0.05)',
- overflow: 'hidden',
- x: -20,
- y: 0,
- textAlign: 'left',
- textBaseline: 'middle',
- },
- },
- style: {
- active: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- },
- selected: {
- fill: 'rgb(255, 255, 255)',
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 4,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- fill: 'rgb(223, 234, 255)',
- stroke: '#4572d9',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- fill: 'rgb(247, 250, 255)',
- stroke: 'rgb(191, 213, 255)',
- lineWidth: 1,
- },
- disable: {
- fill: 'rgb(250, 250, 250)',
- stroke: 'rgb(224, 224, 224)',
- lineWidth: 1,
- },
- fill: '#fff',
- stroke: 'transparent',
- cursor: 'pointer',
- radius: 8,
- shadowColor: 'rgba(75, 84, 137, 0.4)',
- shadowBlur: 6,
- shadowOffsetX: 0,
- shadowOffsetY: 0,
- overflow: 'hidden',
- lineWidth: 0.5,
- },
- depth: 0,
- },
- ],
- edges: [
- {
- source: 'git-clone-c0724278',
- target: 'model-train-39e9bc7c',
- style: {
- endArrow: {
- path: 'M 6,0 L 9,-1.5 L 9,1.5 Z',
- d: 4.5,
- fill: '#CDD0DC',
- },
- cursor: 'pointer',
- lineWidth: 1,
- lineAppendWidth: 4,
- opacity: 1,
- stroke: '#CDD0DC',
- radius: 1,
- active: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 1,
- },
- selected: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- stroke: 'rgb(234, 234, 234)',
- lineWidth: 1,
- },
- disable: {
- stroke: 'rgb(245, 245, 245)',
- lineWidth: 1,
- },
- },
- labelCfg: {
- autoRotate: true,
- style: {
- fontSize: 10,
- fill: '#FFF',
- },
- },
- id: 'edge-0.163955357654560491741769193740',
- startPoint: {
- x: 612,
- y: 233.25,
- anchorIndex: 1,
- },
- endPoint: {
- x: 596,
- y: 329.75,
- anchorIndex: 0,
- },
- sourceAnchor: 1,
- targetAnchor: 0,
- type: 'cubic-vertical',
- curvePosition: [0.5, 0.5],
- minCurveOffset: [0, 0],
- depth: 0,
- },
- {
- source: 'model-train-39e9bc7c',
- target: 'model-evaluate-c5b68e7c',
- style: {
- endArrow: {
- path: 'M 6,0 L 9,-1.5 L 9,1.5 Z',
- d: 4.5,
- fill: '#CDD0DC',
- },
- cursor: 'pointer',
- lineWidth: 1,
- lineAppendWidth: 4,
- opacity: 1,
- stroke: '#CDD0DC',
- radius: 1,
- active: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 1,
- },
- selected: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- stroke: 'rgb(234, 234, 234)',
- lineWidth: 1,
- },
- disable: {
- stroke: 'rgb(245, 245, 245)',
- lineWidth: 1,
- },
- },
- labelCfg: {
- autoRotate: true,
- style: {
- fontSize: 10,
- fill: '#FFF',
- },
- },
- id: 'edge-0.150681812754051241741769198063',
- startPoint: {
- x: 596,
- y: 366.25,
- anchorIndex: 1,
- },
- endPoint: {
- x: 600,
- y: 441.75,
- anchorIndex: 0,
- },
- sourceAnchor: 1,
- targetAnchor: 0,
- type: 'cubic-vertical',
- curvePosition: [0.5, 0.5],
- minCurveOffset: [0, 0],
- depth: 0,
- },
- {
- source: 'model-evaluate-c5b68e7c',
- target: 'model-export-edcf438e',
- style: {
- endArrow: {
- path: 'M 6,0 L 9,-1.5 L 9,1.5 Z',
- d: 4.5,
- fill: '#CDD0DC',
- },
- cursor: 'pointer',
- lineWidth: 1,
- lineAppendWidth: 4,
- opacity: 1,
- stroke: '#CDD0DC',
- radius: 1,
- active: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 1,
- },
- selected: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- shadowColor: 'rgb(95, 149, 255)',
- shadowBlur: 10,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- highlight: {
- stroke: 'rgb(95, 149, 255)',
- lineWidth: 2,
- 'text-shape': {
- fontWeight: 500,
- },
- },
- inactive: {
- stroke: 'rgb(234, 234, 234)',
- lineWidth: 1,
- },
- disable: {
- stroke: 'rgb(245, 245, 245)',
- lineWidth: 1,
- },
- },
- labelCfg: {
- autoRotate: true,
- style: {
- fontSize: 10,
- fill: '#FFF',
- },
- },
- id: 'edge-0.40652053406360491741769205906',
- startPoint: {
- x: 600,
- y: 478.25,
- anchorIndex: 1,
- },
- endPoint: {
- x: 592,
- y: 562.75,
- anchorIndex: 0,
- },
- sourceAnchor: 1,
- targetAnchor: 0,
- type: 'cubic-vertical',
- curvePosition: [0.5, 0.5],
- minCurveOffset: [0, 0],
- depth: 0,
- },
- ],
- combos: [],
- },
- global_param: null,
- create_by: 'fanshuai',
- create_time: '2025-06-19T19:50:47.000+08:00',
- update_by: 'fanshuai',
- update_time: '2025-06-24T09:28:28.000+08:00',
- state: 1,
- },
- },
- });
|