| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:18:47 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-09 22:52:11 |
| | | * @LastEditTime: 2024-04-09 22:57:11 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/component-classification.vue |
| | | * 分类维护 |
| | | --> |
| | |
| | | <el-button type="danger">删除</el-button> |
| | | </el-header> |
| | | <el-main> |
| | | <el-table ref="multipleTableRef" :data="tableData" border style="width: 100%" class="multipleTableRef" @selection-change="handleSelectionChange" row-key="id" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> |
| | | <el-table stripe :data="tableData" border style="width: 100%; margin-bottom: 20px" class="multipleTableRef" @selection-change="handleSelectionChange" row-key="id" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="name" label="分类名称" /> |
| | | <el-table-column prop="icon" label="分类图标"> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | tableData: [] |
| | | tableData: [], |
| | | selection: [] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | methods: { |
| | | queryList () { |
| | | this.$API.setting.getList.get().then(res => { |
| | | console.log(res) |
| | | this.tableData = res.data |
| | | }) |
| | | }, |
| | |
| | | |
| | | }, |
| | | handleSelectionChange () { |
| | | |
| | | this.selection = selection; |
| | | } |
| | | }, |
| | | } |