mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 22:31:21 +00:00
feat(workflow): 重构工作流编排界面,使用VueFlow替换LogicFlow
refactor: 统一详情接口权限标识从query改为detail feat(tenant): 为租户模型添加domain字段支持 fix(cron): 移除定时任务触发参数只读限制 perf(menu): 优化菜单权限标识注释说明 refactor(model): 为多个模型添加租户关联支持 style(main): 调整CSS导入顺序和格式 chore(package): 替换前端流程图库为@vue-flow系列 fix(token): 修正令牌详情接口权限标识 docs(sql): 更新菜单权限标识注释为query格式
This commit is contained in:
@@ -545,16 +545,10 @@
|
||||
<el-input
|
||||
v-model="formData.trigger_args"
|
||||
placeholder="请输入 * * * * * ? *"
|
||||
readonly
|
||||
@click="openCron = true"
|
||||
/>
|
||||
</template>
|
||||
<vue3CronPlus
|
||||
i18n="cn"
|
||||
max-height="500"
|
||||
@change="handlechangeCron"
|
||||
@close="openCron = false"
|
||||
/>
|
||||
<vue3CronPlus i18n="cn" @change="handlechangeCron" @close="openCron = false" />
|
||||
</el-popover>
|
||||
</el-form-item>
|
||||
<!-- 开始日期和结束日期 -->
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<div class="custom-node">
|
||||
<div class="node-header">{{ data.label }}</div>
|
||||
|
||||
<!-- Handle 定义 -->
|
||||
<Handle :id="'top-' + id" type="source" position="top" :style="{ background: '#4a5568' }" />
|
||||
<Handle :id="'left-' + id" type="source" position="left" :style="{ background: '#4a5568' }" />
|
||||
<Handle :id="'right-' + id" type="source" position="right" :style="{ background: '#4a5568' }" />
|
||||
<Handle
|
||||
:id="'bottom-' + id"
|
||||
type="source"
|
||||
position="bottom"
|
||||
:style="{ background: '#4a5568' }"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineProps } from "vue";
|
||||
import { Handle } from "@vue-flow/core";
|
||||
|
||||
defineProps({
|
||||
id: String,
|
||||
data: Object,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.custom-node {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
color: white;
|
||||
background-color: #4a5568;
|
||||
background-color: rgba(148, 146, 146, 0.32);
|
||||
border: 1px solid rgba(148, 146, 146, 0.79);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.node-header {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user