From 02fb8cddb6c0ec60b6ba6d08beb673214d9b6959 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期一, 25 九月 2023 17:26:21 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- 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