修改
This commit is contained in:
+5
-9
@@ -231,6 +231,7 @@ export default {
|
||||
} else {
|
||||
|
||||
this.form = res.result
|
||||
this.form.otaId=''
|
||||
if (this.$route.query.type == 1 && res.result.cxmb == null) {
|
||||
this.form.cxmb = this.form.babh + '-' + this.form.bapc + '-' + this.form.cpxh
|
||||
} else {
|
||||
@@ -261,17 +262,12 @@ export default {
|
||||
})
|
||||
},
|
||||
save() {
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if (otaId == null) {
|
||||
otaId = ''
|
||||
}
|
||||
// if(this.form.bapc!=null && this.form.bapc!=undefined && this.form.bapc!=''){
|
||||
// this.$nextTick(()=>{
|
||||
// this.$refs.ruleForm.clearValidate('bapc')
|
||||
// })
|
||||
// }
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if (otaId == null|| otaId == undefined) {
|
||||
otaId = ''
|
||||
}
|
||||
this.selectListPc.map(item => {
|
||||
if (item.id == this.form.bapc) {
|
||||
this.form.bapc = item.ggpc
|
||||
|
||||
@@ -384,7 +384,6 @@ import { message } from 'ant-design-vue'
|
||||
if(otaId==null || otaId == undefined){
|
||||
otaId=''
|
||||
}
|
||||
|
||||
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
|
||||
if(res.code == 200){
|
||||
localStorage.setItem('otaId', res.result.otaId)
|
||||
|
||||
Reference in New Issue
Block a user