|
|
@ -248,7 +248,7 @@ export default { |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
if (score > 100) { |
|
|
|
if (score > 100) { |
|
|
|
// util.warningMsg(res.message); |
|
|
|
// util.errorMsg(res.message); |
|
|
|
util.errorMsg("分配的数值已超过100"); |
|
|
|
util.errorMsg("分配的数值已超过100"); |
|
|
|
} |
|
|
|
} |
|
|
|
console.log("chuli"); |
|
|
|
console.log("chuli"); |
|
|
@ -357,36 +357,36 @@ export default { |
|
|
|
hintOpen |
|
|
|
hintOpen |
|
|
|
} = this.projectManage; |
|
|
|
} = this.projectManage; |
|
|
|
if (!projectName) { |
|
|
|
if (!projectName) { |
|
|
|
util.warningMsg("请输入项目名称"); |
|
|
|
util.errorMsg("请输入项目名称"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.projectNameRepeat) { |
|
|
|
if (this.projectNameRepeat) { |
|
|
|
util.warningMsg("该项目名称已存在"); |
|
|
|
util.errorMsg("项目名称重复!"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (state) { |
|
|
|
if (state) { |
|
|
|
if (!experimentTarget || !this.removeTag(experimentTarget)) { |
|
|
|
if (!experimentTarget || !this.removeTag(experimentTarget)) { |
|
|
|
util.warningMsg("请输入实验目标"); |
|
|
|
util.errorMsg("请输入实验目标"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!experimentDescription || !this.removeTag(experimentDescription)) { |
|
|
|
if (!experimentDescription || !this.removeTag(experimentDescription)) { |
|
|
|
util.warningMsg("请输入案例描述"); |
|
|
|
util.errorMsg("请输入案例描述"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.projectJudgmentData.length == 0) { |
|
|
|
if (this.projectJudgmentData.length == 0) { |
|
|
|
util.warningMsg("请添加判分点"); |
|
|
|
util.errorMsg("请添加判分点"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.handDistributionScore < 100) { |
|
|
|
if (this.handDistributionScore < 100) { |
|
|
|
util.warningMsg("判分点分数未满100"); |
|
|
|
util.errorMsg("判分点分数未满100"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.handDistributionScore > 100) { |
|
|
|
if (this.handDistributionScore > 100) { |
|
|
|
util.warningMsg("判分点分数已超过100"); |
|
|
|
util.errorMsg("判分点分数已超过100"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if ((!experimentHint || !this.removeTag(experimentHint)) && hintOpen == 0) { |
|
|
|
if ((!experimentHint || !this.removeTag(experimentHint)) && hintOpen == 0) { |
|
|
|
util.warningMsg("请输入实验提示"); |
|
|
|
util.errorMsg("请输入实验提示"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -495,7 +495,7 @@ export default { |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
util.warningMsg("请选择判分点"); |
|
|
|
util.errorMsg("请选择判分点"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleQueryJudgment() { // 查询判分点数据 |
|
|
|
handleQueryJudgment() { // 查询判分点数据 |
|
|
@ -567,7 +567,7 @@ export default { |
|
|
|
this.$refs.projectJudgementTable.clearSelection(); |
|
|
|
this.$refs.projectJudgementTable.clearSelection(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
util.warningMsg("请选择判分点"); |
|
|
|
util.errorMsg("请选择判分点"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCacheData() { // 处理缓存数据 |
|
|
|
handleCacheData() { // 处理缓存数据 |
|
|
|