Commit d983cf3d authored by 皮倩雯's avatar 皮倩雯

修改拖拽功能

parent 7cc450e3
Pipeline #39434 skipped with stages
...@@ -75,7 +75,7 @@ const AddModal = props => { ...@@ -75,7 +75,7 @@ const AddModal = props => {
} }
}); });
} else { } else {
checkedList.map((item, index) => { arrValue.map((item, index) => {
oldArr = oldArr.concat(item); oldArr = oldArr.concat(item);
}); });
...@@ -354,8 +354,14 @@ const AddModal = props => { ...@@ -354,8 +354,14 @@ const AddModal = props => {
}, [visible]); }, [visible]);
const dragCallBack = arr => { const dragCallBack = arr => {
console.log(arr);
if (arr) { if (arr) {
console.log(111);
setSelectData(arr); setSelectData(arr);
let newArr = arr.map(item => item.name);
console.log(newArr);
setArrValue(newArr);
} }
}; };
......
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