[add] 拆分bug
This commit is contained in:
@@ -702,23 +702,23 @@
|
|||||||
} else {
|
} else {
|
||||||
url = this.url.addInfo
|
url = this.url.addInfo
|
||||||
// 标准编号 -- 选取或者填写的
|
// 标准编号 -- 选取或者填写的
|
||||||
let _formInlinevalueItem = this.formInline[this.valueItem].split(',')
|
// let _formInlinevalueItem = this.formInline[this.valueItem].split(',')
|
||||||
// 标准编号的id临时变量
|
// // 标准编号的id临时变量
|
||||||
let _valueItemArr = []
|
// let _valueItemArr = []
|
||||||
if(this.formArrayName.length > 0) {
|
// if(this.formArrayName.length > 0) {
|
||||||
this.formArrayName.forEach((item, index) => {
|
// this.formArrayName.forEach((item, index) => {
|
||||||
_formInlinevalueItem.forEach((itemlabel, indexlabel) => {
|
// _formInlinevalueItem.forEach((itemlabel, indexlabel) => {
|
||||||
if(itemlabel === item) {
|
// if(itemlabel === item) {
|
||||||
_valueItemArr.push(this.formArrayId[index])
|
// _valueItemArr.push(this.formArrayId[index])
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
if(_valueItemArr.length > 0) {
|
// if(_valueItemArr.length > 0) {
|
||||||
this.formInline[this.valueItem + '_id'] = _valueItemArr.join(',')
|
// this.formInline[this.valueItem + '_id'] = _valueItemArr.join(',')
|
||||||
} else {
|
// } else {
|
||||||
this.formInline[this.valueItem + '_id'] = ''
|
// this.formInline[this.valueItem + '_id'] = ''
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
let params = JSON.parse(JSON.stringify(this.formInline))
|
let params = JSON.parse(JSON.stringify(this.formInline))
|
||||||
@@ -1130,12 +1130,13 @@
|
|||||||
},
|
},
|
||||||
StandardselectionChange(value, id) {
|
StandardselectionChange(value, id) {
|
||||||
// todo
|
// todo
|
||||||
this.valueItem = value
|
// this.valueItem = value
|
||||||
if(this.formInline[value] !== undefined) {
|
// if(this.formInline[value] !== undefined) {
|
||||||
this.formArrayName = this.formInline[value].split(',')
|
// this.formArrayName = this.formInline[value].split(',')
|
||||||
this.formArrayId = id.split(',')
|
// this.formArrayId = id.split(',')
|
||||||
}
|
// }
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline[value + '_id'] = id
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
},
|
},
|
||||||
PersonnelSelectionChange(value, id) {
|
PersonnelSelectionChange(value, id) {
|
||||||
this.formInline[value + '_id'] = id
|
this.formInline[value + '_id'] = id
|
||||||
|
|||||||
Reference in New Issue
Block a user