Commit 6de1043a authored by 皮倩雯's avatar 皮倩雯

事件外部字段显示

parent b7d995e0
Pipeline #41848 skipped with stages
......@@ -251,7 +251,6 @@ const ChangeAdd = props => {
}, [filed1]);
const formateArrDataA1 = (initialArr, name) => {
console.log(initialArr);
let aa = [];
let a1 = [];
let a2;
......@@ -269,7 +268,6 @@ const ChangeAdd = props => {
a3.push(o);
});
});
console.log(a3);
// 判定传参是否符合规则
if (!(a3 instanceof Array)) {
......@@ -285,7 +283,6 @@ const ChangeAdd = props => {
nameArr.push(i.group);
}
});
console.log(nameArr);
// 新建一个包含多个list的结果对象
let tempObj = {};
// 根据不同的"name"生成多个数组
......@@ -298,7 +295,6 @@ const ChangeAdd = props => {
}
}
}
console.log(tempObj);
for (let key in tempObj) {
let arr = [];
tempObj[key].map(item => {
......
......@@ -104,7 +104,18 @@ const EditModal = props => {
}
});
let newArr = selectData.map(item => item.name);
console.log(newArr);
console.log(filed.外部字段);
let valueArr = [];
if (filed.外部字段) {
newArr.forEach(item => {
if (filed.外部字段.indexOf(item) != -1) {
valueArr.push(item);
}
});
}
callBackSubmit({
valueArr,
checkedList,
str: aRR.join(','),
pickItem,
......
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