| | |
| | | <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" /> |
| | |
| | | <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 |
| | |
| | | <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'}) |