From e030255c23c7ba3e2cbad1036a810d6d72fa864f Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期四, 26 十月 2023 18:04:58 +0800 Subject: [PATCH] 修改bug --- cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 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 f9a78a2..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 @@ -14,7 +14,7 @@ TCoupon.initColumn = function () { return [ {field: 'selectItem', radio: true}, - {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, + {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, {title: '优惠券名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, {title: '适用范围', field: 'useScope', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { @@ -44,6 +44,10 @@ {title: '可售状态', field: 'state', visible: true, align: 'center', valign: 'middle', 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