提交 fff86883 authored 作者: lhh's avatar lhh

update

上级 0a73f7c4
......@@ -83,11 +83,14 @@ function handleSubmit(call?: any) {
formRef?.validate().then(() => {
const params = { ...form, rule_list: JSON.stringify(form.rule_list) }
updateExperimentGradeRule(params).then(() => {
call()
// call()
console.log(call, 'call()')
if (!call) {
ElMessage({ message: '保存成功', type: 'success' })
emit('update')
emit('update:modelValue', false)
} else {
call()
}
})
})
......@@ -226,7 +229,7 @@ const handleEdit = function (type: number) {
</el-form-item>
</el-form>
<el-row justify="center">
<el-button type="primary" round auto-insert-space @click="handleSubmit">保存</el-button>
<el-button type="primary" round auto-insert-space @click="handleSubmit(0)">保存</el-button>
<el-button round auto-insert-space @click="$emit('update:modelValue', false)">取消</el-button>
</el-row>
</el-dialog>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论