From effbd81dd598750429c05e88f5fb6789bec1bc0f Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 16 十月 2024 09:57:01 +0800
Subject: [PATCH] 1、项目名增加plat 2、增加数据和模型的swagger接口api 3、增加应用列表及应用切换功能,暂时放home页 4、其它相关修改

---
 src/views/model/pre/item/index.vue |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/src/views/model/pre/item/index.vue b/src/views/model/pre/item/index.vue
index 84cac42..e0e8861 100644
--- a/src/views/model/pre/item/index.vue
+++ b/src/views/model/pre/item/index.vue
@@ -52,21 +52,36 @@
   <ContentWrap>
     <el-table v-loading="loading" :data="list">
       <el-table-column label="编号" align="center" prop="itemno"/>
-      <el-table-column label="预测项名" align="center" prop="itemname"/>
-      <!--      <el-table-column label="类型ID" align="center" prop="itemtypeid" />-->
-      <el-table-column label="类型名称" align="center" prop="itemtypename"/>
-      <el-table-column label="粒度" align="center" prop="granularity"/>
-      <el-table-column label="是否融合" align="center" prop="isfuse"/>
-      <el-table-column label="是否检查" align="center" prop="workchecked"/>
-      <!--      <el-table-column label="模块ID" align="center" prop="moduleid" />-->
-      <!--      <el-table-column label="排序" align="center" prop="itemorder" />-->
-      <el-table-column label="是否启用" align="center" prop="status"/>
-      <!--      <el-table-column label="类别ID" align="center" prop="categoryid" />-->
-      <!--      <el-table-column label="数据点ID" align="center" prop="pointid" />-->
+      <el-table-column label="预测项名" header-align="center" align="left" min-width="200" prop="itemname"/>
+      <el-table-column label="类型名称" align="center" 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="粒度" align="center" prop="granularity">
+        <template #default="scope">
+          <dict-tag :type="DICT_TYPE.TIME_GRANULARITY" :value="scope.row.granularity" />
+        </template>
+      </el-table-column>
+      <el-table-column label="是否融合" align="center" prop="isfuse">
+        <template #default="scope">
+          <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.isfuse" />
+        </template>
+      </el-table-column>
+      <el-table-column label="是否检查" align="center" prop="workchecked">
+        <template #default="scope">
+          <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.workchecked" />
+        </template>
+      </el-table-column>
+      <el-table-column label="是否启用" align="center" prop="status">
+        <template #default="scope">
+          <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.status" />
+        </template>
+      </el-table-column>
       <el-table-column label="数据点名称" align="center" prop="tagname"/>
-      <!--      <el-table-column label="存放表ID" align="center" prop="resulttableid" />-->
       <el-table-column label="存放表" align="center" prop="tablename"/>
-
       <el-table-column label="操作" align="center" min-width="110" fixed="right">
         <template #default="scope">
           <el-button
@@ -104,6 +119,7 @@
 <script lang="ts" setup>
 import MmPredictItemForm from './MmPredictItemForm.vue'
 import * as MmPredictItem from '@/api/model/pre/predict'
+import {DICT_TYPE} from "@/utils/dict";
 
 defineOptions({name: 'DataMmPredictItem'})
 

--
Gitblit v1.9.3