UPDATE: fk
This commit is contained in:
@@ -938,7 +938,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ant-collapse-content-box {
|
.ant-collapse-content-box {
|
||||||
max-height: 38vh;
|
max-height: 37vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const req = HttpRequestClient.create<BasicResponse>({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const findNodeTemplates = (): Promise<NodeTemplatesResponse> => {
|
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> => {
|
export const findTreesByQuery = (query: Partial<BehaviorTree> = {}): Promise<BehaviorTreePageResponse> => {
|
||||||
|
|||||||
@@ -81,9 +81,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
const activeKey = ref<number>(1);
|
const activeKey = ref<number>(1);
|
||||||
const templateData = ref<NodeTemplate[]>([]);
|
const templateData = ref<NodeTemplate[]>([]);
|
||||||
const isDraggingOver = ref(false);
|
const isDraggingOver = ref<boolean>(false);
|
||||||
const draggedNodeData = ref<NodeTemplate | null>(null);
|
const draggedNodeData = ref<NodeTemplate | null>(null);
|
||||||
|
|
||||||
// 控制节点
|
// 控制节点
|
||||||
const controlTemplates = ref<NodeTemplate[]>([]);
|
const controlTemplates = ref<NodeTemplate[]>([]);
|
||||||
// 条件节点
|
// 条件节点
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<p>说明: {{item.description}}</p>
|
<p>说明: {{item.description}}</p>
|
||||||
</template>
|
</template>
|
||||||
<a-list-item @click="()=> handleSelect(item)">
|
<a-list-item @click="()=> handleSelect(item)">
|
||||||
{{ substring(item.name, 25) }}
|
{{ substring(item.name, 15) }}
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -9,6 +9,16 @@
|
|||||||
|
|
||||||
import type { ApiDataResponse, NullableString } from '@/types';
|
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 {
|
export interface NodeTemplate {
|
||||||
id: number;
|
id: number;
|
||||||
name: NullableString;
|
name: NullableString;
|
||||||
@@ -17,6 +27,7 @@ export interface NodeTemplate {
|
|||||||
description: NullableString;
|
description: NullableString;
|
||||||
templeteType: NullableString;
|
templeteType: NullableString;
|
||||||
englishName: NullableString;
|
englishName: NullableString;
|
||||||
|
parameters: NodeTemplateParameter[],
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NodeTemplatesResponse extends ApiDataResponse<NodeTemplate[]> {
|
export interface NodeTemplatesResponse extends ApiDataResponse<NodeTemplate[]> {
|
||||||
|
|||||||
Reference in New Issue
Block a user