1
lzhe
2024-04-10 e1b2ec62795348ce0205b8b279827ce84246bc84
1
已修改1个文件
17 ■■■■ 文件已修改
src/views/console/system/component-classification.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/system/component-classification.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-09 22:18:47
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-09 23:14:53
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-04-10 10:26:42
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/component-classification.vue
 * 分类维护
-->
@@ -12,7 +12,7 @@
            <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' }">
            <el-table :data="tableData" style="width: 100%;margin-bottom: 20px;" row-key="id" border default-expand-all lazy :load="tableLoad">
                <el-table-column type="selection" width="55" />
                <el-table-column prop="name" label="分类名称" />
                <el-table-column prop="icon" label="分类图标">
@@ -54,6 +54,9 @@
        this.queryList()
    },
    methods: {
        tableLoad(row,treeNode,resolve) {
                resolve(row.children);
        },
        add () {
            alert(2)
        },
@@ -62,8 +65,14 @@
        },
        queryList () {
            this.$API.setting.getList.get().then(res => {
                this.tableData = res.data
                this.tableData = res.data;
                console.log(this.tableData,222)
            })
            // this.$HTTP.get("/api/blade-system/menu/lazy-list",this.searchData).then(res=> {
            //         if(res.code == 200) {
            //             this.tableData = res.data;
            //         }
            //     })
        },
        table_edit() {