| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:18:47 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-09 22:57:11 |
| | | * @LastEditTime: 2024-04-09 23:14:53 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/component-classification.vue |
| | | * 分类维护 |
| | | --> |
| | | <template> |
| | | <el-container> |
| | | <el-header style="justify-content: flex-start;"> |
| | | <el-button type="primary">新增</el-button> |
| | | <el-button type="danger">删除</el-button> |
| | | <el-button type="primary" plain @click="add">新增</el-button> |
| | | <el-button @click="del" plain type="danger" :disabled="selection.length == 0">删除</el-button> |
| | | </el-header> |
| | | <el-main> |
| | | <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' }"> |
| | |
| | | this.queryList() |
| | | }, |
| | | methods: { |
| | | add () { |
| | | alert(2) |
| | | }, |
| | | del () { |
| | | alert(1) |
| | | }, |
| | | queryList () { |
| | | this.$API.setting.getList.get().then(res => { |
| | | this.tableData = res.data |
| | |
| | | table_del() { |
| | | |
| | | }, |
| | | handleSelectionChange () { |
| | | handleSelectionChange (selection) { |
| | | this.selection = selection; |
| | | } |
| | | }, |