update
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user