dict tag
This commit is contained in:
@ -81,8 +81,8 @@
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item>
|
||||
<el-button icon="Search" type="primary" @click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
>搜索
|
||||
</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -158,7 +158,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="数据类型" prop="datatype">
|
||||
<template #default="{ row }">
|
||||
{{ dataTypeMap.get(row.datatype) ?? "未知" }}
|
||||
<!-- {{ dataTypeMap.get(row.datatype) ?? "未知" }}-->
|
||||
<dict-tag :options="dataTypeDict" :value="[row.datatype]" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -454,7 +455,7 @@ import { formatSpecsDisplay } from "@/utils/thingsmodel";
|
||||
import { listProduct } from "@/api/product/product";
|
||||
import { listTenant } from "@/api/system/tenant";
|
||||
import ModelTypeTags from "@/views/components/model-type-tags";
|
||||
import { dataTypeMap } from "../../../constant/dict";
|
||||
import { dataTypeDict } from "../../../constant/dict";
|
||||
import { ref } from "vue";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
Reference in New Issue
Block a user