feat: 新建AI评估执行节点

This commit is contained in:
zhanghao 2026-01-13 15:20:51 +08:00
parent 85be4085b8
commit a6aa3cc514
3 changed files with 48 additions and 18 deletions

View File

@ -7,8 +7,8 @@ VITE_APP_ENV = 'development'
# 招商车研物联网平台/开发环境 # 招商车研物联网平台/开发环境
VITE_APP_BASE_API = '/dev-api' VITE_APP_BASE_API = '/dev-api'
VITE_API_URL = http://192.168.0.100:13080 VITE_API_URL = http://192.168.0.10:13080
VITE_WS_URL = ws://192.168.0.100:13080/ws VITE_WS_URL = ws://192.168.0.10:13080/ws
# VITE_API_URL = http://10.148.108.95:13080 //杨溪IP # VITE_API_URL = http://10.148.108.95:13080 //杨溪IP
# VITE_API_URL = http://10.148.108.58:13080 //赵培利IP # VITE_API_URL = http://10.148.108.58:13080 //赵培利IP

View File

@ -171,26 +171,13 @@ const handleInputKeydown = (e) => {
e.returnValue = true; // e.returnValue = true; //
} }
} }
// const svgModules = import.meta.glob('../icon/*.svg', { eager: true });
// console.log('svgModules', svgModules)
// const imageUrl = computed(async () => {
// if (props.icon && props.icon.startsWith('/src/')) {
// const modules = await import(`${props.icon}`);
// console.log('modules', modules)
// return modules.default
// } else {
// return props.icon;
// }
// })
const imageUrl = () => { const imageUrl = () => {
console.log('props.icon', props.icon)
return new URL(props.icon, import.meta.url).href; return new URL(props.icon, import.meta.url).href;
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.title__container { .title__container {
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -124,6 +124,16 @@ const expressOptions = () => {
}] }]
} }
const taskTypeOptions = () => {
return [{
value: 'voice',
label: '语音交互'
}, {
value: 'touch',
label: '触控交互'
}]
}
export const collapseList = [ export const collapseList = [
{ {
collapseTitle: "相机", collapseTitle: "相机",
@ -293,7 +303,7 @@ export const collapseList = [
}, },
{ {
icon: audioSvg, icon: audioSvg,
name: "播放音频", name: "播放音频",
type: "serviceNode", type: "serviceNode",
desc: "用于播放音频的节点", desc: "用于播放音频的节点",
action: 'SPEAKER_PLAYAUDIO', action: 'SPEAKER_PLAYAUDIO',
@ -357,7 +367,8 @@ export const collapseList = [
outputType: 'json', outputType: 'json',
outputParams: [ outputParams: [
{ name: 'wakeCorpus', type: 'object', desc: '唤醒语料', children: [], disabled: true}, { name: 'wakeCorpus', type: 'object', desc: '唤醒语料', children: [], disabled: true},
{ name: 'testCorpus', type: 'array<object>', desc: '测试语料数组', children: [], disabled: true} { name: 'testCorpus', type: 'array<object>', desc: '测试语料数组', children: [], disabled: true},
{ name: 'sceneType', type: 'number', desc: '1:唤醒测试2:单次对话测试3:连续对话测试', disabled: true }
] ]
}, },
{ {
@ -464,4 +475,36 @@ export const collapseList = [
}, },
], ],
}, },
{
collapseTitle: "AI评估",
nodeList: [
{
icon: expressionSvg,
name: "AI评估预处理",
type: "serviceNode",
desc: "AI评估预处理",
action: 'AI_EVALUATION_PRE',
nodeType: "AE",
nodeParams: [
{ name: "taskType", type: "input", input: "", componentType: 'select', selectOptions: taskTypeOptions(), disabled: true },
{ name: "wakeCorpus", type: "input", input: "", disabled: true, required: false },
{ name: "testCorpus", type: "input", input: "", disabled: true, required: false },
{ name: "sceneType", type: "input", input: "", disabled: true, required: false },
],
outputType: 'json',
},
{
icon: touchSvg,
name: "AI评估执行",
type: "serviceNode",
desc: "AI评估执行",
action: 'AI_EVALUATION_END',
nodeType: "AE",
nodeParams: [
{ name: "videoUrl", type: "input", input: "", disabled: true }
],
outputType: 'json',
}
],
},
] ]