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