提交 9d450a84 authored 作者: lhh's avatar lhh

update

上级 ffd34d6b
......@@ -5,6 +5,8 @@ import { Plus } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import { gradeRule, gradeRuleList } from '@/utils/dictionary'
import { getExperimentGradeRule, updateExperimentGradeRule, getScoreExamList } from '../api'
import { useAppConfig } from '@/composables/useAppConfig'
const appConfig = useAppConfig()
interface Props {
data: ExperimentItem
......@@ -89,6 +91,7 @@ function handleSubmit(call?: any) {
return
}
}
if (appConfig?.system !== 'x') {
for (let i = 0; i < form.rule_list.length; i++) {
const item = form.rule_list[i]
if (!item.name || !item.type) {
......@@ -104,6 +107,7 @@ function handleSubmit(call?: any) {
return
}
}
}
if (total < 100) {
ElMessage.error('实验成绩规则项权重之和必须为100%!')
return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论