| | |
| | | <span>信息显隐筛选</span> |
| | | </div> |
| | | <div slot="default" style="margin-left: 20px;margin-top: 20px"> |
| | | <el-table :data="getPage" style="width: 95%; height: 80%;;margin-bottom: 40px;"> |
| | | <el-table :row-key="row => { return row.id }" :data="getPage" style="width: 95%; height: 80%;;margin-bottom: 40px;" > |
| | | <el-table-column prop="index" label="序号" width="80"></el-table-column> |
| | | <el-table-column prop="label" label="数据名称"></el-table-column> |
| | | <el-table-column prop="visible" label="是否显示"> |
| | | <el-table-column prop="visible" label="是否显示" > |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-model="scope.row.visible" |
| | |
| | | ></el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="date" label="排序"> |
| | | <el-table-column prop="sort" label="排序"> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.sort" :min="0" style="width: 120px" @change="sortChange(scope.row, $event)"></el-input-number> |
| | | <el-input-number v-model="scope.row.sort" :min="0" style="width: 120px" |
| | | @change="sortChange(scope.row, $event)"></el-input-number> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.saveList.push(row) |
| | | } |
| | | } |
| | | console |
| | | this.$emit('update:columns', row); |
| | | }, |
| | | handlePageChange(page) { |