修改67218
This commit is contained in:
@@ -39,6 +39,7 @@ export default {
|
||||
confirmLoading: false,
|
||||
disabled: false,
|
||||
queryParam:{},
|
||||
flag:'',
|
||||
rules:{
|
||||
sjbbhcs:[
|
||||
{ max: 500,message:'最多只能添加500个字符',trigger:'blur'}
|
||||
@@ -67,6 +68,7 @@ export default {
|
||||
save(){
|
||||
this.$refs.ruleForm.validate( valid =>{
|
||||
if (valid) {
|
||||
this.flag = 1
|
||||
postAction('/ota/otaBaCxQt/add',{otaId:localStorage.getItem('otaId'),...this.queryParam}).then(res=>{
|
||||
console.log(res);
|
||||
this.$message.success(this.$t('SavedSuccessfully'))
|
||||
@@ -82,10 +84,13 @@ export default {
|
||||
},
|
||||
submit(){
|
||||
this.save()
|
||||
this.$router.push({
|
||||
path: '/vehicleregistration',
|
||||
query: {}
|
||||
})
|
||||
if(this.flag == 1){
|
||||
this.$router.push({
|
||||
path: '/vehicleregistration',
|
||||
query: {}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user