归因场次不允许跨月
This commit is contained in:
@@ -438,6 +438,11 @@ export default {
|
||||
let id = $('#id').val();
|
||||
let startTime = $('#startTime').val();
|
||||
let endTime = $('#endTime').val();
|
||||
if (getDate(endTime).getMonth() != getDate(startTime).getMonth()) {
|
||||
$("#tipMsg").text("归因场次不允许跨月.");
|
||||
$("#tipModal").modal('show');
|
||||
return;
|
||||
}
|
||||
if ((getDate(endTime).getTime() - getDate(startTime).getTime()) > (36 * 60 * 60 * 1000)) {
|
||||
$("#tipMsg").text("时间间隔不能超过36h.");
|
||||
$("#tipModal").modal('show');
|
||||
|
Reference in New Issue
Block a user