From 23b4e7942a8524ed1e89d93c55a470f0dc263d5a Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 06 六月 2025 13:54:01 +0800
Subject: [PATCH] *

---
 src/main/webapp/views/index.html |   60 +++++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 43 insertions(+), 17 deletions(-)

diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 9e060ac..34863fd 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -60,14 +60,14 @@
         .station {
             position: absolute;
             width: 20px;
-            height: 24px;
-            /*border-radius: 50%;*/
+            height: 14px;
             text-align: center;
-            line-height: 24px;
+            line-height: 1.5; /* 璋冩暣琛岄珮涓庡瓧浣撳ぇ灏忕殑姣斿�� */
+            font-size: 10px; /* 璁剧疆鏇村皬鐨勫瓧浣� */
             font-weight: bold;
             transition: transform 0.3s ease;
             background-color: #ab1839;
-            transform: scale(1.2);
+            transform: scale(1); /* 鍙�夛細濡傛灉涓嶉渶瑕佹斁澶ф晥鏋� */
         }
         .bus {
             font-size: 10px;
@@ -286,6 +286,14 @@
                             prop="modiTime"
                             label="涓嬪彂鏃堕棿">
                     </el-table-column>
+                    <el-table-column
+                            prop="crnStrTime"
+                            label="寮�濮嬫墽琛屾椂闂�">
+                    </el-table-column>
+                    <el-table-column
+                            prop="crnEndTime"
+                            label="鎵ц缁撴潫鏃堕棿">
+                    </el-table-column>
 <!--                    <el-table-column-->
 <!--                            prop="modiTime"-->
 <!--                            label="鏇存柊鏃堕棿">-->
@@ -446,6 +454,22 @@
 
                     }, 1000)
                 },
+
+                verifyPassword(callback) {
+                    this.$prompt('璇疯緭鍏ョ鐞嗗憳瀵嗙爜', '楠岃瘉', {
+                        confirmButtonText: '纭畾',
+                        cancelButtonText: '鍙栨秷',
+                        inputType: 'password',
+                        inputPattern: /^root$/,
+                        inputErrorMessage: '瀵嗙爜閿欒'
+                    }).then(({ value }) => {
+                        if (value === 'root') {
+                            callback();
+                        }
+                    }).catch(() => {
+                        this.$message.info('宸插彇娑堟搷浣�');
+                    });
+                },
                 handleChange(val) {
                     console.log(val);
                     if (val.length === 0){
@@ -578,20 +602,22 @@
                 },
                 upDateValueSystem(){
                     let that = this;
-                    let operatorTypeI = 0;
-                    if (that.valueSystem){
-                        operatorTypeI = 1;
-                    }
-                    $.ajax({
-                        url: baseUrl + "/console/system/switch",
-                        headers: {'token': localStorage.getItem('token')},
-                        data: {operatorType : operatorTypeI},
-                        method: 'POST',
-                        success: function (res) {
-                            if (res.code === 200) {
-                                that.valueSystem = res.data.status;
-                            }
+                    this.verifyPassword(() => {
+                        let operatorTypeI = 0;
+                        if (that.valueSystem){
+                            operatorTypeI = 1;
                         }
+                        $.ajax({
+                            url: baseUrl + "/console/system/switch",
+                            headers: {'token': localStorage.getItem('token')},
+                            data: {operatorType : operatorTypeI},
+                            method: 'POST',
+                            success: function (res) {
+                                if (res.code === 200) {
+                                    that.valueSystem = res.data.status;
+                                }
+                            }
+                        });
                     });
                 },
                 getTableDataLeft() {

--
Gitblit v1.9.1