Commit 61370e2a authored by 华国豪's avatar 华国豪 🙄

gaibug

parent 3991fff4
...@@ -1652,21 +1652,22 @@ ...@@ -1652,21 +1652,22 @@
let list = [] let list = []
for (var j = 0; j < Diningdest.length; j++) { for (var j = 0; j < Diningdest.length; j++) {
var dj = Diningdest[j]; var dj = Diningdest[j];
if (dj.UseTimeStr == ai.UseTimeStr && dj.NewDiningID == ai.NewDiningID) { if (dj.id == (ai.NewDiningID + ai.UseTimeStr + ai.UseDinnerTypeStr)) {
dj.data.push(ai); dj.data.push(ai);
break; break;
} else { }
list.push(ai) // else {
} // list.push(ai)
} // }
for (let i = 0; i < list.length; i++) {
Diningdest.push({
UseTimeStr: ai.UseTimeStr,
DiningID: ai.NewDiningID,
id: ai.NewDiningID + ai.UseTimeStr + ai.UseDinnerTypeStr,
data: [ai]
});
} }
// for (let i = 0; i < list.length; i++) {
// Diningdest.push({
// UseTimeStr: ai.UseTimeStr,
// DiningID: ai.NewDiningID,
// id: ai.NewDiningID + ai.UseTimeStr + ai.UseDinnerTypeStr,
// data: [ai]
// });
// }
} }
} }
for (var i = 0; i < Diningdest.length; i++) { for (var i = 0; i < Diningdest.length; i++) {
......
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