From b1a0d701cf898c8b7812e66a808a1c91f2bae6cc Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 17 三月 2026 16:44:11 +0800
Subject: [PATCH] 2026.3.17
---
src/views/system/SystemManage.vue | 102 ---------------------------------------------------
1 files changed, 0 insertions(+), 102 deletions(-)
diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue
index c429e89..188cfc4 100644
--- a/src/views/system/SystemManage.vue
+++ b/src/views/system/SystemManage.vue
@@ -60,108 +60,6 @@
/>
</div>
</el-tab-pane>
-
- <!-- 椁愰ギ搴楅摵绠$悊 -->
- <el-tab-pane label="椁愰ギ搴楅摵绠$悊" name="restaurants">
- <div class="tab-content">
- <!-- 鎼滅储鍜屾坊鍔犳寜閽� -->
- <div class="search-add-bar">
- <el-input
- v-model="restaurantSearchQuery"
- placeholder="鎼滅储搴楅摵"
- style="width: 200px"
- prefix-icon="el-icon-search"
- />
- <el-button type="primary" @click="openRestaurantDialog">
- <el-icon><Plus /></el-icon> 娣诲姞搴楅摵
- </el-button>
- </div>
-
- <!-- 搴楅摵琛ㄦ牸 -->
- <el-table :data="filteredRestaurants" style="width: 100%">
- <el-table-column prop="id" label="ID" width="80" />
- <el-table-column prop="name" label="搴楅摵鍚嶇О" />
- <el-table-column prop="address" label="鍦板潃" />
- <el-table-column prop="contact" label="鑱旂郴浜�" />
- <el-table-column prop="phone" label="鑱旂郴鐢佃瘽" />
- <el-table-column label="鎿嶄綔" width="250">
- <template #default="scope">
- <el-button size="small" @click="editRestaurant(scope.row)"> 缂栬緫 </el-button>
- <el-button size="small" type="danger" @click="deleteRestaurant(scope.row.id)">
- 鍒犻櫎
- </el-button>
- <el-button size="small" @click="manageDevices(scope.row)"> 璁惧绠$悊 </el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <!-- 鍒嗛〉 -->
- <el-pagination
- v-model:current-page="restaurantCurrentPage"
- v-model:page-size="restaurantPageSize"
- :page-sizes="[10, 20, 50]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="restaurants.length"
- style="margin-top: 20px"
- />
- </div>
- </el-tab-pane>
-
- <!-- 璁惧绠$悊 -->
- <el-tab-pane label="璁惧绠$悊" name="devices">
- <div class="tab-content" v-if="selectedRestaurant">
- <h3>{{ selectedRestaurant.name }} - 璁惧鍒楄〃</h3>
-
- <!-- 鎼滅储鍜屾坊鍔犳寜閽� -->
- <div class="search-add-bar">
- <el-input
- v-model="deviceSearchQuery"
- placeholder="鎼滅储璁惧"
- style="width: 200px"
- prefix-icon="el-icon-search"
- />
- <el-button type="primary" @click="openDeviceDialog">
- <el-icon><Plus /></el-icon> 娣诲姞璁惧
- </el-button>
- </div>
-
- <!-- 璁惧琛ㄦ牸 -->
- <el-table :data="filteredDevices" style="width: 100%">
- <el-table-column prop="id" label="ID" width="80" />
- <el-table-column prop="deviceId" label="璁惧缂栧彿" />
- <el-table-column prop="type" label="璁惧绫诲瀷" />
- <el-table-column prop="status" label="鐘舵��">
- <template #default="scope">
- <el-tag :type="scope.row.status === 'online' ? 'success' : 'danger'">
- {{ scope.row.status === 'online' ? '鍦ㄧ嚎' : '绂荤嚎' }}
- </el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="installDate" label="瀹夎鏃ユ湡" />
- <el-table-column label="鎿嶄綔" width="200">
- <template #default="scope">
- <el-button size="small" @click="editDevice(scope.row)"> 缂栬緫 </el-button>
- <el-button size="small" type="danger" @click="deleteDevice(scope.row.id)">
- 鍒犻櫎
- </el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <!-- 鍒嗛〉 -->
- <el-pagination
- v-model:current-page="deviceCurrentPage"
- v-model:page-size="devicePageSize"
- :page-sizes="[10, 20, 50]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="devices.length"
- style="margin-top: 20px"
- />
- </div>
- <div class="tab-content" v-else>
- <el-empty description="璇峰厛閫夋嫨涓�涓楗簵閾�" />
- </div>
- </el-tab-pane>
</el-tabs>
</el-card>
--
Gitblit v1.9.3