From 41c07e4558ed3a1cbdda0711f78cd3a812c06829 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期四, 28 九月 2023 18:34:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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