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

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

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