update export method
This commit is contained in:
Vendored
+2
-1
@@ -62,6 +62,7 @@ class BcmTool {
|
||||
ExportPlayerInfo(playersToQuery) {
|
||||
const lstAttributes = [...this.attributes];
|
||||
const form = new Form();
|
||||
form.SetCell(0, 0, "姓名");
|
||||
form.SetCell(0, 1, "球队");
|
||||
for (let i = 0; i != lstAttributes.length; ++i) {
|
||||
form.SetCell(0, i + 2, lstAttributes[i][0]);
|
||||
@@ -76,7 +77,7 @@ class BcmTool {
|
||||
form.SetCell(i + 1, 1, this.QueryOwner(playerId));
|
||||
for (let j = 0; j != lstAttributes.length; ++j) {
|
||||
const record = this.QueryInfo(playerId, lstAttributes[j][1]);
|
||||
form.SetCell(i + 2, j + 1, record.toString());
|
||||
form.SetCell(i + 1, j + 2, record.toString());
|
||||
}
|
||||
}
|
||||
console.log(form);
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ class BcmTool
|
||||
for (let j = 0; j != lstAttributes.length; ++j)
|
||||
{
|
||||
const record = this.QueryInfo(playerId, lstAttributes[j][1] as number);
|
||||
form.SetCell(i + 2, j + 1, record.toString());
|
||||
form.SetCell(i + 1, j + 2, record.toString());
|
||||
}
|
||||
}
|
||||
console.log(form);
|
||||
|
||||
Reference in New Issue
Block a user