修改礼物类型组件

This commit is contained in:
liaozetao
2023-12-13 17:23:31 +08:00
parent c60c28efa2
commit 6ff8e23e59

View File

@@ -164,7 +164,7 @@
<div class="form-group">
<label for="giftType" class="col-sm-2 control-label">礼物类型</label>
<div class="col-sm-10">
<select name="giftType" id="giftType" data-btn-class="btn-warning">
<select name="giftType" id="giftType" class="form-control" data-btn-class="btn-warning">
<option value="2">普通面板礼物</option>
<option value="3">福袋礼物</option>
<option value="5">福袋奖池礼物</option>
@@ -548,7 +548,6 @@ import TableHelper from '@/utils/bootstrap-table-helper';
import ComboboxHelper from '@/assets/plugins/bootstrap-combobox/js/bootstrap-combobox-helper';
import { formatTime, showLoading, hideLoading } from '@/utils/maintainer';
//ComboboxHelper.build(null, '#giftType');
//ComboboxHelper.build(null, '#condition_type');
//ComboboxHelper.build(null, '#nobleId');
export default {
@@ -562,7 +561,7 @@ export default {
$('.noble').removeClass("hidden");
}
if (val == 3) {
ComboboxHelper.setDef("#giftType", 2);
$('#giftType').val(2);
$("#giftType").attr('readonly', true);
$('#roomFreeGift').removeClass("hidden");
} else {
@@ -849,7 +848,7 @@ export default {
// $("#goldPrice").attr('readonly', false);
$("#nobleId").btComboBox('disable');
ComboboxHelper.setDef("#nobleId", '0');
ComboboxHelper.setDef("#giftType", '2');
$('#giftType').val(2);
$("input:radio[name='giftStatus']")[1].checked = true;
$("input:radio[name='hasEffect']")[1].checked = true;
$("input:radio[name='hasVggPic']")[1].checked = true;
@@ -1131,7 +1130,6 @@ export default {
$("#consumeType").val(consumeType);
$("#consumeType").attr("disabled", true);
ComboboxHelper.setDef("#giftType", json.entity.giftType);
$('#giftType').val(json.entity.giftType);
if (consumeType == 1) {
ComboboxHelper.setDef("#nobleId", '0');