diff --git a/src/views/basic/instruction/addInstructionDialog.vue b/src/views/basic/instruction/addInstructionDialog.vue
index ce227d3..9a50b02 100644
--- a/src/views/basic/instruction/addInstructionDialog.vue
+++ b/src/views/basic/instruction/addInstructionDialog.vue
@@ -73,15 +73,20 @@
dataFormRef.value.clearValidate()
})
}
+const loadingPage = ref(false)
// 保存
const saveData = () => {
dataFormRef.value.validate((valid: any) => {
if (valid) {
+ loadingPage.value = true
setInstruction(dataForm.value).then(res => {
- console.log(res.data, '111')
+ // console.log(res.data, '111')
+ loadingPage.value = false
ElMessage.success('操作成功')
cancel()
emit('refresh')
+ }).catch(() => {
+ loadingPage.value = false
})
}
})
@@ -126,7 +131,7 @@
@@ -173,7 +178,7 @@