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