From fb6dbab0d7a1dd33d152861b0fbba30ed27f6602 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 09 四月 2024 23:16:34 +0800
Subject: [PATCH] update

---
 src/views/console/system/component-classification.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/views/console/system/component-classification.vue b/src/views/console/system/component-classification.vue
index 9d12ab6..2ccc6d1 100644
--- a/src/views/console/system/component-classification.vue
+++ b/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;
         }
     },

--
Gitblit v1.9.3