From fb6953e64050945c87ad3169f040f6c5aaaf84a5 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 03 九月 2024 15:51:02 +0800 Subject: [PATCH] 数据中心优化 --- src/views/system/data-manage/data-detail/index.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue index e10f30b..7de9b78 100644 --- a/src/views/system/data-manage/data-detail/index.vue +++ b/src/views/system/data-manage/data-detail/index.vue @@ -84,12 +84,11 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar> - <div v-if="tableData.list && tableData.list.length >0"> + <div> <el-table v-loading="loading" :data="tableData.list"> <el-table-column :prop="item.prop" :label="item.label" :width="item.width" v-for="(item, index) in tableHead" :key="index" v-if="showListPD(item)"/> </el-table> </div> - <el-empty v-else description="鏆傛棤鏁版嵁"></el-empty> <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> @@ -288,6 +287,9 @@ }, methods: { showListPD(item) { + if (!this.showList) { + return true + } let arr = this.showList.filter(d => d.label === item.label) if (item && (!arr || arr.length <1)) { return true; -- Gitblit v1.8.0