From 2bb111939922d8e48fe11374bfe8ef2834a5bb43 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期五, 17 十一月 2023 19:51:01 +0800
Subject: [PATCH] 后台bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
index 9f6de19..c97f99c 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
@@ -20,6 +20,11 @@
 
 CoursePackageDiscount.audit = function () {
     var id = $("#id").val();
+    var type = $("#type").val();
+    if (type=="未通过"){
+        Feng.error("当前状态不能再次审核!")
+        return ;
+    }
     let audit = document.querySelector('input[name="r1"]:checked').value;
     let text = $("#text").val()
     if(audit==3){
@@ -430,6 +435,9 @@
 
     let index = $('#classHours').find('button[checked]').attr('index');
     let obj = CoursePackageDiscount.coursePackagePaymentConfig[index];
+    console.log(obj)
+    console.log("看看obj")
+
     $('#payment').text(obj.payment);
     $('#cashPayment').text(obj.cashPayment);
 
@@ -453,6 +461,11 @@
 
 
 $(function () {
+    var type2 = $('#type2').val();
+    if (type2 == 3){
+        console.log("进入隐藏")
+        $('#classHours').hide();
+    }
     CoursePackageDiscount.coursePackagePaymentConfig = JSON.parse($('#coursePackagePaymentConfig').val());
     let htmlStr = '';
     for (let i = 0; i < CoursePackageDiscount.coursePackagePaymentConfig.length; i++) {

--
Gitblit v1.7.1