Merge branch 'dev' of 192.168.0.100:smart_bench/cmvr-iot-ui into dev

This commit is contained in:
lixiaolong 2026-01-20 10:01:15 +08:00
commit 8b76dc2539
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,21 +171,8 @@ 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>

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: "相机",
@ -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',
}
],
},
] ]