From c8b2322c5c43b6e627ff724405281bc53c6c98f5 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期一, 11 十二月 2023 17:12:55 +0800 Subject: [PATCH] # --- src/main/webapp/views/deviceOperate/crnOperate.html | 47 +++++++++++++++++++++++++++-------------------- 1 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/main/webapp/views/deviceOperate/crnOperate.html b/src/main/webapp/views/deviceOperate/crnOperate.html index da33cc7..5e1daa1 100644 --- a/src/main/webapp/views/deviceOperate/crnOperate.html +++ b/src/main/webapp/views/deviceOperate/crnOperate.html @@ -234,27 +234,34 @@ }, requestOperate(method) { let that = this - $.ajax({ - url: baseUrl + "/crn/operator/" + 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' - }); + that.$confirm('姝ゆ搷浣滃瓨鍦ㄩ闄╋紝鏄惁缁х画','鎻愮ず',{ + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(()=>{ + $.ajax({ + url: baseUrl + "/crn/operator/" + 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' + }); + } } - } - }); + }); + }) + }, updateEnableInOut(type) { let that = this -- Gitblit v1.9.1