|
|
@ -120,6 +120,11 @@ function SorterApp(){ |
|
|
|
function submitForm(){ |
|
|
|
function submitForm(){ |
|
|
|
if (item1.length>0&&item2.length>0&&item3.length>0&&item4.length>0&&item5.length>0&& |
|
|
|
if (item1.length>0&&item2.length>0&&item3.length>0&&item4.length>0&&item5.length>0&& |
|
|
|
item1_2.length>0&&item2_2.length>0&&item3_2.length>0&&item4_2.length>0&&item5_2.length>0){ |
|
|
|
item1_2.length>0&&item2_2.length>0&&item3_2.length>0&&item4_2.length>0&&item5_2.length>0){ |
|
|
|
|
|
|
|
setResult1(NONE) |
|
|
|
|
|
|
|
setResult2(NONE) |
|
|
|
|
|
|
|
setResult3(NONE) |
|
|
|
|
|
|
|
setResult4(NONE) |
|
|
|
|
|
|
|
setResult5(NONE) |
|
|
|
setChecking(true); |
|
|
|
setChecking(true); |
|
|
|
|
|
|
|
|
|
|
|
for (let i of [ |
|
|
|
for (let i of [ |
|
|
@ -164,24 +169,27 @@ function SorterApp(){ |
|
|
|
itemData2={...results} |
|
|
|
itemData2={...results} |
|
|
|
if (itemData1.ItemSortCategory.ID<itemData2.ItemSortCategory.ID){ |
|
|
|
if (itemData1.ItemSortCategory.ID<itemData2.ItemSortCategory.ID){ |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
|
|
|
|
setChecking(false) |
|
|
|
return |
|
|
|
return |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (itemData1.ItemSortCategory.ID==itemData2.ItemSortCategory.ID&& |
|
|
|
if (itemData1.ItemSortCategory.ID==itemData2.ItemSortCategory.ID&& |
|
|
|
itemData1.ItemUICategory.ID<itemData2.ItemUICategory.ID){ |
|
|
|
itemData1.ItemUICategory.ID<itemData2.ItemUICategory.ID){ |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
|
|
|
|
setChecking(false) |
|
|
|
return |
|
|
|
return |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (itemData1.ItemSortCategory.ID==itemData2.ItemSortCategory.ID&& |
|
|
|
if (itemData1.ItemSortCategory.ID==itemData2.ItemSortCategory.ID&& |
|
|
|
itemData1.ItemUICategory.ID==itemData2.ItemUICategory.ID&& |
|
|
|
itemData1.ItemUICategory.ID==itemData2.ItemUICategory.ID&& |
|
|
|
itemData1.ID<itemData2.ID){ |
|
|
|
itemData1.ID<itemData2.ID){ |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
i.resultFunc(SUCCESS) |
|
|
|
|
|
|
|
setChecking(false) |
|
|
|
return |
|
|
|
return |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
i.resultFunc(REJECTED) |
|
|
|
i.resultFunc(REJECTED) |
|
|
|
|
|
|
|
setChecking(false) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err)=>{console.log(err);}) |
|
|
|
.catch((err)=>{console.log(err);setChecking(false)}) |
|
|
|
.finally(()=>{setChecking(false)}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//axios.get(encodeURI("https://xivapi.com/search?string="+i))
|
|
|
|
//axios.get(encodeURI("https://xivapi.com/search?string="+i))
|
|
|
|
} |
|
|
|
} |
|
|
|