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

Commit 63a3b15f authored by dongchun's avatar dongchun

yb时间判断

parent 7034d2da
......@@ -189,8 +189,17 @@
}
$.modal.open(`${name}`, prefix2 + "/creatAndEdit?id=" + id, 900, 560, callback)
}
function timeChange (time) {
if (time) {
let forMat = time.replace(/-/g, '/');
let resultStart = Date.parse(forMat);
return resultStart;
}
}
function callback(index, layero) {
if (timeChange(getDom(layero, "startTime").value) > timeChange(getDom(layero, "endTime").value)) {
return layer.msg('活动结束时间要大于开始时间!')
}
let data = {
title: getDom(layero, "ybTitle").value,
startTime: getDom(layero, "startTime").value,
......
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