|
|
|
@ -684,7 +684,7 @@ const handleSubmit = () => {
|
|
|
|
|
formNodeRef.value.validate(async (valid, fields) => { |
|
|
|
|
if (valid) { |
|
|
|
|
console.log('submit!'); |
|
|
|
|
details.popUpShow.addMaterial = false; |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
@ -695,6 +695,7 @@ const handleSubmit = () => {
|
|
|
|
|
const res = await postMaterialSubmit(submitData); |
|
|
|
|
const { code, msg } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|
details.popUpShow.addMaterial = false; |
|
|
|
|
ElMessage.success(msg); |
|
|
|
|
onLoad(); |
|
|
|
|
} catch (error) { |
|
|
|
|