| | |
| | | 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" |
| | |
| | | <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"; |
| | | |
| | |
| | | const message = useMessage() // 消息弹窗 |
| | | const {t} = useI18n() // 国际化 |
| | | |
| | | const itemTypeList = ref([]) |
| | | const loading = ref(true) // 列表的加载中 |
| | | const total = ref(0) // 列表的总页数 |
| | | const list = ref([]) // 列表的数据 |
| | |
| | | pageSize: 10, |
| | | itemno: undefined, |
| | | itemname: undefined, |
| | | itemtypeid: undefined, |
| | | modulename: undefined, |
| | | }) |
| | | const isList = ref([ |
| | |
| | | /** 初始化 **/ |
| | | onMounted(async () => { |
| | | await getList() |
| | | // 获取预测项类型列表 |
| | | itemTypeList.value = await MmItemType.getItemTypeList() |
| | | }) |
| | | </script> |