| | |
| | | |
| | | <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" /> |
| | |
| | | }, |
| | | 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; |