|
@@ -579,7 +579,7 @@ let validateFreezeTime = (rule, value, callback) => {
|
|
_this.toActiveName = "tab2";
|
|
_this.toActiveName = "tab2";
|
|
_this.activeName = "tab2";
|
|
_this.activeName = "tab2";
|
|
}
|
|
}
|
|
- } else if (duration != "" && freezeTime > duration) {
|
|
|
|
|
|
+ } else if (duration != "" && parseInt(freezeTime) > parseInt(duration)) {
|
|
callback(new Error("交卷冻结时长不能大于考试时长"));
|
|
callback(new Error("交卷冻结时长不能大于考试时长"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab2";
|
|
_this.toActiveName = "tab2";
|
|
@@ -632,7 +632,10 @@ let validateSnapshotInterval = (rule, value, callback) => {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
_this.activeName = "tab4";
|
|
_this.activeName = "tab4";
|
|
}
|
|
}
|
|
- } else if (duration != "" && snapshotnterval > duration) {
|
|
|
|
|
|
+ } else if (
|
|
|
|
+ duration != "" &&
|
|
|
|
+ parseInt(snapshotnterval) > parseInt(duration)
|
|
|
|
+ ) {
|
|
callback(new Error("抓拍间隔不能大于考试时长"));
|
|
callback(new Error("抓拍间隔不能大于考试时长"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
@@ -715,7 +718,7 @@ let validateFaceVerifyStartMinute = (rule, value, callback) => {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
_this.activeName = "tab4";
|
|
_this.activeName = "tab4";
|
|
}
|
|
}
|
|
- } else if (freezeTime != "" && v > freezeTime) {
|
|
|
|
|
|
+ } else if (freezeTime != "" && parseInt(v) > parseInt(freezeTime)) {
|
|
callback(new Error("活体检测开始分钟数不能大于交卷冻结时长"));
|
|
callback(new Error("活体检测开始分钟数不能大于交卷冻结时长"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
@@ -747,13 +750,13 @@ let validateFaceVerifyEndMinute = (rule, value, callback) => {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
_this.activeName = "tab4";
|
|
_this.activeName = "tab4";
|
|
}
|
|
}
|
|
- } else if (start != "" && v < start) {
|
|
|
|
|
|
+ } else if (start != "" && parseInt(v) < parseInt(start)) {
|
|
callback(new Error("活体检测结束分钟数不能小于活体检测开始分钟数"));
|
|
callback(new Error("活体检测结束分钟数不能小于活体检测开始分钟数"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|
|
_this.activeName = "tab4";
|
|
_this.activeName = "tab4";
|
|
}
|
|
}
|
|
- } else if (freezeTime != "" && v > freezeTime) {
|
|
|
|
|
|
+ } else if (freezeTime != "" && parseInt(v) > parseInt(freezeTime)) {
|
|
callback(new Error("活体检测结束分钟数不能大于交卷冻结时长"));
|
|
callback(new Error("活体检测结束分钟数不能大于交卷冻结时长"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab4";
|
|
_this.toActiveName = "tab4";
|