|
|
@ -652,11 +652,10 @@ export default class View implements ViewType { |
|
|
|
colId: string, |
|
|
|
colId: string, |
|
|
|
colData: { |
|
|
|
colData: { |
|
|
|
order?: number; |
|
|
|
order?: number; |
|
|
|
show?: boolean; |
|
|
|
show?: BoolType; |
|
|
|
}, |
|
|
|
}, |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
): Promise<Array<GridViewColumn | any>> { |
|
|
|
) { |
|
|
|
const columns: Array<GridViewColumn | any> = []; |
|
|
|
|
|
|
|
const view = await this.get(viewId, ncMeta); |
|
|
|
const view = await this.get(viewId, ncMeta); |
|
|
|
let table; |
|
|
|
let table; |
|
|
|
let cacheScope; |
|
|
|
let cacheScope; |
|
|
@ -722,9 +721,7 @@ export default class View implements ViewType { |
|
|
|
await NocoCache.set(key, o); |
|
|
|
await NocoCache.set(key, o); |
|
|
|
} |
|
|
|
} |
|
|
|
// set meta
|
|
|
|
// set meta
|
|
|
|
await ncMeta.metaUpdate(null, null, table, updateObj, colId); |
|
|
|
return await ncMeta.metaUpdate(null, null, table, updateObj, colId); |
|
|
|
|
|
|
|
|
|
|
|
return columns; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static async insertOrUpdateColumn( |
|
|
|
static async insertOrUpdateColumn( |
|
|
|