Commit d5acea1b authored by zhangyichen's avatar zhangyichen

提交

parent ffe7165b
...@@ -1203,13 +1203,18 @@ export default { ...@@ -1203,13 +1203,18 @@ export default {
for (let i = 0; i < this.positionList.length; i++) { for (let i = 0; i < this.positionList.length; i++) {
this.positionList[i].sort = i this.positionList[i].sort = i
} }
let list = [] let list = null
this.form.materId.forEach((item, index) => { console.log(this.form.materId)
list.push({ if (typeof this.form.materId === 'number') {
materId: item list = this.form.materId
// materCode: this.form.modelCode[index] } else {
this.form.materId.forEach((item, index) => {
list.push({
materId: item
// materCode: this.form.modelCode[index]
})
}) })
}) }
const data = { const data = {
// materId: this.form.materId, // materId: this.form.materId,
materList: list, materList: list,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment