From 232d3efb20f87f9c60faeda7bae4bc96e5687bd3 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期三, 11 十月 2023 19:19:47 +0800
Subject: [PATCH] 10.12
---
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