升级车型OTAId
This commit is contained in:
+2
-1
@@ -266,7 +266,7 @@ export default {
|
|||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let otaId = localStorage.getItem('otaId')
|
let otaId = localStorage.getItem('otaId')
|
||||||
if (otaId == null|| otaId == undefined) {
|
if (otaId == null || otaId == undefined) {
|
||||||
otaId = ''
|
otaId = ''
|
||||||
}
|
}
|
||||||
this.selectListPc.map(item => {
|
this.selectListPc.map(item => {
|
||||||
@@ -274,6 +274,7 @@ export default {
|
|||||||
this.form.bapc = item.ggpc
|
this.form.bapc = item.ggpc
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
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) {
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
|
|||||||
Reference in New Issue
Block a user