提交 15be594b authored 作者: lidongxu's avatar lidongxu

fix(dict/data): 解决字典详情页面数据展示问题

同上
上级 ef389214
<template>
<div class="app-container">
<div class="container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
<el-form-item label="字典名称" prop="dictType">
<el-select v-model="queryParams.dictType" style="width: 200px">
......@@ -92,7 +93,7 @@
<el-table-column label="字典标签" align="center" prop="dictLabel">
<template #default="scope">
<span v-if="(scope.row.listClass == '' || scope.row.listClass == 'default') && (scope.row.cssClass == '' || scope.row.cssClass == null)">{{ scope.row.dictLabel }}</span>
<el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass" :class="scope.row.cssClass">{{ scope.row.dictLabel }}</el-tag>
<el-tag v-else :type="scope.row.listClass == 'primary' ? 'primary' : scope.row.listClass" :class="scope.row.cssClass">{{ scope.row.dictLabel }}</el-tag>
</template>
</el-table-column>
<el-table-column label="字典键值" align="center" prop="dictValue" />
......@@ -173,6 +174,7 @@
</template>
</el-dialog>
</div>
</div>
</template>
<script setup name="Data">
......@@ -243,8 +245,8 @@ function getTypeList() {
function getList() {
loading.value = true;
listData(queryParams.value).then(response => {
dataList.value = response.rows;
total.value = response.total;
dataList.value = response.data.rows;
total.value = response.data.total;
loading.value = false;
});
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论