From 5ecb954f03f2da90df620155cc98edf3b8184b3d Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期四, 26 十月 2023 15:07:33 +0800
Subject: [PATCH] 修改bug

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

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
index 037d16f..0795f36 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
@@ -45,6 +45,10 @@
             formatter: function (value, row, index) {
                 return {1: "上架", 2: "下架"}[value]
             }},
+        {title: '审核状态', field: 'auditStatus', visible: true, align: 'center', valign: 'middle',
+            formatter: function (value, row, index) {
+                return {1: "待审核", 2: "已通过",3: "已拒绝"}[value]
+            }},
     ];
 };
 
@@ -83,6 +87,11 @@
  */
 TCoupon.openChange = function () {
     if (this.check()){
+        let size = TCoupon.seItem.size
+        if(size>0){
+            Feng.info("没有该权限");
+            return;
+        }
         let id = TCoupon.seItem.id
         let name = TCoupon.seItem.name
         let quantityIssued = TCoupon.seItem.quantityIssued
@@ -238,6 +247,11 @@
 };
 TCoupon.onShelf = function (e) {
     if (this.check()) {
+        let size = TCoupon.seItem.size
+        if(size>0){
+            Feng.info("没有该权限");
+            return;
+        }
         var ajax = new $ax(Feng.ctxPath + "/tCouponManage/onShelf", function(data){
             if(data.code==200){
                 Feng.success("操作成功!")

--
Gitblit v1.7.1