From e030255c23c7ba3e2cbad1036a810d6d72fa864f Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期四, 26 十月 2023 18:04:58 +0800 Subject: [PATCH] 修改bug --- cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js index 962bc3d..2e5962f 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js @@ -93,7 +93,19 @@ TCoupon.backids = function (i) { console.log("aaaaaa"+i) - if (this.check()) { + + var selected = $('#' + this.id).bootstrapTable('getSelections'); + // if(selected.length == 0){ + // Feng.info("请先选中表格中的某一记录!"); + // return false; + // }else{ + + + // return true; + // } + if (selected.length != 0) { + TCoupon.seItem = selected[0]; + TCoupon.seItem1 = selected; var ids = TCoupon.seItem1.map(function(item) { return item.id; @@ -110,6 +122,10 @@ // // } window.parent.layer.closeAll(); + }else { + window.parent.document.getElementById("counpons"+i).value = ""; + window.parent.layer.closeAll(); + } }; -- Gitblit v1.7.1