UPDATE: fk

This commit is contained in:
libertyspy
2026-02-08 20:14:07 +08:00
parent 7909ea8acb
commit d8c429d000
5 changed files with 15 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ const req = HttpRequestClient.create<BasicResponse>({
});
export const findNodeTemplates = (): Promise<NodeTemplatesResponse> => {
return req.get('/system/nodetemplate/listAll');
return req.get('/system/nodetemplate/all');
};
export const findTreesByQuery = (query: Partial<BehaviorTree> = {}): Promise<BehaviorTreePageResponse> => {

View File

@@ -81,9 +81,8 @@ export default defineComponent({
const activeKey = ref<number>(1);
const templateData = ref<NodeTemplate[]>([]);
const isDraggingOver = ref(false);
const isDraggingOver = ref<boolean>(false);
const draggedNodeData = ref<NodeTemplate | null>(null);
// 控制节点
const controlTemplates = ref<NodeTemplate[]>([]);
// 条件节点

View File

@@ -12,7 +12,7 @@
<p>说明: {{item.description}}</p>
</template>
<a-list-item @click="()=> handleSelect(item)">
{{ substring(item.name, 25) }}
{{ substring(item.name, 15) }}
</a-list-item>
</a-tooltip>
</template>

View File

@@ -9,6 +9,16 @@
import type { ApiDataResponse, NullableString } from '@/types';
export interface NodeTemplateParameter {
id: number,
templateId: number,
paramKey: NullableString,
dataType: NullableString,
defaultValue: NullableString,
description: NullableString,
templateType: NullableString,
}
export interface NodeTemplate {
id: number;
name: NullableString;
@@ -17,6 +27,7 @@ export interface NodeTemplate {
description: NullableString;
templeteType: NullableString;
englishName: NullableString;
parameters: NodeTemplateParameter[],
}
export interface NodeTemplatesResponse extends ApiDataResponse<NodeTemplate[]> {