From ebc552900444d25b1158bf53d07f24c9ee36cc75 Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期一, 20 一月 2025 14:40:57 +0800 Subject: [PATCH] 预警配置 --- src/views/model/pre/item/index.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/model/pre/item/index.vue b/src/views/model/pre/item/index.vue index 53f57f6..2158644 100644 --- a/src/views/model/pre/item/index.vue +++ b/src/views/model/pre/item/index.vue @@ -53,13 +53,13 @@ <el-table v-loading="loading" :data="list"> <el-table-column label="编号" align="center" min-width="150" prop="itemno"/> <el-table-column label="预测项名" header-align="center" align="left" min-width="200" prop="itemname"/> - <el-table-column label="类型名称" align="center" prop="itemtypename"> + <el-table-column label="类型名称" align="center" min-width="120" prop="itemtypename"> <template #default="scope"> <el-tag v-if="scope.row.itemtypename === 'NormalItem'" size="small" type="success">{{scope.row.itemtypename}}</el-tag> <el-tag v-else size="small" type="primary">{{scope.row.itemtypename}}</el-tag> </template> </el-table-column> - <el-table-column label="预测长度" align="center" prop="predictlength"/> + <el-table-column label="预测长度(min)" align="center" prop="predictlength"/> <el-table-column label="粒度" align="center" prop="granularity"> <template #default="scope"> <dict-tag :type="DICT_TYPE.PRED_GRANULARITY" :value="scope.row.granularity" /> @@ -80,9 +80,13 @@ <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.status" /> </template> </el-table-column> - <el-table-column label="运行时间" align="center" prop="lastTime"/> - <el-table-column label="运行状态" align="center" prop="runStatus"/> - <el-table-column label="运行耗时" align="center" prop="duration"/> + <el-table-column label="运行时间" min-width="150" align="center" prop="lastTime"/> + <el-table-column label="运行状态" align="center" prop="runStatus"> + <template #default="scope"> + <dict-tag :type="DICT_TYPE.ITEM_RUN_STATUS" :value="scope.row.runStatus" /> + </template> + </el-table-column> + <el-table-column label="运行耗时(ms)" align="center" prop="duration"/> <el-table-column label="操作" align="center" min-width="120" fixed="right"> <template #default="scope"> <el-button @@ -126,7 +130,7 @@ <script lang="ts" setup> import MmPredictItemForm from './MmPredictItemForm.vue' import MmPredictItemChart from './MmPredictItemChart.vue' -import * as MmPredictItem from '@/api/model/pre/predict' +import * as MmPredictItem from '@/api/model/pre/item' import {DICT_TYPE} from "@/utils/dict"; defineOptions({name: 'DataMmPredictItem'}) -- Gitblit v1.9.3