修改67218

This commit is contained in:
zyx.net
2023-03-26 17:26:56 +08:00
parent 9ae7491b15
commit d07f1ed320
@@ -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: {}
})
}
},
},