From 0069b25d77cf2dd36b030fa4c86d4f3738f552e8 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期二, 13 五月 2025 08:44:37 +0800 Subject: [PATCH] 跑库测试程序 --- src/main/webapp/views/deviceOperate/devpOperate.html | 55 ++++++++++++++++++++++++++++++++----------------------- 1 files changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/webapp/views/deviceOperate/devpOperate.html b/src/main/webapp/views/deviceOperate/devpOperate.html index f773bef..8dd7e98 100644 --- a/src/main/webapp/views/deviceOperate/devpOperate.html +++ b/src/main/webapp/views/deviceOperate/devpOperate.html @@ -15,7 +15,7 @@ <div id="app" style="display: flex;justify-content: center;flex-wrap: wrap;"> <div style="width: 100%;"> <el-table ref="singleTable" :data="tableData" highlight-current-row @row-click="handleRowClick" - max-height="250" style="width: 100%"> + max-height="450" style="width: 100%"> <el-table-column property="devNo" label="绔欏彿"> </el-table-column> <el-table-column property="workNo" label="宸ヤ綔鍙�"> @@ -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