From e99324b70510afdff4175a484e976cb0e804411b Mon Sep 17 00:00:00 2001 From: luo <2855143437@qq.com> Date: 星期一, 25 九月 2023 16:18:45 +0800 Subject: [PATCH] 9.25 --- 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