From 1bc0b18a88ed90fa19e0c050d7befecb2a16bb8a Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期五, 10 十月 2025 12:38:27 +0800
Subject: [PATCH] *
---
src/main/webapp/views/index.html | 48 +++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 1204dde..a3bd79f 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -102,7 +102,7 @@
.task-bar-left1 {
position: fixed;
- top: 5%;
+ top: 8%;
/*transform: translateY(-50%);*/
width: 25%; /* 璁剧疆瀹藉害 */
background-color: rgba(255, 255, 255, 0); /* 鍗婇�忔槑鑳屾櫙 */
@@ -332,6 +332,12 @@
label="鎿嶄綔"
type="template">
<template slot-scope="scope">
+ <el-button
+ type="danger"
+ size="small"
+ @click="taskDelete1(scope.row)">
+ 鍒濆鍖�
+ </el-button>
<el-button
type="danger"
size="small"
@@ -610,7 +616,7 @@
},
taskDelete(row) {
let that = this;
- that.$confirm('纭瑕佸垹闄よ璁惧鍚�?', '鎻愮ず', {
+ that.$confirm('纭瑕佸垹闄よ浠诲姟鍚�?', '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
type: 'warning'
@@ -629,6 +635,32 @@
that.tableDataRight.splice(that.tableDataRight.indexOf(row), 1);
} else {
that.$message.error('鍒犻櫎澶辫触');
+ }
+ }
+ });
+ });
+ },
+ 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('鍒濆鍖栧け璐�');
}
}
});
@@ -724,7 +756,9 @@
}
}
});
-
+ // setTimeout(function() {
+ //
+ // }, 1000);
},
getValueSystem() {
let that = this;
@@ -744,11 +778,11 @@
},
upDateValueSystem(){
let that = this;
+ let operatorTypeI = 0;
+ if (that.valueSystem){
+ operatorTypeI = 1;
+ }
this.verifyPassword(() => {
- let operatorTypeI = 0;
- if (that.valueSystem){
- operatorTypeI = 1;
- }
$.ajax({
url: baseUrl + "/console/system/switch",
headers: {'token': localStorage.getItem('token')},
--
Gitblit v1.9.1