| | |
| | | <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"> |
| | |
| | | <el-table-column prop="itemCategoryName" label="指标分类" header-align="center" align="center" min-width="100"/> |
| | | <el-table-column prop="itemType" label="指标类型" header-align="center" align="center" min-width="60"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.ITEM_TYPE" :value="scope.row.itemType" /> |
| | | <dict-tag :type="DICT_TYPE.IND_ITEM_TYPE" :value="scope.row.itemType" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="coefficient" label="系数" header-align="center" align="center" min-width="60"/> |
| | |
| | | </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' |