记得上下班打卡 | git大法好,push需谨慎

创建积分活动+优惠券选择

parent 549eeeb8
......@@ -286,7 +286,7 @@
title: '概率',
formatter: function(value, row, index) {
let str = '';
if (data[index].winningProbability) {
if (data[index].winningProbability !== '') {
str = `<input id='winningProbability${index}' class='form-control' type='text' name='' value='${data[index].winningProbability}'>`
} else {
str = `<input id='winningProbability${index}' class='form-control' type='text' name='' value=''>`
......@@ -301,7 +301,7 @@
title: '数量',
formatter: function(value, row, index) {
let str = '';
if (data[index].prizeNum) {
if (data[index].prizeNum !== '') {
str = `<input id='prizeNum${index}' class='form-control' type='text' name='' value='${data[index].prizeNum}'>`
} else {
str = `<input id='prizeNum${index}' class='form-control' type='text' name='' value=''>`
......@@ -316,7 +316,7 @@
title: '奖品描述',
formatter: function(value, row, index) {
let str = '';
if (data[index].prizeNum) {
if (data[index].prizeDescribe !== '') {
str = `<input id='prizeDescribe${index}' class='form-control' type='text' name='' value='${data[index].prizeDescribe}'>`
} else {
str = `<input id='prizeDescribe${index}' class='form-control' type='text' name='' value=''>`
......@@ -472,6 +472,7 @@
}
data = [...res.prizeList]
options.data = data;
console.log('data==', data);
setTimeout(()=>{
$.table.init(options);
}, 500)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment