init
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',
|
||||
@@ -211,10 +211,10 @@ export default {
|
||||
return {
|
||||
submitting: false,
|
||||
severityOptions: [
|
||||
{label: '紧急', value: 'P0'},
|
||||
{label: '高', value: 'P1'},
|
||||
{label: '中', value: 'P2'},
|
||||
{label: '低', value: 'P3'}
|
||||
{label: '紧急', value: '紧急'},
|
||||
{label: '高', value: '高'},
|
||||
{label: '中', value: '中'},
|
||||
{label: '低', value: '低'}
|
||||
],
|
||||
form: {
|
||||
// 基本信息
|
||||
@@ -280,19 +280,20 @@ export default {
|
||||
this.$message.warning('请先完善必填项');
|
||||
return;
|
||||
}
|
||||
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