lichong 7 months ago
parent
commit
6e700ba9a0
  1. 39
      src/renderer/src/App.vue

39
src/renderer/src/App.vue

@ -340,27 +340,32 @@ export default {
jifenData[`pos${i}${j}`] = 0 jifenData[`pos${i}${j}`] = 0
} }
} }
// // ()
for (let i = 0; i < posData.length; i++) { for (let i = 0; i < allData.length; i++) {
let posItem = posData[i]; let item = _.compact(_.split(allData[i], ","))
for (let j = 0; j < allData.length; j++) { let moshi1Arr = []
let item = _.compact(_.split(allData[j], ",")) for (let j = 0; j < item.length; j++) {
if (item.indexOf(`${i + 1}`) === -1) { moshi1Arr.push(posData[Number(j) - 1])
for (let k = 0; k < item.length; k++) { }
let maxingItem = item[k]; for (let j = 0; j < item.length; j++) {
jifenData[`pos${posItem}${maxingItem}`]++ for (let k = 1; k < 11; k++) {
if (moshi1Arr.indexOf(`${k}`) === -1) {
jifenData[`pos${k}${item[j]}`]++
} }
} }
} }
} }
// // ()
for (let j = 0; j < allData.length; j++) { for (let i = 0; i < allData.length; i++) {
let item = _.compact(_.split(allData[j], ",")) let item = _.compact(_.split(allData[i], ","))
for (let i = 0; i < posData.length; i++) { let moshi1Arr = []
if (item.indexOf(`${i + 1}`) === -1) { for (let j = 0; j < item.length; j++) {
for (let k = 0; k < item.length; k++) { moshi1Arr.push(posData[Number(item[j]) - 1])
let maxingItem = item[k]; }
jifenData[`pos${maxingItem}${i + 1}`]++ for (let j = 0; j < moshi1Arr.length; j++) {
for (let k = 1; k < 11; k++) {
if (item.indexOf(`${k}`) === -1) {
jifenData[`pos${moshi1Arr[j]}${k}`]++
} }
} }
} }

Loading…
Cancel
Save