fix: 代码格式
parent
17b0e70dab
commit
e789fea9ec
|
@ -112,30 +112,19 @@ export function updateCodegenTable(data: InfraCodegenApi.CodegenUpdateReqVO) {
|
||||||
|
|
||||||
/** 基于数据库的表结构,同步数据库的表和字段定义 */
|
/** 基于数据库的表结构,同步数据库的表和字段定义 */
|
||||||
export function syncCodegenFromDB(tableId: number) {
|
export function syncCodegenFromDB(tableId: number) {
|
||||||
return requestClient.put(
|
return requestClient.put(`/infra/codegen/sync-from-db?tableId=${tableId}`);
|
||||||
'/infra/codegen/sync-from-db',
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
params: { tableId },
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 预览生成代码 */
|
/** 预览生成代码 */
|
||||||
export function previewCodegen(tableId: number) {
|
export function previewCodegen(tableId: number) {
|
||||||
return requestClient.get<InfraCodegenApi.CodegenPreview[]>(
|
return requestClient.get<InfraCodegenApi.CodegenPreview[]>(
|
||||||
'/infra/codegen/preview',
|
`/infra/codegen/preview?tableId=${tableId}`,
|
||||||
{
|
|
||||||
params: { tableId },
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 下载生成代码 */
|
/** 下载生成代码 */
|
||||||
export function downloadCodegen(tableId: number) {
|
export function downloadCodegen(tableId: number) {
|
||||||
return requestClient.download('/infra/codegen/download', {
|
return requestClient.download(`/infra/codegen/download?tableId=${tableId}`);
|
||||||
params: { tableId },
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获得表定义 */
|
/** 获得表定义 */
|
||||||
|
|
|
@ -204,9 +204,9 @@ function handleMenuClick(e: any) {
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<IconifyIcon v-if="action.icon" :icon="action.icon" />
|
<IconifyIcon v-if="action.icon" :icon="action.icon" />
|
||||||
<span :class="action.icon ? 'ml-1' : ''">{{
|
<span :class="action.icon ? 'ml-1' : ''">
|
||||||
action.text
|
{{ action.text }}
|
||||||
}}</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue