From daa2cec25875276f3462e09d102f9d2fd52a96e1 Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期三, 18 三月 2026 16:03:43 +0800
Subject: [PATCH] *
---
src/main/webapp/views/index.html | 46 +++++++++++++++++++++++++++++++++++++++-------
1 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 5fd0a72..f0b14fc 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -5,6 +5,7 @@
<title>鐜舰绌挎杞︽櫤鑳界郴缁�</title>
<link rel="stylesheet" href="../static/css/element.css">
<link rel="stylesheet" href="../static/css/indexHCDD.css">
+ <link rel="stylesheet" href="../static/css/indexHCDDXKD.css">
<link rel="stylesheet" href="../static/css/element-ui.css">
<link rel="icon" href="../static/images/favicon.ico" type="image/x-icon">
<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
@@ -20,6 +21,17 @@
<div class="particles-container" id="particles-container"></div>
</div>
<div id="app">
+
+ <!-- 鏂板鐨勮鍙瘉妯箙锛屾斁鍦� header 涔嬪悗锛宎pp 涔嬪墠 -->
+ <div v-if="licenseDayI <= 30"
+ :class="['license-banner', licenseDayI <= 0 ? 'expired' : licenseDayI <= 7 ? 'urgent' : 'warning']"
+ style="z-index: 9999;">
+ <div class="license-content">
+ <i :class="licenseDayI <= 0 ? 'el-icon-error' : licenseDayI <= 7 ? 'el-icon-warning' : 'el-icon-info'"></i>
+ <span class="license-text">{{ licenseDay }}</span>
+ <span v-if="licenseDayI > 0" class="license-days">{{ licenseDayI }} 澶�</span>
+ </div>
+ </div>
<div class="map">
<div class="system-control-panel">
<div class="system-status">
@@ -147,7 +159,7 @@
<el-button
type="danger"
size="small"
- @click="taskDelete(scope.row)">
+ @click.native="taskDelete(scope.row)">
鍒犻櫎
</el-button>
</template>
@@ -159,7 +171,7 @@
<el-button
type="danger"
size="small"
- @click="taskDelete1(scope.row)">
+ @click.native="taskDelete1(scope.row)">
鍒濆鍖�
</el-button>
</template>
@@ -392,18 +404,38 @@
this.getValueSystem()
this.getLicenseDays()
+ // 楂橀鏇存柊锛氬皬杞﹀拰璁惧浣嶇疆锛�1.5绉掞級
setInterval(() => {
this.getTableDataRgv()
- this.getTableDataDev()
- this.getTableDataTrack()
+ }, 1000)
+
+ // 楂橀鏇存柊锛氬疄鏃朵换鍔″垪琛ㄧ瓑锛�2绉掞級
+ setInterval(() => {
this.getTableDataLeft()
- this.getTableDataLeft1()
this.getTableDataRight()
+ }, 2000)
+
+ // 楂橀鏇存柊锛氬疄鏃剁珯鐐逛俊鎭瓑锛�3绉掞級
+ setInterval(() => {
+ this.getTableDataDev()
+ }, 3000)
+
+ // 浣庨鏇存柊锛氫换鍔″垪琛ㄧ瓑锛�10绉掞級
+ setInterval(() => {
+ this.getTableDataLeft1()
this.getTableDataRight1()
this.getValueSystem()
- this.getLicenseDays()
+ }, 10*1000)
- }, 1000)
+ // 浣庨鏇存柊锛氳鍙瘉淇℃伅锛�30绉掞級
+ setInterval(() => {
+ this.getLicenseDays()
+ }, 30000)
+
+ // 闈欐�佷綆棰戞洿鏂帮細PLC锛�1灏忔椂锛�
+ setInterval(() => {
+ this.getTableDataTrack()
+ }, 60*60*1000)
},
// 鑾峰彇瀹瑰櫒瀹為檯灏哄
updateContainerSize() {
--
Gitblit v1.9.1