From a1cadd023734d1e33f6455ec87fb7e2783d808fe Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期一, 11 三月 2024 16:04:14 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/ticket/ticket.js | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/ticket/ticket.js b/cloud-server-management/src/main/webapp/static/modular/system/ticket/ticket.js index 99ce781..936a40a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/ticket/ticket.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/ticket/ticket.js @@ -30,7 +30,7 @@ }, {title: '兑换地点', field: 'useScope', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { - return {1: "全国", 2: "指定城市", 3: "指定门店"}[value] + return {1: "全国", 2: "指定城市", 3: "指定门店",4:"指定场地"}[value] } }, {title: '用户人群', field: 'userPopulation', visible: true, align: 'center', valign: 'middle', @@ -42,9 +42,9 @@ }, {title: '限领数量', field: 'pickUpQuantity', visible: true, align: 'center', valign: 'middle' }, - {title: '已领数量', field: 'hasPickQty', visible: true, align: 'center', valign: 'middle' + {title: '已领数量', field: 'hasExchangeQty', visible: true, align: 'center', valign: 'middle' }, - {title: '已兑换数量', field: 'hasExchangeQty', visible: true, align: 'center', valign: 'middle' + {title: '已兑换数量', field: 'hasPickQty', visible: true, align: 'center', valign: 'middle' }, {title: '排序', field: 'sort', visible: true, align: 'center', valign: 'middle'}, {title: '活动状态', field: 'activeStatus', visible: true, align: 'center', valign: 'middle', @@ -57,6 +57,10 @@ return {1: "上架", 2: "下架"}[value] } }, + {title: '审核状态', field: 'auditStatus', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row, index) { + return {2: "待审核", 1: "已通过",3: "已拒绝"}[value] + }}, ]; }; function currentTime(timestamp){ @@ -160,6 +164,11 @@ */ TPointProducts.openEditPage = function () { if (this.check()) { + let size = TPointProducts.seItem.size + if(size>0){ + Feng.info("没有操作权限"); + return; + } var index = layer.open({ type: 2, title:'编辑', @@ -178,6 +187,11 @@ */ TPointProducts.onShelf = function () { if (this.check()){ + let size = TPointProducts.seItem.size + if(size>0){ + Feng.info("没有操作权限"); + return; + } var selected = $('#' + this.id).bootstrapTable('getSelections'); const data1 = { ids:[], @@ -211,6 +225,11 @@ */ TPointProducts.offShelf = function () { if (this.check()){ + let size = TPointProducts.seItem.size + if(size>0){ + Feng.info("没有操作权限"); + return; + } var selected = $('#' + this.id).bootstrapTable('getSelections'); const data1 = { ids:[], -- Gitblit v1.7.1