feat: 数据训练

This commit is contained in:
JiangSheng
2025-11-26 15:38:41 +08:00
parent 7304ea5c0f
commit c9cfc139ff
12 changed files with 128 additions and 29 deletions

View File

@@ -3,7 +3,7 @@
<div class="header">
<div class="form">
<el-form>
<el-form-item label="降阶模型">
<el-form-item :label="$t('数据预测.降阶模型')">
<el-select v-model="selectedModel" placeholder="请选择降阶模型" filterable @change="onModelChangeFun">
<el-option v-for="item in modelOptions" :label="item.label" :value="item" :key="item.id" />
</el-select>
@@ -24,9 +24,9 @@
</div>
<div class="content" v-loading="forecastLoading">
<div class="left">
<BaseTable ref="inputTableRef" tableName="DATA_FORECAST_INPUT" showIndex :actionsWidth="200" hidePagination>
<BaseTable ref="inputTableRef" :tableName="TABLE_NAME.DATA_FORECAST_INPUT" showIndex :actionsWidth="200" hidePagination>
<template #type>
输入
{{ $t('数据预测.输入') }}
</template>
<template #value="{ row }">
<el-input-number
@@ -44,9 +44,9 @@
</el-popconfirm>
</div>
<div class="right">
<BaseTable ref="outputTableRef" tableName="DATA_FORECAST_OUTPUT" showIndex :actionsWidth="200" hidePagination>
<BaseTable ref="outputTableRef" :tableName="TABLE_NAME.DATA_FORECAST_OUTPUT" showIndex :actionsWidth="200" hidePagination>
<template #type>
输出
{{ $t('数据预测.输出') }}
</template>
</BaseTable>
</div>
@@ -59,6 +59,7 @@ import { getModelTrainingListApi, startPredictApi, getModelPredictResultApi, get
import BaseTable from '@/components/common/table/baseTable.vue';
import { ref, onMounted } from 'vue';
import type { Model } from './type';
import { TABLE_NAME } from '@/utils/enum/tableName';
const inputTableRef = ref();
const outputTableRef = ref();