From cbeeaa361e7898509485d144a904fb36eea766e4 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 10 四月 2023 11:55:12 +0800 Subject: [PATCH] 修改日志存储 --- management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver.js | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver.js b/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver.js index 9bbeebf..87d1678 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver.js @@ -72,7 +72,7 @@ return '<a href="#" onclick="TDriver.searchTDriverDetail('+row.id+')" style="color:green">详情</a>' +' ' + '<a href="#" onclick="TDriver.stop('+row.id+','+row.status+')" style="color:red">冻结</a>' +' ' + '<a href="#" onclick="TDriver.updateInfo('+row.id+')" style="color:green">编辑</a>' - }else if (row.status === 2){ + }else if (row.status === 2 || row.approvalStatus === 2){ return '<a href="#" onclick="TDriver.searchTDriverDetail('+row.id+')" style="color:green">详情</a>' +' ' + '<a href="#" onclick="TDriver.start('+row.id+','+row.status+')" style="color:green">解冻</a>' } @@ -234,6 +234,18 @@ * 提交充值 */ TDriver.rechargeBalance = function () { + var balance = $('#backgroundBalance').val().trim(); + var reg=/^[1-9]\d*$/;//由 1-9开头 的正则表达式 + //先判断是否为整数 在判断 是否在 1-总页 整数范围之内 + if(reg.test(balance)){ + if(parseInt(balance) <= 0){ + Feng.error("请输入大于0的正整数"); + return; + } + }else{ + Feng.error("请输入大于0的正整数"); + return; + } var ajax = new $ax(Feng.ctxPath + "/tDriver/recharge-balance", function (data) { Feng.success("修改成功!"); TDriverInfoDlg.close(); -- Gitblit v1.7.1