feat: 工作编排

This commit is contained in:
wangdan-fit2cloud 2024-05-29 15:16:46 +08:00
parent 3214819aa0
commit 99ea8b25dd
11 changed files with 16 additions and 8 deletions

View File

@ -6,9 +6,9 @@
<script setup lang="ts">
import LogicFlow from '@logicflow/core'
import { ref, onMounted } from 'vue'
import AiChatNode from '@/work-flow/nodes/ai-chat-node/index.ts'
import AppEdge from '@/work-flow/common/edge/index'
import { AppMenu } from '@/work-flow/common/menu/index'
import AiChatNode from '@/workflow/nodes/ai-chat-node/index.ts'
import AppEdge from '@/workflow/common/edge/index'
import { AppMenu } from '@/workflow/common/menu/index'
import '@logicflow/extension/lib/style/index.css'
import '@logicflow/core/dist/style/index.css'

View File

@ -1,5 +1,5 @@
import ChatNodeVue from '@/work-flow/nodes/ai-chat-node/index.vue'
import { AppNode, AppNodeModel } from '@/work-flow/common/app-node/index'
import ChatNodeVue from '@/workflow/nodes/ai-chat-node/index.vue'
import { AppNode, AppNodeModel } from '@/workflow/common/app-node/index'
class ChatNode extends AppNode {
constructor(props: any) {
super(props, ChatNodeVue)

View File

@ -38,7 +38,7 @@
</NodeContainer>
</template>
<script setup lang="ts">
import NodeContainer from '@/work-flow/common/node-container/index.vue'
import NodeContainer from '@/workflow/common/node-container/index.vue'
import type { FormInstance } from 'element-plus'
import { ref, computed, onMounted } from 'vue'

View File

@ -1,5 +1,5 @@
import SearchDatasetVue from './index.vue'
import { AppNode, AppNodeModel } from '@/work-flow/common/app-node/index'
import { AppNode, AppNodeModel } from '@/workflow/common/app-node/index'
class SearchDatasetNode extends AppNode {
constructor(props: any) {
super(props, SearchDatasetVue)

View File

@ -21,7 +21,7 @@
</NodeContainer>
</template>
<script setup lang="ts">
import NodeContainer from '@/work-flow/common/node-container/index.vue'
import NodeContainer from '@/workflow/common/node-container/index.vue'
import type { FormInstance } from 'element-plus'
import { ref, computed, onMounted } from 'vue'

View File

@ -77,6 +77,14 @@ const applicationRouter = {
}
]
},
// 创建编排
{
path: '/application/workflow',
name: 'CreateApplication',
meta: { activeMenu: '/application' },
component: () => import('@/views/application/CreateAndSetting.vue'),
hidden: true
},
]
}