修复后台判断
This commit is contained in:
@@ -1047,7 +1047,7 @@ export default {
|
||||
width: '10%',
|
||||
formatter: function (val, row, index) {
|
||||
let value = '';
|
||||
let data = $this.giftLevel.filter(v => v.levelValue == val);
|
||||
let data = $this.giftLevel.filter(v => v.value == val);
|
||||
if (data.length > 0) {
|
||||
value = data[0].text;
|
||||
}
|
||||
@@ -1669,6 +1669,11 @@ export default {
|
||||
$("#tipModal").modal('show');
|
||||
return;
|
||||
}
|
||||
if ($this.unlockList.filter(v => v.value == baseGiftId).length == 0 && giftStatus == 1) {
|
||||
$("#tipMsg").text("基础解锁礼物已失效,不允许修改状态");
|
||||
$("#tipModal").modal('show');
|
||||
return;
|
||||
}
|
||||
if (!unlockNum || unlockNum == 0) {
|
||||
$("#tipMsg").text("解锁礼物个数不能为0");
|
||||
$("#tipModal").modal('show');
|
||||
|
Reference in New Issue
Block a user