活动管理-抽奖活动管理
This commit is contained in:
parent
92276296f5
commit
32e99e3bd2
|
|
@ -76,6 +76,7 @@ public class DrawInfoController extends BaseController
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult addSave(@RequestBody ActVO vo)
|
public AjaxResult addSave(@RequestBody ActVO vo)
|
||||||
{
|
{
|
||||||
|
try{
|
||||||
logger.info("前台传参"+ JSON.toJSONString(vo));
|
logger.info("前台传参"+ JSON.toJSONString(vo));
|
||||||
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
|
@ -110,6 +111,11 @@ public class DrawInfoController extends BaseController
|
||||||
int i = iActPageConfigSubscribeService.insertActPageConfigSubscribe(vo.getActPageConfigSubscribe());
|
int i = iActPageConfigSubscribeService.insertActPageConfigSubscribe(vo.getActPageConfigSubscribe());
|
||||||
return toAjax(i);
|
return toAjax(i);
|
||||||
}
|
}
|
||||||
|
catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
return AjaxResult.error("系统繁忙");
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 查询抽奖活动管理列表
|
* 查询抽奖活动管理列表
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1035,24 +1035,16 @@
|
||||||
.on('click', function () {
|
.on('click', function () {
|
||||||
//添加保存逻辑
|
//添加保存逻辑
|
||||||
var data = customSerialize("form-info-add", true);
|
var data = customSerialize("form-info-add", true);
|
||||||
alert(data);
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: prefix + "/add",
|
url: prefix + "/add",
|
||||||
data: data,
|
data: data,
|
||||||
type: "post",
|
type: "post",
|
||||||
contentType: "application/json;charset=UTF-8",
|
contentType: "application/json;charset=UTF-8",
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == web_status.SUCCESS) {
|
if (typeof callback == "function") {
|
||||||
layer.msg("保存成功,正在刷新数据请稍后……", {
|
callback(result);
|
||||||
icon: 1,
|
|
||||||
time: 500,
|
|
||||||
shade: [0.1, '#8F8F8F']
|
|
||||||
}, function () {
|
|
||||||
location.reload();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
alert(result.msg);
|
|
||||||
}
|
}
|
||||||
|
$.operate.successTabCallback(result);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue