gaoshp
2024-04-09 fb6dbab0d7a1dd33d152861b0fbba30ed27f6602
update
已修改1个文件
14 ■■■■ 文件已修改
src/views/console/system/component-classification.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/system/component-classification.vue
@@ -1,15 +1,15 @@
<!--
 * @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' }">
@@ -54,6 +54,12 @@
        this.queryList()
    },
    methods: {
        add () {
            alert(2)
        },
        del () {
            alert(1)
        },
        queryList () {
            this.$API.setting.getList.get().then(res => {
                this.tableData = res.data
@@ -65,7 +71,7 @@
        table_del() {
        },
        handleSelectionChange () {
        handleSelectionChange (selection) {
            this.selection = selection;
        }
    },