| | |
| | | }; |
| | | }); |
| | | let listen1 = listen.map((it) => { |
| | | let list = it.name.split(',').map((item, index) => { |
| | | // let list = it.name.split(',').map((item, index) => { |
| | | // return { name: item, id: it.subject.split(',')[index] }; |
| | | // }); |
| | | let list = it.name.split('#').map((item, index) => { |
| | | return { name: item, id: it.subject.split(',')[index] }; |
| | | }); |
| | | return { |
| | |
| | | pairRate: Number(res.data.pairRate) || 0, |
| | | }); |
| | | let pair1 = pair.map((it) => { |
| | | let list = it.name.split(',').map((item, index) => { |
| | | // let list = it.name.split(',').map((item, index) => { |
| | | // return { name: item, id: it.subject.split(',')[index] }; |
| | | // }); |
| | | let list = it.name.split('#').map((item, index) => { |
| | | return { name: item, id: it.subject.split(',')[index] }; |
| | | }); |
| | | return { |
| | |
| | | lookRate: Number(res.data.lookRate) || 0, |
| | | }); |
| | | let look1 = look.map((it) => { |
| | | let list = it.name.split(',').map((item, index) => { |
| | | // let list = it.name.split(',').map((item, index) => { |
| | | // return { |
| | | // name: item, |
| | | // id: it.subject.split(',')[index], |
| | | // sort: it.sort.split(',')[index], |
| | | // }; |
| | | // }); |
| | | let list = it.name.split('#').map((item, index) => { |
| | | return { |
| | | name: item, |
| | | id: it.subject.split(',')[index], |
| | | sort: it.sort.split(',')[index], |
| | | }; |
| | | }); |
| | | |
| | | return { |
| | | List: list, |
| | | itemId: it.id, |
| | |
| | | // if (item.includes('-')) { |
| | | return { |
| | | id: item.replace('-', ''), |
| | | name: it.name.split(',')[index], |
| | | name: it.name.split('#')[index], |
| | | checkType: index + 1, |
| | | checkTypeValue: numArr[0] + 1, |
| | | }; |
| | |
| | | // if (item.includes('-')) { |
| | | return { |
| | | id: item.replace('-', ''), |
| | | name: it.name.split(',')[index + 3], |
| | | name: it.name.split('#')[index + 3], |
| | | checkType: index + 1, |
| | | checkTypeValue: numArr[1] - 2, |
| | | }; |
| | |
| | | // if (item.includes('-')) { |
| | | return { |
| | | id: item.replace('-', ''), |
| | | name: it.name.split(',')[5], |
| | | name: it.name.split('#')[5], |
| | | checkType: index + 1, |
| | | checkTypeValue: 1, |
| | | }; |
| | |
| | | return { |
| | | id: item, |
| | | nickName: item, |
| | | name: it.name.split(',')[index], |
| | | name: it.name.split('#')[index], |
| | | iscaver: true, |
| | | itemId: it.id, |
| | | }; |
| | |
| | | return { |
| | | id: item, |
| | | nickName: item, |
| | | name: it.name.split(',')[index], |
| | | name: it.name.split('#')[index], |
| | | iscaver: false, |
| | | itemId: it.id, |
| | | }; |
| | |
| | | return { |
| | | id: item, |
| | | nickName: item, |
| | | name: it.name.split(',')[index], |
| | | name: it.name.split('#')[index], |
| | | iscaver: false, |
| | | itemId: it.id, |
| | | }; |
| | |
| | | return { |
| | | id: item, |
| | | nickName: item, |
| | | name: it.name.split(',')[index], |
| | | name: it.name.split('#')[index], |
| | | iscaver: true, |
| | | itemId: it.id, |
| | | }; |
| | |
| | | style={{ marginRight: '20px', marginBottom: '26px' }} |
| | | onClick={() => { |
| | | setExampleVisible(true); |
| | | console.log(form.getFieldValue('listenChoose')[index]); |
| | | setExampleData(form.getFieldValue('listenChoose')[index]); |
| | | if (form.getFieldValue('listenChoose')[index].type == 2) { |
| | | setType(2); |