From 75bac456c3d66f6b173b1213776158c3bc5f8b96 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期日, 05 十一月 2023 09:45:24 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js index 2e5962f..4900d51 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/TCoupon.js @@ -37,7 +37,7 @@ }}, {title: '发放方式', field: 'distributionMethod', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { - return {1: "积分购买", 2: "注册赠送", 3: "自动发券"}[value] + return {1: "积分购买", 2: "注册赠送", 3: "自动发券",4:"课包赠送"}[value] }}, {title: '有效期', field: 'timeValue', visible: true, align: 'center', valign: 'middle'}, {title: '用户人群', field: 'userPopulation', visible: true, align: 'center', valign: 'middle', @@ -336,7 +336,6 @@ $(function () { // console.log("父级"+window.parent.document.getElementById("cityCode").val()) - console.log("父级" + window.parent.document.getElementById("cityCode").value); var defaultColunms = TCoupon.initColumn(); var table = new BSTable(TCoupon.id, "/tCouponManage/list1", defaultColunms); table.setPaginationType("client"); @@ -346,8 +345,14 @@ // params.customParam2 = window.parent.document.getElementById("cityCode").value; // return params; // }; - - table.queryParams = {'cityCode': window.parent.document.getElementById("cityCode").value,'storeId': window.parent.document.getElementById("storeId").value} - table.height=400 + var cityCode = "" + console.log("看看市") + console.log(window.parent.document.getElementById("cityCode")) + if (!window.parent.document.getElementById("cityCode")== null){ + cityCode = window.parent.document.getElementById("cityCode").value; + } + table.queryParams = {'cityCode': cityCode, + 'storeId': window.parent.document.getElementById("storeId").value} + table.height=600 TCoupon.table = table.init(); }); -- Gitblit v1.7.1