|
@@ -1154,14 +1154,17 @@ export default {
|
|
|
// 处理列表信息
|
|
|
columnsHandler(columns) {
|
|
|
let resArr = [];
|
|
|
- columns.forEach((item) => {
|
|
|
- // for (const key in item) {
|
|
|
- // let tempObj = {};
|
|
|
- // tempObj.key = camelCase(key);
|
|
|
- // tempObj.value = item[key];
|
|
|
- // resArr.push(tempObj);
|
|
|
- // }
|
|
|
- });
|
|
|
+ // columns.forEach((item) => {
|
|
|
+ // for (const key in item) {
|
|
|
+ // let tempObj = {};
|
|
|
+ // tempObj.key = camelCase(key);
|
|
|
+ // tempObj.value = item[key];
|
|
|
+ // resArr.push(tempObj);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ if (!columns) {
|
|
|
+ return resArr;
|
|
|
+ }
|
|
|
resArr = columns.map((item) => {
|
|
|
let { fieldName, fieldDescription, tableName } = item;
|
|
|
return {
|