From 1eda841829c3e5ffdab59efa21c938c4d7653ab4 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 09 四月 2024 22:52:57 +0800
Subject: [PATCH] 分类维护

---
 src/views/console/system/interfaceConfig.vue              |   21 +++++++
 src/api/model/setting.js                                  |   19 ++++++
 src/views/console/system/vision-component-modify copy.vue |   21 +++++++
 src/views/console/system/component-classification.vue     |   75 +++++++++++++++++++++++++
 4 files changed, 136 insertions(+), 0 deletions(-)

diff --git a/src/api/model/setting.js b/src/api/model/setting.js
new file mode 100644
index 0000000..80f283e
--- /dev/null
+++ b/src/api/model/setting.js
@@ -0,0 +1,19 @@
+/*
+ * @Date: 2024-04-07 21:49:32
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-09 22:29:57
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/setting.js
+ */
+import config from "@/config"
+import http from "@/utils/request"
+
+export default {
+    getList: {
+        url: `${config.API_URL}/blade-visual/visual-comp-type/list`,
+		name: "鑾峰彇浼戞伅鏃ュ垪琛�",
+		get: async function(){
+			return await http.get(this.url);
+		}
+    },
+    
+}
\ No newline at end of file
diff --git a/src/views/console/system/component-classification.vue b/src/views/console/system/component-classification.vue
new file mode 100644
index 0000000..42080f8
--- /dev/null
+++ b/src/views/console/system/component-classification.vue
@@ -0,0 +1,75 @@
+<!--
+ * @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>
\ No newline at end of file
diff --git a/src/views/console/system/interfaceConfig.vue b/src/views/console/system/interfaceConfig.vue
new file mode 100644
index 0000000..ae4e30c
--- /dev/null
+++ b/src/views/console/system/interfaceConfig.vue
@@ -0,0 +1,21 @@
+<!--
+ * @Date: 2024-04-09 22:18:47
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-09 22:20:03
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/interfaceConfig.vue
+-->
+<template>
+    <div>
+        鐪嬫澘鎺ュ彛
+    </div>
+</template>
+
+<script>
+    export default {
+        
+    }
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/console/system/vision-component-modify copy.vue b/src/views/console/system/vision-component-modify copy.vue
new file mode 100644
index 0000000..891d207
--- /dev/null
+++ b/src/views/console/system/vision-component-modify copy.vue
@@ -0,0 +1,21 @@
+<!--
+ * @Date: 2024-04-09 22:18:47
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-09 22:19:02
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/vision-component-modify.vue
+-->
+<template>
+    <div>
+        缁勪欢缁存姢
+    </div>
+</template>
+
+<script>
+    export default {
+        
+    }
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file

--
Gitblit v1.9.3