¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:18:47 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-09 22:52:11 |
| | | * @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-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-column type="selection" width="55" /> |
| | | <el-table-column prop="name" label="åç±»åç§°" /> |
| | | <el-table-column prop="icon" label="åç±»å¾æ "> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="åç±»ç¼å·" /> |
| | | <el-table-column prop="orderNum" label="æå顺åº" /> |
| | | <el-table-column prop="status" label="ç¶æ"> |
| | | <template #default="scope"> |
| | | <span>{{scope.row.status === 1 ? 'å¯ç¨' : 'åç¨'}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" fixed="right" align="left" width="160"> |
| | | <template #default="scope"> |
| | | <el-button-group> |
| | | <el-button text type="primary" size="small" |
| | | @click="table_edit(scope.row, scope.$index)">ç¼è¾</el-button> |
| | | <el-popconfirm title="ç¡®å®å é¤åï¼" @confirm="table_del(scope.row, scope.$index, '0')"> |
| | | <template #reference> |
| | | <el-button text type="primary" size="small">å é¤</el-button> |
| | | </template> |
| | | </el-popconfirm> |
| | | </el-button-group> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-main> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.queryList() |
| | | }, |
| | | methods: { |
| | | queryList () { |
| | | this.$API.setting.getList.get().then(res => { |
| | | console.log(res) |
| | | this.tableData = res.data |
| | | }) |
| | | }, |
| | | table_edit() { |
| | | |
| | | }, |
| | | table_del() { |
| | | |
| | | }, |
| | | handleSelectionChange () { |
| | | |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |