|
@@ -145,7 +145,7 @@
|
|
:label-width="style.label_width_tab2"
|
|
:label-width="style.label_width_tab2"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.duration"
|
|
v-model.trim.number="form.duration"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -162,7 +162,7 @@
|
|
:label-width="style.label_width_tab2"
|
|
:label-width="style.label_width_tab2"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.examTimes"
|
|
v-model.trim.number="form.examTimes"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -179,7 +179,7 @@
|
|
:label-width="style.label_width_tab2"
|
|
:label-width="style.label_width_tab2"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.properties.FREEZE_TIME"
|
|
v-model.trim.number="form.properties.FREEZE_TIME"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -196,7 +196,7 @@
|
|
:label-width="style.label_width_tab2"
|
|
:label-width="style.label_width_tab2"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.properties.EXAM_RECONNECT_TIME"
|
|
v-model.trim.number="form.properties.EXAM_RECONNECT_TIME"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -213,7 +213,7 @@
|
|
:label-width="style.label_width_tab2"
|
|
:label-width="style.label_width_tab2"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.properties.MAX_INTERRUPT_NUM"
|
|
v-model.trim.number="form.properties.MAX_INTERRUPT_NUM"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -421,7 +421,7 @@
|
|
:label-width="style.label_width_tab4"
|
|
:label-width="style.label_width_tab4"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.properties.SNAPSHOT_INTERVAL"
|
|
v-model.trim.number="form.properties.SNAPSHOT_INTERVAL"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -438,7 +438,7 @@
|
|
:label-width="style.label_width_tab4"
|
|
:label-width="style.label_width_tab4"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="form.properties.WARN_THRESHOLD"
|
|
v-model.trim.number="form.properties.WARN_THRESHOLD"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -455,7 +455,7 @@
|
|
:label-width="style.label_width_tab4"
|
|
:label-width="style.label_width_tab4"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.number="form.properties.LIVING_WARN_THRESHOLD"
|
|
v-model.number="form.properties.LIVING_WARN_THRESHOLD"
|
|
auto-complete="off"
|
|
auto-complete="off"
|
|
class="input"
|
|
class="input"
|
|
@@ -486,7 +486,7 @@
|
|
:label-width="style.label_width_tab4"
|
|
:label-width="style.label_width_tab4"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="
|
|
v-model.trim.number="
|
|
form.properties.FACE_VERIFY_START_MINUTE
|
|
form.properties.FACE_VERIFY_START_MINUTE
|
|
"
|
|
"
|
|
@@ -505,7 +505,7 @@
|
|
:label-width="style.label_width_tab4"
|
|
:label-width="style.label_width_tab4"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- maxlength="20"
|
|
|
|
|
|
+ maxlength="5"
|
|
v-model.trim.number="
|
|
v-model.trim.number="
|
|
form.properties.FACE_VERIFY_END_MINUTE
|
|
form.properties.FACE_VERIFY_END_MINUTE
|
|
"
|
|
"
|
|
@@ -717,13 +717,9 @@ let validateExamReconnectTime = (rule, value, callback) => {
|
|
let validateMaxInterruptNum = (rule, value, callback) => {
|
|
let validateMaxInterruptNum = (rule, value, callback) => {
|
|
let examReconnectTime = _this.form.properties.MAX_INTERRUPT_NUM;
|
|
let examReconnectTime = _this.form.properties.MAX_INTERRUPT_NUM;
|
|
if (examReconnectTime === "") {
|
|
if (examReconnectTime === "") {
|
|
- callback(new Error("请输入断点续考次数"));
|
|
|
|
- if (!_this.toActiveName) {
|
|
|
|
- _this.toActiveName = "tab2";
|
|
|
|
- _this.activeName = "tab2";
|
|
|
|
- }
|
|
|
|
|
|
+ callback();
|
|
} else if (!examReconnectTime.toString().match(/^[0-9]\d*$/)) {
|
|
} else if (!examReconnectTime.toString().match(/^[0-9]\d*$/)) {
|
|
- callback(new Error("只能是整数"));
|
|
|
|
|
|
+ callback(new Error("只能是非负整数"));
|
|
if (!_this.toActiveName) {
|
|
if (!_this.toActiveName) {
|
|
_this.toActiveName = "tab2";
|
|
_this.toActiveName = "tab2";
|
|
_this.activeName = "tab2";
|
|
_this.activeName = "tab2";
|
|
@@ -916,7 +912,7 @@ export default {
|
|
properties: {
|
|
properties: {
|
|
IS_OBJ_SCORE_VIEW: "true",
|
|
IS_OBJ_SCORE_VIEW: "true",
|
|
IS_STRANGER_ENABLE: "true",
|
|
IS_STRANGER_ENABLE: "true",
|
|
- MAX_INTERRUPT_NUM: 100,
|
|
|
|
|
|
+ MAX_INTERRUPT_NUM: "",
|
|
EXAM_RECONNECT_TIME: 30,
|
|
EXAM_RECONNECT_TIME: 30,
|
|
FREEZE_TIME: 0,
|
|
FREEZE_TIME: 0,
|
|
BEFORE_EXAM_REMARK: "",
|
|
BEFORE_EXAM_REMARK: "",
|
|
@@ -975,7 +971,7 @@ export default {
|
|
],
|
|
],
|
|
MAX_INTERRUPT_NUM: [
|
|
MAX_INTERRUPT_NUM: [
|
|
{
|
|
{
|
|
- required: true,
|
|
|
|
|
|
+ required: false,
|
|
validator: validateMaxInterruptNum,
|
|
validator: validateMaxInterruptNum,
|
|
trigger: "blur"
|
|
trigger: "blur"
|
|
}
|
|
}
|