升级车型OTAId

This commit is contained in:
zyx.net
2023-04-02 19:17:09 +08:00
parent 72d21e3606
commit 3adec5dd80
@@ -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)