记得上下班打卡 | git大法好,push需谨慎

Commit b798a247 authored by sangchunxi's avatar sangchunxi

信息验证

parent 118b8c1d
...@@ -532,18 +532,24 @@ ...@@ -532,18 +532,24 @@
}) })
} }
// 修改推荐活动 let isUndefined = listData.filter(item => item.recommendBindId == undefined)
promiseMethods('/kylin-recommend-active/addOrUpdateListKylinRecommendActiveRelation','post', JSON.stringify(listData), 'application/json').then(res => {
if (res.code == 0) { if (isUndefined[0].recommendBindId !== undefined) {
layer.msg('修改成功') // 修改推荐活动
// $.operate.successTabCallback(res); promiseMethods('/kylin-recommend-active/addOrUpdateListKylinRecommendActiveRelation','post', JSON.stringify(listData), 'application/json').then(res => {
// closeItem();
} else {
layer.msg(res.msg)
}
}) if (res.code == 0) {
layer.msg('修改成功')
// $.operate.successTabCallback(res);
// closeItem();
} else {
layer.msg(res.msg)
}
})
} else {
layer.msg('需要填写完整推荐活动!')
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment