From 2e092feceaf8907fe4b6fda847b02bc8bbd1324a Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 09 十月 2024 15:44:38 +0800 Subject: [PATCH] 新增查询条件 --- src/views/data/ind/item/index.vue | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/data/ind/item/index.vue b/src/views/data/ind/item/index.vue index 506ebc6..e80c331 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' -- Gitblit v1.9.3