From 1035e4729e03c10138adfcf4b6788b24778e9469 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期四, 10 八月 2023 16:39:21 +0800 Subject: [PATCH] 日志 --- src/main/webapp/views/commandManage/commandManage.html | 90 -------------------------------------------- 1 files changed, 1 insertions(+), 89 deletions(-) diff --git a/src/main/webapp/views/commandManage/commandManage.html b/src/main/webapp/views/commandManage/commandManage.html index fe8ee81..81e2487 100644 --- a/src/main/webapp/views/commandManage/commandManage.html +++ b/src/main/webapp/views/commandManage/commandManage.html @@ -53,7 +53,7 @@ </el-dropdown> </template> </el-table-column> - <el-table-column property="id" label="鎸囦护缂栧彿"> + <el-table-column property="id" label="#ID"> </el-table-column> <el-table-column property="wrkNo" label="宸ヤ綔鍙�"> </el-table-column> @@ -178,100 +178,12 @@ } this.getTableData() }, - handleCommand(command, row) { - switch (command) { - case "showTask": - //鏌ョ湅浠诲姟 - this.showTask(row) - break; - case "executeCommand": - //鎵ц鎸囦护 - this.executeCommand(row) - break; - case "completeCommand": - //瀹屾垚鎸囦护 - this.completeCommand(row) - break; - } - }, - showTask(row) { - //鏌ョ湅浠诲姟 - $layui.layer.open({ - type: 2, - title: '浠诲姟绠$悊', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: true, - content: '../taskWrk/taskWrk.html?taskNo=' + row.taskNo + "&wrkNo=" + row.wrkNo, - success: function(layero, index) {} - }); - }, tableRowClassName({row, rowIndex}) { if (rowIndex === this.commandStep) { return 'success-row'; } return ''; }, - executeCommand(row) { - //鎵ц鎸囦护 - let that = this - $.ajax({ - url: baseUrl + "/commandInfo/executeCommand", - headers: { - 'token': localStorage.getItem('token') - }, - data: { - id: row.id - }, - method: 'POST', - success: function(res) { - if (res.code == 200) { - that.$message({ - message: "鎵ц鎴愬姛", - type: 'success' - }); - that.getTableData() - } else if (res.code === 403) { - top.location.href = baseUrl + "/"; - } else { - that.$message({ - message: res.msg, - type: 'error' - }); - } - } - }); - }, - completeCommand(row) { - //瀹屾垚鎸囦护 - let that = this - $.ajax({ - url: baseUrl + "/commandInfo/completeCommand", - headers: { - 'token': localStorage.getItem('token') - }, - data: { - id: row.id - }, - method: 'POST', - success: function(res) { - if (res.code == 200) { - that.$message({ - message: "瀹屾垚鎴愬姛", - type: 'success' - }); - that.getTableData() - } else if (res.code === 403) { - top.location.href = baseUrl + "/"; - } else { - that.$message({ - message: res.msg, - type: 'error' - }); - } - } - }); - } } }) </script> -- Gitblit v1.9.1