Initial commit
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
]
|
||||
11
modeler/src/views/decision/algorithm/management.vue
Normal file
11
modeler/src/views/decision/algorithm/management.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<Layout>
|
||||
<template #sidebar>
|
||||
ddd
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Layout from '../layout.vue'
|
||||
</script>
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user