|
@@ -160,6 +160,14 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-show="ruleForm.IDENTIFICATION_OF_LIVING_BODY_SCHEME === 'S3'">
|
|
|
+ <el-form-item label="C端人脸识别阈值" prop="PC_CLIENT_FACE_THRESHOLD">
|
|
|
+ <el-input
|
|
|
+ v-model="ruleForm.PC_CLIENT_FACE_THRESHOLD"
|
|
|
+ style="width: 180px"
|
|
|
+ ></el-input>
|
|
|
+ <span style="font-size: 14px; line-height: 44px"></span>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label="指定动作检测提醒" prop="ACTION_ALERT">
|
|
|
<el-input
|
|
|
v-model="ruleForm.ACTION_ALERT"
|
|
@@ -289,6 +297,16 @@ export default {
|
|
|
callback();
|
|
|
};
|
|
|
|
|
|
+ let checkPcClientFaceThreshold = (rule, value, callback) => {
|
|
|
+ if (this.ruleForm.IDENTIFICATION_OF_LIVING_BODY_SCHEME === "S3") {
|
|
|
+ let reg = /^[1-9][0-9]*$/;
|
|
|
+ if (!new String(value).match(reg) || value < 1 || value > 99) {
|
|
|
+ return callback(new Error("范围1至99之间"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback();
|
|
|
+ };
|
|
|
+
|
|
|
return {
|
|
|
actionOptions: ACTION_OPTION_LIST,
|
|
|
rootOrgList: [],
|
|
@@ -310,6 +328,7 @@ export default {
|
|
|
FACE_VERIFY_API_PROVIDER: "FACEPP",
|
|
|
FACE_COMPARE_API_PROVIDER: "FACEPP",
|
|
|
BAIDU_EXPECT_FACE_COMPARE_SCORE: 70,
|
|
|
+ PC_CLIENT_FACE_THRESHOLD: 50,
|
|
|
ACTION_ALERT: "",
|
|
|
ACTION_NUM: "",
|
|
|
ACTION_OPTIONS: [],
|
|
@@ -364,6 +383,13 @@ export default {
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
|
+ PC_CLIENT_FACE_THRESHOLD: [
|
|
|
+ { required: true, message: " ", trigger: "blur" },
|
|
|
+ {
|
|
|
+ validator: checkPcClientFaceThreshold,
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
};
|
|
|
},
|
|
@@ -461,8 +487,9 @@ export default {
|
|
|
this.ruleForm.IDENTIFICATION_OF_LIVING_BODY_SCHEME;
|
|
|
|
|
|
if (this.ruleForm.IDENTIFICATION_OF_LIVING_BODY_SCHEME === "S3") {
|
|
|
+ params.properties.PC_CLIENT_FACE_THRESHOLD =
|
|
|
+ this.ruleForm.PC_CLIENT_FACE_THRESHOLD;
|
|
|
params.properties.ACTION_ALERT = this.ruleForm.ACTION_ALERT;
|
|
|
-
|
|
|
params.properties.ACTION_NUM = this.ruleForm.ACTION_NUM;
|
|
|
|
|
|
// 固定动作顺序
|
|
@@ -584,6 +611,13 @@ export default {
|
|
|
this.ruleForm.ACTION_ALERT = 5;
|
|
|
}
|
|
|
|
|
|
+ if (response.data.PC_CLIENT_FACE_THRESHOLD) {
|
|
|
+ this.ruleForm.PC_CLIENT_FACE_THRESHOLD =
|
|
|
+ response.data.PC_CLIENT_FACE_THRESHOLD;
|
|
|
+ } else {
|
|
|
+ this.ruleForm.PC_CLIENT_FACE_THRESHOLD = 50;
|
|
|
+ }
|
|
|
+
|
|
|
if (response.data.ACTION_NUM) {
|
|
|
this.ruleForm.ACTION_NUM = response.data.ACTION_NUM;
|
|
|
} else {
|