多语言-后台-礼物管理-consumeType
This commit is contained in:
@@ -70,14 +70,9 @@ public class RoomTagController extends BaseController {
|
||||
|
||||
@RequestMapping(value = "/save")
|
||||
@ResponseBody
|
||||
public BusiResult saveRoomTag(RoomTag roomTag, boolean isEdit) {
|
||||
BusiResult busiResult = new BusiResult(BusiStatus.SUCCESS);
|
||||
try {
|
||||
busiResult.setCode(roomTagService2.saveRoomTag(roomTag, isEdit));
|
||||
} catch (Exception e) {
|
||||
logger.error("saveRoomTag error", e);
|
||||
}
|
||||
return busiResult;
|
||||
public BusiResult<Void> saveRoomTag(RoomTag roomTag, boolean isEdit) {
|
||||
roomTagService2.saveRoomTag(roomTag, isEdit);
|
||||
return new BusiResult<>(BusiStatus.SUCCESS);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/saveRoomTag")
|
||||
@@ -90,17 +85,9 @@ public class RoomTagController extends BaseController {
|
||||
|
||||
@RequestMapping(value = "/del")
|
||||
@ResponseBody
|
||||
public BusiResult delRoomTag(Integer tagId) {
|
||||
BusiResult busiResult = new BusiResult(BusiStatus.SUCCESS);
|
||||
try {
|
||||
if (tagId == null) {
|
||||
return new BusiResult(BusiStatus.PARAMETERILLEGAL);
|
||||
}
|
||||
busiResult.setData(roomTagService2.deleteRoomTag(tagId));
|
||||
} catch (Exception e) {
|
||||
logger.error("delRoomTag error", e);
|
||||
}
|
||||
return busiResult;
|
||||
public BusiResult<Void> delRoomTag(Integer tagId) {
|
||||
roomTagService2.deleteRoomTag(tagId);
|
||||
return new BusiResult<>(BusiStatus.SUCCESS);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/delRoomTag")
|
||||
|
@@ -1119,7 +1119,6 @@
|
||||
$("#giftExplainUrl").val(json.entity.giftExplainUrl);
|
||||
var consumeType = json.entity.consumeType;
|
||||
$("#consumeType").val(consumeType);
|
||||
$("#consumeType").attr("disabled",true);
|
||||
|
||||
ComboboxHelper.setDef("#giftType", json.entity.giftType);
|
||||
$('#giftType').val(json.entity.giftType);
|
||||
@@ -1242,7 +1241,6 @@
|
||||
// 将修改后的对象转换回序列化字符串
|
||||
let newSerializeStr = $.param(formData);
|
||||
if ($("#giftForm").validationEngine('validate')) {
|
||||
$("#consumeType").removeAttr("disabled");
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/admin/gift/save.action",
|
||||
|
Reference in New Issue
Block a user