|
@@ -368,6 +368,12 @@ function calculateBestMatch() {
|
|
|
// const targetFemale = [86, 84, 84];
|
|
|
// const backupMale = [153, 91, 77];
|
|
|
// const backupFemale = [121, 118, 115];
|
|
|
+
|
|
|
+ if (targetFemale.length === 0 && targetFemale.length === 0) {
|
|
|
+ ElMessage.warning('目标公数据与母数据不能同时为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if(targetFemale.length + targetFemale.length > 20){
|
|
|
ElMessage.warning('目标公数据与母数据的和不能超过20条')
|
|
|
return
|