1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

handle update error

This commit is contained in:
gzw
2023-05-24 23:27:34 +08:00
parent 37466c3ae8
commit 20676e9b5a
2 changed files with 2 additions and 1 deletions

View File

@@ -80,8 +80,10 @@ export default {
message: '操作成功', message: '操作成功',
type: 'success' type: 'success'
}) })
this.$emit('setDialogVisible', false)
} else { } else {
ElMessage.error('操作失败') ElMessage.error('操作失败')
this.$emit('setDialogVisible', false)
return false return false
} }
}) })

View File

@@ -324,7 +324,6 @@ export default {
this.editDialogFormVisible = true this.editDialogFormVisible = true
this.isDisabled = true this.isDisabled = true
this.form = row this.form = row
this.form.userId = row.user.username
this.form.status = row.status + '' this.form.status = row.status + ''
}, },
addAttendance(formData) { addAttendance(formData) {