init
This commit is contained in:
@@ -203,7 +203,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getStatus, SubmitForm} from "@/api/api";
|
// import {getStatus, SubmitForm} from "@/api/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'faultSystem',
|
name: 'faultSystem',
|
||||||
@@ -211,10 +211,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
submitting: false,
|
submitting: false,
|
||||||
severityOptions: [
|
severityOptions: [
|
||||||
{label: '紧急', value: 'P0'},
|
{label: '紧急', value: '紧急'},
|
||||||
{label: '高', value: 'P1'},
|
{label: '高', value: '高'},
|
||||||
{label: '中', value: 'P2'},
|
{label: '中', value: '中'},
|
||||||
{label: '低', value: 'P3'}
|
{label: '低', value: '低'}
|
||||||
],
|
],
|
||||||
form: {
|
form: {
|
||||||
// 基本信息
|
// 基本信息
|
||||||
@@ -280,19 +280,20 @@ export default {
|
|||||||
this.$message.warning('请先完善必填项');
|
this.$message.warning('请先完善必填项');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
console.log(this.form);
|
||||||
getStatus().then(res=>{
|
// try {
|
||||||
if(res.data.status === 'succeed'){
|
// getStatus().then(res=>{
|
||||||
SubmitForm(this.form);
|
// if(res.data.status === 'succeed'){
|
||||||
this.$message.success('提交成功');
|
// SubmitForm(this.form);
|
||||||
this.onReset();
|
// this.$message.success('提交成功');
|
||||||
}else{
|
// this.onReset();
|
||||||
this.$message.error('提交失败,请稍后再试');
|
// }else{
|
||||||
}
|
// this.$message.error('提交失败,请稍后再试');
|
||||||
})
|
// }
|
||||||
} finally {
|
// })
|
||||||
this.submitting = false
|
// } finally {
|
||||||
}
|
// this.submitting = false
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onReset() {
|
onReset() {
|
||||||
|
Reference in New Issue
Block a user