update code

main
lijun 2024-10-16 22:50:09 +08:00
parent db26c5c814
commit 3233a2de54
5 changed files with 6779 additions and 6788 deletions

View File

@ -5,7 +5,7 @@ VITE_APP_PORT = 3000
VITE_APP_BASE_API = '/api'
#VITE_APP_API_URL = http://62.234.3.186/mk/ai/api
# 线上接口地址
#VITE_APP_API_URL = http://10.5.1.21:8800
#VITE_APP_API_URL = http://10.5.1.153:8800
VITE_APP_API_URL = http://62.234.3.186/api
# 开发接口地址
# VITE_APP_API_URL = http://localhost:8989

View File

@ -1,7 +1,7 @@
<template>
<div class="app-container add-report">
<div class="scroll div-content-scroll">
<el-form ref="formRef" :model="form" :rules="rules" label-width="100px">
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-card>
<template #header><svg-icon icon-class="pause" style="width: 20px; height: 20px" />报告基本信息
</template>
@ -9,8 +9,8 @@
<el-row>
<el-col :span="8">
<el-form-item label="报告名称" prop="reportName">
<el-input v-model="form.reportName" placeholder="请输入数据集名称" />
<el-form-item label="数据集比对报告" prop="reportName">
<el-input v-model="form.reportName" placeholder="请输入数据集比对报告" />
</el-form-item>
</el-col>
<el-col :span="16">
@ -105,7 +105,7 @@
</template>
</el-table-column>
<template #empty>
<el-button type="primary" @click="choiceRobustTask"></el-button>
<el-button type="primary" @click="choiceRobustTask"></el-button>
<el-button type="primary" @click="choiceCompTask"></el-button>
</template>
</el-table>

View File

@ -13,9 +13,9 @@
<template #default="scope">
<el-checkbox v-if="info.mult" v-model="scope.row.checked" :label="scope.row.task_id + ''"
:disabled="info.disTaskId==scope.row.task_id"
@change="handleChange(scope.row)"/>
@change="doRowClick(scope.row)"/>
<el-radio v-else v-model="info.selData" :label="scope.row.task_id + ''" :disabled="info.disTaskId==scope.row.task_id"
@change="handleChange(scope.row)"/>
@change="doRowClick(scope.row)"/>
</template>
</el-table-column>
<el-table-column label="任务名称" align="left" prop="task_name" />
@ -27,7 +27,7 @@
<el-table-column label="设备名称" align="left" prop="device_name" />
<el-table-column label="完成时间" align="left" prop="finish_time" />
</el-table>
<pagination v-if="info.total > 0" v-model:total="total" v-model:page="queryParams.pageNum"
<pagination v-if="info.total > 0" v-model:total="info.total" v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize" @pagination="loadData" />
<template #footer>

View File

@ -31,7 +31,7 @@
<template v-if="info.reportType == 'other'">
<div class="task-lists" v-if="info.tasks && info.tasks.length > 0">
<div v-for="(it, idx) in info.tasks" :key="idx">
<div class="sub-title">我的任务{{ idx + 1 }}评估报告</div>
<div class="sub-title">我的任务{{ idx + 1 }}测试报告</div>
<template v-if="info.reportType == 'other'">
<div v-if="info.thresholds" class="info-thresholds">
<span>置信度阈值</span>
@ -90,7 +90,7 @@
<template v-if="info.robustness && info.robustness.length > 0">
<div class="div-line"></div>
<div class="sub-title">鲁棒性评估报告</div>
<div class="sub-title">鲁棒性测试报告</div>
<el-table :data="info.robustness" stripe style="margin-top:10px;">
<el-table-column type="index" width="80" label="序号" />
<el-table-column label="模型名称" align="left" prop="model_name" />
@ -113,7 +113,7 @@
</template>
<template v-if="info.horizontal_comparison && info.horizontal_comparison.length > 0">
<div class="div-line"></div>
<div class="sub-title">硬件横向对比评估报告</div>
<div class="sub-title">硬件横向对比测试报告</div>
<el-table :data="info.horizontal_comparison" stripe style="margin-top:10px;">
<el-table-column type="index" width="80" label="序号" />
<el-table-column label="设备名称" align="left" prop="device_name" />
@ -139,7 +139,7 @@
<template v-else>
<div v-for="(it, idx) in info.tasks" :key="idx">
<div class="div-line"></div>
<div class="sub-title">{{ it.task_name }}评估报告</div>
<div class="sub-title">{{ it.task_name }}测试报告</div>
<el-table :data="[it]" stripe style="margin-top:10px;">
<el-table-column label="IDSW" align="left" prop="idsw" />
<el-table-column label="MT跟踪轨迹" align="left" prop="mt" />
@ -153,7 +153,7 @@
<template v-if="info.robustness && info.robustness.length > 0">
<div class="div-line"></div>
<div class="sub-title">鲁棒性评估报告</div>
<div class="sub-title">鲁棒性测试报告</div>
<el-table :data="info.robustness" stripe style="margin-top:10px;">
<el-table-column type="index" width="80" label="序号" />
<el-table-column label="模型名称" align="left" prop="model_name" />
@ -177,7 +177,7 @@
<template v-if="info.horizontal_comparison && info.horizontal_comparison.length > 0">
<div class="div-line"></div>
<div class="sub-title">硬件横向对比评估报告</div>
<div class="sub-title">硬件横向对比测试报告</div>
<el-table :data="info.horizontal_comparison" stripe style="margin-top:10px;">
<el-table-column type="index" width="80" label="序号" />
<el-table-column label="设备名称" align="left" prop="device_name" />
@ -295,7 +295,7 @@ const doDelete = () => {
});
}
//
//
function renderChar4() {
let datas = info.horizontal_comparison;
let maxTime1 = 0;
@ -349,7 +349,7 @@ function renderChar4() {
}
let opt = {
title: {
text: '硬件横向对比评估图'
text: '硬件横向对比测试图'
},
legend: {
x: 'left',
@ -385,7 +385,7 @@ function renderChar4() {
}
return opt;
}
//
//
function renderChar3() {
let datas = info.robustness;
let maxTime = 0;
@ -447,7 +447,7 @@ function renderChar3() {
}
let opt = {
title: {
text: '鲁棒性评估图'
text: '鲁棒性测试图'
},
legend: {
x: 'left',

13531
yarn.lock

File diff suppressed because it is too large Load Diff