feat: 工作流编排

This commit is contained in:
wangdan-fit2cloud 2024-06-19 10:58:35 +08:00
parent 53bf6d074d
commit 5f82b0d010
2 changed files with 27 additions and 3 deletions

View File

@ -975,5 +975,26 @@ export const iconMap: any = {
)
])
}
},
'app-play-outlined': {
iconReader: () => {
return h('i', [
h(
'svg',
{
style: { height: '100%', width: '100%' },
viewBox: '0 0 14 14',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg'
},
[
h('path', {
d: 'M3.72924 12.114L10.8299 7.75969C11.0966 7.59484 11.2583 7.30819 11.2583 7.00001C11.2583 6.69184 11.0966 6.40571 10.8299 6.24033L3.72976 1.8865C3.58406 1.79736 3.41652 1.74977 3.24571 1.75C3.00419 1.75037 2.77234 1.84492 2.59944 2.01355C2.42829 2.18155 2.33221 2.40888 2.33326 2.64565V11.3554C2.33326 11.5229 2.38156 11.6867 2.47186 11.8295C2.60121 12.0319 2.80546 12.1748 3.03991 12.2269C3.27616 12.2805 3.52396 12.24 3.72924 12.114ZM3.49993 10.8861L9.83696 7.00002L3.49993 3.11411V10.8861Z',
fill: '#1F2329'
})
]
)
])
}
}
}

View File

@ -9,7 +9,7 @@
<el-button icon="Plus" @click="showPopover = !showPopover" v-click-outside="clickoutside">
添加组件
</el-button>
<el-button> 调试 </el-button>
<el-button icon="CaretRight">调试</el-button>
<el-button type="primary" @click="publicHandle"> 保存 </el-button>
</div>
</div>
@ -82,6 +82,9 @@ function getGraphData() {
function getDetail() {
application.asyncGetApplicationDetail(id, loading).then((res: any) => {
res.data?.work_flow['nodes'].map((v: any) => {
v['properties']['noRender'] = true
})
detail.value = res.data
})
}
@ -135,9 +138,9 @@ onBeforeUnmount(() => {
user-select: none; /* CSS3属性 */
position: absolute;
top: 110px;
right: 24px;
right: 23px;
z-index: 99;
width: 240px;
width: 253px;
box-shadow: 0px 4px 8px 0px var(--app-text-color-light-1);
background: #ffffff;
padding-bottom: 8px;