Initial commit

This commit is contained in:
libertyspy
2026-02-09 15:26:21 +08:00
parent f1bcd3812d
commit 7f8abf2ff2
5 changed files with 24 additions and 5 deletions

View File

@@ -34,4 +34,12 @@ export const routes: RouteRecordRaw[] = [
},
component: () => import('@/views/decision/designer.vue'),
},
{
name: 'decision-algorithm-management',
path: '/app/decision/algorithm/management',
meta: {
title: '规则管理',
},
component: () => import('@/views/decision/algorithm/management.vue'),
},
]

View File

@@ -0,0 +1,11 @@
<template>
<Layout>
<template #sidebar>
ddd
</template>
</Layout>
</template>
<script setup lang="ts">
import Layout from '../layout.vue'
</script>

View File

@@ -142,8 +142,8 @@ export default defineComponent({
.ant-card-head {
border: 0;
height: 38px;
min-height: 38px;
height: 35px;
min-height: 35px;
border-radius: 0;
color: #fff;
font-size: 12px;

View File

@@ -13,10 +13,10 @@ export const defaultHeight: Record<string, number> = {
component: 110,
};
export const createGraphTaskElement = (element: GraphTaskElement, width: number = 250, height: number = 120): any => {
export const createGraphTaskElement = (element: GraphTaskElement, width: number = 160, height: number = 100): any => {
let realHeight = defaultHeight[element.category as string];
if (!realHeight) {
realHeight = 120;
realHeight = 100;
}
return {
shape: 'task',

View File

@@ -15,7 +15,7 @@ export const createGraphTaskElementFromTemplate = (
template: NodeTemplate,
rect?: GraphTaskRect,
): GraphTaskElement => {
let realRect = { width: 200, height: 100, x: 0, y: 0, ...rect || {} };
let realRect = { width: 120, height: 80, x: 0, y: 0, ...rect || {} };
console.info('rect', rect);
return {
id: 0,