[update] 50782
This commit is contained in:
@@ -639,8 +639,10 @@
|
||||
loadFormInfo(){
|
||||
getAction(`split/sarFileSplitItems/getSplitItemsById`,{id:this.itemId}).then(res=>{
|
||||
if(res.success){
|
||||
this.formInline=[...res.result]
|
||||
// todo
|
||||
|
||||
console.log(res,'res...')
|
||||
this.formInline=[...res.result]
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -691,22 +693,6 @@
|
||||
// todo
|
||||
this.$refs.splitEditForm.validate(valid=>{
|
||||
if(valid){
|
||||
// 标准编号 -- 选取或者填写的
|
||||
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(',')
|
||||
}
|
||||
this.loading = true
|
||||
if(!this.submitFlag){
|
||||
this.submitFlag=true
|
||||
@@ -715,6 +701,24 @@
|
||||
url = this.url.updateInfo
|
||||
} 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 params = JSON.parse(JSON.stringify(this.formInline))
|
||||
|
||||
Reference in New Issue
Block a user