|
|
@ -8,7 +8,6 @@ export async function columnList(param: { viewId: string }) { |
|
|
|
} |
|
|
|
} |
|
|
|
export async function columnAdd(param: { |
|
|
|
export async function columnAdd(param: { |
|
|
|
viewId: string; |
|
|
|
viewId: string; |
|
|
|
columnId: string; |
|
|
|
|
|
|
|
column: ViewColumnReqType; |
|
|
|
column: ViewColumnReqType; |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
validatePayload( |
|
|
|
validatePayload( |
|
|
@ -18,8 +17,11 @@ export async function columnAdd(param: { |
|
|
|
|
|
|
|
|
|
|
|
const viewColumn = await View.insertOrUpdateColumn( |
|
|
|
const viewColumn = await View.insertOrUpdateColumn( |
|
|
|
param.viewId, |
|
|
|
param.viewId, |
|
|
|
param.columnId, |
|
|
|
param.column.fk_column_id, |
|
|
|
param.column |
|
|
|
{ |
|
|
|
|
|
|
|
order: param.column.order, |
|
|
|
|
|
|
|
show: param.column.show, |
|
|
|
|
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
T.emit('evt', { evt_type: 'viewColumn:inserted' }); |
|
|
|
T.emit('evt', { evt_type: 'viewColumn:inserted' }); |
|
|
|
|
|
|
|
|
|
|
|