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

事件外部字段显示

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