From d299420aba3a19363755cee0c2b2d8ae93fea928 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 01 九月 2025 15:44:30 +0800
Subject: [PATCH] bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js b/cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js
index d8cd0ee..5642d72 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js
@@ -28,17 +28,27 @@
                 return {0:"否",1:"是"}[data]
             }
         },
+        {title: '权限展示', field: 'menuShow', visible: false, align: 'center', valign: 'middle',
+            formatter:function (data) {
+                return {2:"否",1:"是"}[data]
+            }
+        },
         {title: '备注', field: 'remark', visible: true, align: 'center', valign: 'middle'},
         { title: '操作', field: 'remark', visible: true, align: 'center', valign: 'middle',
             formatter: function (data,row) {
                 // row.redCode存储的设备二维码连接
                 var temp = row.isRefund;
+                var menuShow = row.menuShow;
                 var id = row.id;
                 // 已退费不展示按钮
-                if (temp==0){
+                if (temp==0 && menuShow==1){
                     var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" >'+'会员退费'+'</button>'
                     btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>']
                     return btn;
+                }else if (temp==0 && menuShow==2){
+                    var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" disabled>'+'会员退费'+'</button>'
+                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>']
+                    return btn;
                 }else{
                     return '已退费';
                 }

--
Gitblit v1.7.1