From d07f1ed3208709ddccb422e6a39f7ae48b239c01 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Sun, 26 Mar 2023 17:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B967218?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehicleinformation/components/other.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue index 4f0a91e18..0002405fb 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue @@ -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: {} + }) + } + }, },