add some alerts

This commit is contained in:
Huang,Yonggang 2024-06-09 15:33:33 +08:00
parent 355176cee8
commit e4004f0f85
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
alert(xmlhttp.responseText); */
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var seaonobj = YAML.parse(xmlhttp.responseText);
alert(seaonobj.time.alloc);
alert(seaonobj.time.alloc.PSMD);
var statobj = new Object();
statobj.total = { alloc: 0, sold: 0, hold: 0, todo: 0 };
for (var task in seasonobj.time.alloc) {
@ -81,7 +81,7 @@
statobj[task].todo = this.todosum(seasonobj.todo[task]);
statobj.total.todo = statobj.total.todo + statobj[task].todo;
}
alert(YAML.dump(statobj));
const tbl = document.createElement("table");
const tblBody = document.createElement("tbody");
const row = document.createElement("tr");