|
|
|
@ -397,11 +397,14 @@ export default { |
|
|
|
|
this.$message.warning("该项目名称已存在"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (!experimentTarget) { |
|
|
|
|
let reg = /<\/?.+?\/?>/g |
|
|
|
|
let experimentTargets = experimentTarget.replace(reg, '') |
|
|
|
|
if (!experimentTargets) { |
|
|
|
|
this.$message.warning("请输入实验目标"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (!experimentDescription) { |
|
|
|
|
let experimentDescriptions = experimentDescription.replace(reg, '') |
|
|
|
|
if (!experimentDescriptions) { |
|
|
|
|
this.$message.warning("请输入案例描述"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -417,7 +420,8 @@ export default { |
|
|
|
|
this.$message.warning("判分点分数已超过100"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (!experimentHint && hintOpen) { |
|
|
|
|
let experimentHints = experimentHint.replace(reg, '') |
|
|
|
|
if (!experimentHints && hintOpen == 0) { |
|
|
|
|
this.$message.warning("请输入实验提示"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|