From 6dbd81c9fa67429e6ef46b816fb19ec2f4e09acc Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 12 十二月 2024 10:20:03 +0800 Subject: [PATCH] 预测项 类型 --- src/views/model/pre/item/index.vue | 16 ++++++++++++++++ src/api/model/pre/item/index.ts | 1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/api/model/pre/item/index.ts b/src/api/model/pre/item/index.ts index 9856eac..7fe814d 100644 --- a/src/api/model/pre/item/index.ts +++ b/src/api/model/pre/item/index.ts @@ -69,6 +69,7 @@ export interface MmPredictItemPageReqVO extends PageParam { itemno?: string, itemname?: string, + itemtypeid?: string, modulename?: string, } diff --git a/src/views/model/pre/item/index.vue b/src/views/model/pre/item/index.vue index 0d2e89f..45a6865 100644 --- a/src/views/model/pre/item/index.vue +++ b/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> -- Gitblit v1.9.3