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 | 82 ++++++++++++++++++++++++++++++++++++++---
1 files changed, 76 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index f98cbf7..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,8 +159,20 @@
<el-button
type="danger"
size="small"
- @click="taskDelete(scope.row)">
+ @click.native="taskDelete(scope.row)">
鍒犻櫎
+ </el-button>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鎿嶄綔"
+ type="template">
+ <template slot-scope="scope">
+ <el-button
+ type="danger"
+ size="small"
+ @click.native="taskDelete1(scope.row)">
+ 鍒濆鍖�
</el-button>
</template>
</el-table-column>
@@ -380,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() {
@@ -505,6 +549,32 @@
});
});
},
+ taskDelete1(row) {
+ let that = this;
+ that.$confirm('纭瑕佸垵濮嬪寲璇ヤ换鍔″悧?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ $.ajax({
+ url: baseUrl + "/rgv/disable/task/delete1",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ data: {
+ wrkNo: row.wrkNo
+ },
+ success: function (res) {
+ if (res.code === 200) {
+ that.$message.success('鍒濆鍖栨垚鍔�');
+ // 鍒犻櫎褰撳墠琛�
+ // that.tableDataRight.splice(that.tableDataRight.indexOf(row), 1);
+ } else {
+ that.$message.error('鍒濆鍖栧け璐�');
+ }
+ }
+ });
+ });
+ },
toggleStatus(index, row) {
let that = this;
const currentStatus = row.status;
--
Gitblit v1.9.1