This commit is contained in:
2025-09-06 14:43:20 +08:00
parent 15bb9e4498
commit ce2a0c59b4

View File

@@ -203,7 +203,7 @@
</template>
<script>
// import {getStatus, SubmitForm} from "@/api/api";
import {getStatus, SubmitForm} from "@/api/api";
export default {
name: 'faultSystem',
@@ -280,20 +280,20 @@ export default {
this.$message.warning('请先完善必填项');
return;
}
console.log(this.form);
// try {
// getStatus().then(res=>{
// if(res.data.status === 'succeed'){
// SubmitForm(this.form);
// this.$message.success('提交成功');
// this.onReset();
// }else{
// this.$message.error('提交失败,请稍后再试');
// }
// })
// } finally {
// this.submitting = false
// }
// console.log(this.form);
try {
getStatus().then(res=>{
if(res.data.status === 'succeed'){
SubmitForm(this.form);
this.$message.success('提交成功');
this.onReset();
}else{
this.$message.error('提交失败,请稍后再试');
}
})
} finally {
this.submitting = false
}
})
},
onReset() {