bug 67654
This commit is contained in:
+13
-4
@@ -187,6 +187,7 @@ export default {
|
|||||||
projectNameList2: [],
|
projectNameList2: [],
|
||||||
selectListPc: [],
|
selectListPc: [],
|
||||||
selectListMb: [],
|
selectListMb: [],
|
||||||
|
flag:'',
|
||||||
rules: {
|
rules: {
|
||||||
babh: [
|
babh: [
|
||||||
{ required: true, message: this.$t('upgraderecordnumber') + this.$t('cannotEmpty'), trigger: 'blur' }
|
{ required: true, message: this.$t('upgraderecordnumber') + this.$t('cannotEmpty'), trigger: 'blur' }
|
||||||
@@ -277,9 +278,11 @@ export default {
|
|||||||
this.form.otaId = otaId
|
this.form.otaId = otaId
|
||||||
postAction('/ota/otaBaSjSjmbcx/add', { otaId: otaId, ...this.form }).then(res => {
|
postAction('/ota/otaBaSjSjmbcx/add', { otaId: otaId, ...this.form }).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
this.flag = 1
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -295,11 +298,17 @@ export default {
|
|||||||
// this.$refs.ruleForm.clearValidate('bapc')
|
// this.$refs.ruleForm.clearValidate('bapc')
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
this.$refs.ruleForm.validate(valid => {
|
// this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
|
setTimeout(()=>{
|
||||||
|
console.log(this.flag)
|
||||||
|
if(this.flag == 1){
|
||||||
this.$emit('basicInformationForm')
|
this.$emit('basicInformationForm')
|
||||||
}
|
}
|
||||||
})
|
},1000)
|
||||||
|
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -344,7 +353,7 @@ export default {
|
|||||||
},
|
},
|
||||||
changeId(value, option) {
|
changeId(value, option) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = { ...this.form }
|
// this.form = { ...this.form }
|
||||||
this.$refs.ruleForm.validateField('bapc')
|
this.$refs.ruleForm.validateField('bapc')
|
||||||
})
|
})
|
||||||
this.selectListPc.map(item => {
|
this.selectListPc.map(item => {
|
||||||
|
|||||||
Reference in New Issue
Block a user