From 3ec67608bbf39b08e82a121c74528d59d5db982c Mon Sep 17 00:00:00 2001 From: hx <190679152@qq.com> Date: Sat, 14 Mar 2026 13:43:29 +0800 Subject: [PATCH] =?UTF-8?q?b=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/device.js | 8 + src/views/device/device/index.vue | 2135 ++++++++++++++--------------- src/views/login.vue | 496 ++++++- 3 files changed, 1484 insertions(+), 1155 deletions(-) diff --git a/src/api/device/device.js b/src/api/device/device.js index 41826bc..2a1aead 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -45,6 +45,14 @@ export function updateDevice(data) { }) } +export function updateDeviceAliasRemark(data) { + return request({ + url: '/device/device/alias-remark', + method: 'put', + data: data + }) +} + export function delDevice(id) { return request({ url: '/device/device/' + id, diff --git a/src/views/device/device/index.vue b/src/views/device/device/index.vue index 46512eb..a6dd80e 100644 --- a/src/views/device/device/index.vue +++ b/src/views/device/device/index.vue @@ -1,61 +1,41 @@  diff --git a/src/views/login.vue b/src/views/login.vue index c710e7b..e27a233 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,50 +1,194 @@ @@ -92,7 +236,6 @@ export default { loading: false, redirect: undefined }; - }, watch: { $route: { @@ -105,7 +248,25 @@ export default { created() { // this.getCookie(); }, + mounted() { + this.initParticles(); + }, methods: { + initParticles() { + const particlesContainer = document.getElementById('particles'); + if (particlesContainer) { + for (let i = 0; i < 40; i++) { + const particle = document.createElement('div'); + particle.className = 'particle'; + particle.style.left = Math.random() * 100 + '%'; + particle.style.animationDelay = Math.random() * 25 + 's'; + particle.style.animationDuration = (20 + Math.random() * 10) + 's'; + particle.style.width = (2 + Math.random() * 3) + 'px'; + particle.style.height = particle.style.width; + particlesContainer.appendChild(particle); + } + } + }, icoCreate(icoUrl) { var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); link.type = 'image/x-icon'; @@ -155,25 +316,226 @@ export default { + +/* 响应式 */ +@media (max-width: 1024px) { + .login-left { + flex: 0 0 50%; + } + .login-right { + flex: 0 0 50%; + } + .login-form { + width: 350px; + } +} + +@media (max-width: 768px) { + .login-left { + display: none; + } + .login-right { + flex: 0 0 100%; + } + .login-form { + width: 90%; + max-width: 400px; + } +} + \ No newline at end of file