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