升级车型OTAId
This commit is contained in:
+4
-3
@@ -266,14 +266,15 @@ export default {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if (otaId == null|| otaId == undefined) {
|
||||
otaId = ''
|
||||
}
|
||||
if (otaId == null || otaId == undefined) {
|
||||
otaId = ''
|
||||
}
|
||||
this.selectListPc.map(item => {
|
||||
if (item.id == this.form.bapc) {
|
||||
this.form.bapc = item.ggpc
|
||||
}
|
||||
})
|
||||
this.form.otaId = otaId
|
||||
postAction('/ota/otaBaSjSjmbcx/add', { otaId: otaId, ...this.form }).then(res => {
|
||||
if (res.code == 200) {
|
||||
localStorage.setItem('otaId', res.result.otaId)
|
||||
|
||||
Reference in New Issue
Block a user