From 8d5c70aef9cbacbcc412d73c4b730e21f94e6514 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 30 六月 2025 09:04:10 +0800 Subject: [PATCH] 1 --- src/main/webapp/views/deviceOperate/crnOperate.html | 49 ++++++++++++++++++++++++++++--------------------- 1 files changed, 28 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/views/deviceOperate/crnOperate.html b/src/main/webapp/views/deviceOperate/crnOperate.html index da33cc7..f606a22 100644 --- a/src/main/webapp/views/deviceOperate/crnOperate.html +++ b/src/main/webapp/views/deviceOperate/crnOperate.html @@ -79,7 +79,7 @@ <el-button @click="requestOperate('siteMove')" type="primary">绔欏埌绔�</el-button> <el-button @click="requestOperate('taskComplete')" type="primary">浠诲姟瀹屾垚</el-button> <el-button @click="requestOperate('clearCommand')" type="primary">娓呴櫎鍛戒护</el-button> - <el-button @click="requestOperate('handleReset')" type="primary">澶嶄綅</el-button> + <el-button @click="requestOperate('reset')" type="primary">澶嶄綅</el-button> <br/> <br/> <el-button @click="requestOperate('auto')" type="warning">鑱旀満</el-button> @@ -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