Compare commits
2 Commits
fc493f38f3
...
525086cebf
| Author | SHA1 | Date |
|---|---|---|
|
|
525086cebf | |
|
|
d04512d638 |
|
|
@ -477,10 +477,10 @@
|
||||||
tableDataByTableName(querys).then((res) => {
|
tableDataByTableName(querys).then((res) => {
|
||||||
setTableData(res.data);
|
setTableData(res.data);
|
||||||
let arr: any = [];
|
let arr: any = [];
|
||||||
res.head.forEach((element, index) => {
|
res.headName.forEach((element, index) => {
|
||||||
arr.push({
|
arr.push({
|
||||||
title: res.headName[index],
|
title: element.comment ? element.comment : element.columnName,
|
||||||
dataIndex: element,
|
dataIndex: element.columnName,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
headData.value = arr;
|
headData.value = arr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue