From c64b495fa07b7d381df66590894109fb672c20f0 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期四, 08 五月 2025 14:57:50 +0800
Subject: [PATCH] #
---
src/main/webapp/views/deviceOperate/devpOperate.html | 53 +++++++++++++++++++++++++++++++----------------------
1 files changed, 31 insertions(+), 22 deletions(-)
diff --git a/src/main/webapp/views/deviceOperate/devpOperate.html b/src/main/webapp/views/deviceOperate/devpOperate.html
index 785df61..8dd7e98 100644
--- a/src/main/webapp/views/deviceOperate/devpOperate.html
+++ b/src/main/webapp/views/deviceOperate/devpOperate.html
@@ -54,7 +54,9 @@
</el-form-item>
</el-form>
<div>
- <el-button @click="requestOperate('put')" type="primary">鏇存柊</el-button>
+ <el-button @click="requestOperate('update')" type="primary">鏇存柊</el-button>
+ <el-button @click="requestOperate('out')" type="warning">鍙栬揣瀹屾垚</el-button>
+ <el-button @click="requestOperate('in')" type="warning">鏀捐揣瀹屾垚</el-button>
</div>
</div>
</el-card>
@@ -158,29 +160,36 @@
}
});
},
- requestOperate() {
+ requestOperate(method) {
let that = this
- $.ajax({
- url: baseUrl + "/site/detl/update",
- headers: {
- 'token': localStorage.getItem('token')
- },
- data: this.formParam,
- method: 'POST',
- success: function (res) {
- if (res.code == 200) {
- that.$message({
- message: res.msg,
- type: 'success'
- });
- } else {
- that.$message({
- message: res.msg,
- type: 'error'
- });
+ that.$confirm('姝ゆ搷浣滃瓨鍦ㄩ闄╋紝鏄惁缁х画','鎻愮ず',{
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(()=>{
+ $.ajax({
+ url: baseUrl + "/site/detl/"+method,
+ headers: {
+ 'token': localStorage.getItem('token')
+ },
+ data: this.formParam,
+ method: 'POST',
+ success: function (res) {
+ if (res.code == 200) {
+ that.$message({
+ message: res.msg,
+ type: 'success'
+ });
+ } else {
+ that.$message({
+ message: res.msg,
+ type: 'error'
+ });
+ }
}
- }
- });
+ });
+ })
+
}
}
})
--
Gitblit v1.9.1