From df90c0c5cfa4de114798015b92120ad8ba8b4826 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 22 十一月 2024 10:45:40 +0800 Subject: [PATCH] MEASURE_VALUE_TYPE --- src/views/data/ind/item/index.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/data/ind/item/index.vue b/src/views/data/ind/item/index.vue index 506ebc6..b56ed54 100644 --- a/src/views/data/ind/item/index.vue +++ b/src/views/data/ind/item/index.vue @@ -3,13 +3,23 @@ <ContentWrap> <el-form ref="queryFormRef" :inline="true" :model="queryParams" class="-mb-15px" label-width="68px"> - <el-form-item label="指标编码" prop="name"> - <el-input v-model="queryParams.itemNo" class="!w-240px" clearable placeholder="请输入指标编码" + <el-form-item label="指标编码" prop="itemNo"> + <el-input v-model="queryParams.itemNo" class="!w-200px" clearable placeholder="请输入指标编码" @keyup.enter="handleQuery"/> </el-form-item> - <el-form-item label="指标名称" prop="name"> - <el-input v-model="queryParams.itemName" class="!w-240px" clearable placeholder="请输入指标名称" + <el-form-item label="指标名称" prop="itemName"> + <el-input v-model="queryParams.itemName" class="!w-200px" clearable placeholder="请输入指标名称" @keyup.enter="handleQuery"/> + </el-form-item> + <el-form-item label="指标类型" prop="itemType"> + <el-select v-model="queryParams.itemType" class="!w-200px" clearable placeholder="请选择指标类型"> + <el-option + v-for="dict in getStrDictOptions(DICT_TYPE.IND_ITEM_TYPE)" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + </el-select> </el-form-item> <el-form-item> <el-button @click="handleQuery"> @@ -93,7 +103,7 @@ </template> <script lang="ts" setup> - import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' + import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as DataSetApi from '@/api/data/ind/data/data.set' import AtomIndDefineForm from './AtomIndDefineForm.vue' @@ -104,7 +114,7 @@ import * as ItemApi from '@/api/data/ind/item/item' import * as CategoryApi from "@/api/data/ind/category"; - defineOptions({ name: 'IndDataSet' }) + defineOptions({ name: 'IndItem' }) const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 -- Gitblit v1.9.3