From e36b8abdfbdfc1ea021eb83237cb5ff5c13f7e59 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 24 十月 2025 18:24:36 +0800
Subject: [PATCH] *
---
src/main/webapp/views/index.html | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 55 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index f98cbf7..adfffa2 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -147,8 +147,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 +392,30 @@
this.getValueSystem()
this.getLicenseDays()
+ // 楂橀鏇存柊锛氬皬杞﹀拰璁惧浣嶇疆锛�1绉掞級
setInterval(() => {
this.getTableDataRgv()
this.getTableDataDev()
- this.getTableDataTrack()
this.getTableDataLeft()
- this.getTableDataLeft1()
this.getTableDataRight()
+ }, 1500)
+
+ // 浣庨鏇存柊锛氫换鍔″垪琛ㄧ瓑锛�5绉掞級
+ setInterval(() => {
+ this.getTableDataLeft1()
this.getTableDataRight1()
this.getValueSystem()
- this.getLicenseDays()
+ }, 10*1000)
- }, 1000)
+ // 浣庨鏇存柊锛氳鍙瘉淇℃伅锛�30绉掞級
+ setInterval(() => {
+ this.getLicenseDays()
+ }, 30000)
+
+ // 浣庨鏇存柊锛氳鍙瘉淇℃伅锛�30绉掞級
+ setInterval(() => {
+ this.getTableDataTrack()
+ }, 60*60*1000)
},
// 鑾峰彇瀹瑰櫒瀹為檯灏哄
updateContainerSize() {
@@ -505,6 +529,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