Commit ba49601e authored by 张伯涛's avatar 张伯涛

修改

parent a11d4b4a
...@@ -1046,16 +1046,6 @@ export default { ...@@ -1046,16 +1046,6 @@ export default {
handleSelectionChangeMaterial(data) { handleSelectionChangeMaterial(data) {
if (this.type === '2' && (this.form.modelType === '2' || this.form.modelType === '3')) { if (this.type === '2' && (this.form.modelType === '2' || this.form.modelType === '3')) {
this.addMaterialList = data this.addMaterialList = data
data.forEach(item => {
this.addMaterialMap[item.businessId] = item
})
// 获取所有分页勾选的数据
this.addMaterialList = []
for (const key in this.addMaterialMap) {
this.addMaterialList.push(this.addMaterialMap[key])
}
// 勾选改变后最终的list也变
this.endMaterialList = this.addMaterialList
} else { } else {
if (data.length === 0) { if (data.length === 0) {
this.selectPartNum.forEach(item => { this.selectPartNum.forEach(item => {
......
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