src/api/model/pre/item/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/model/pre/item/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/model/sche/model/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/model/pre/item/index.ts
@@ -69,6 +69,7 @@ export interface MmPredictItemPageReqVO extends PageParam { itemno?: string, itemname?: string, itemtypeid?: string, modulename?: string, } src/views/model/pre/item/index.vue
@@ -27,6 +27,17 @@ class="!w-240px" /> </el-form-item> <el-form-item label="类型" prop="itemtypeid"> <el-select v-model="queryParams.itemtypeid" placeholder="请选择"> <el-option v-for="item in itemTypeList" :key="item.id" :label="item.itemtypename" :value="item.id"/> </el-select> </el-form-item> <el-form-item label="管网名称" prop="modulename"> <el-input v-model="queryParams.modulename" @@ -131,6 +142,7 @@ <script lang="ts" setup> import MmPredictItemForm from './MmPredictItemForm.vue' import MmPredictItemChart from './MmPredictItemChart.vue' import * as MmItemType from '@/api/model/pre/type' import * as MmPredictItem from '@/api/model/pre/item' import {DICT_TYPE} from "@/utils/dict"; @@ -139,6 +151,7 @@ const message = useMessage() // 消息弹窗 const {t} = useI18n() // 国际化 const itemTypeList = ref([]) const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 @@ -147,6 +160,7 @@ pageSize: 10, itemno: undefined, itemname: undefined, itemtypeid: undefined, modulename: undefined, }) const isList = ref([ @@ -214,5 +228,7 @@ /** 初始化 **/ onMounted(async () => { await getList() // 获取预测项类型列表 itemTypeList.value = await MmItemType.getItemTypeList() }) </script> src/views/model/sche/model/index.vue
@@ -52,8 +52,12 @@ <ContentWrap> <el-table v-loading="loading" :data="list"> <el-table-column label="模型编号" align="center" prop="modelCode" min-width="100"/> <el-table-column label="模型名称" align="center" prop="modelName" min-width="100"/> <el-table-column label="模型类型" align="center" prop="modelType" min-width="100"/> <el-table-column label="模型名称" header-align="center" align="left" prop="modelName" min-width="100"/> <el-table-column label="模型类型" align="center" prop="modelType" min-width="100"> <template #default="scope"> <dict-tag :type="DICT_TYPE.SCHE_MODEL_TYPE" :value="scope.row.modelType" /> </template> </el-table-column> <el-table-column label="类名" header-align="center" align="left" prop="className" min-width="200"/> <el-table-column label="方法名" align="center" prop="methodName" min-width="100"/> <el-table-column label="参数数量" align="center" prop="portLength" min-width="100"/>