| | |
| | | <!-- 列表 --> |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column |
| | | label="创建时间" |
| | | align="center" |
| | | prop="createTime" |
| | | :formatter="dateFormatter" |
| | | width="180px" |
| | | /> |
| | | <el-table-column label="分类名" align="center" prop="category"> |
| | | <!-- <el-table-column label="id" align="center" prop="id" /> --> |
| | | |
| | | <el-table-column label="设备名称" align="center" prop="category"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.ECG_DEV_CATEGORY" :value="scope.row.category" /> |
| | | <!-- 字典命中时显示标签;未命中的兜底显示原始名称,避免整格空白 --> |
| | | <dict-tag |
| | | v-if="getDictLabel(DICT_TYPE.ECG_DEV_CATEGORY, scope.row.category)" |
| | | :type="DICT_TYPE.ECG_DEV_CATEGORY" |
| | | :value="scope.row.category" |
| | | /> |
| | | <span v-else>{{ scope.row.category }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="品牌" align="center" prop="brand"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="型号" align="center" prop="model" /> |
| | | <el-table-column |
| | | label="创建时间" |
| | | align="center" |
| | | prop="createTime" |
| | | :formatter="dateFormatter" |
| | | width="180px" |
| | | /> |
| | | <el-table-column label="操作" align="center" min-width="120px"> |
| | | <template #default="scope"> |
| | | <el-button |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { getStrDictOptions, DICT_TYPE } from '@/utils/dict' |
| | | import { getStrDictOptions, getDictLabel, DICT_TYPE } from '@/utils/dict' |
| | | import { dateFormatter } from '@/utils/formatTime' |
| | | import download from '@/utils/download' |
| | | import { DevModelApi, DevModelVO } from '@/api/ecg/devmanage' |