pull/128/head
xingyu4j 2025-06-04 16:47:55 +08:00
commit 17b0e70dab
4 changed files with 12 additions and 6 deletions

View File

@ -112,9 +112,13 @@ export function updateCodegenTable(data: InfraCodegenApi.CodegenUpdateReqVO) {
/** 基于数据库的表结构,同步数据库的表和字段定义 */
export function syncCodegenFromDB(tableId: number) {
return requestClient.put('/infra/codegen/sync-from-db', {
params: { tableId },
});
return requestClient.put(
'/infra/codegen/sync-from-db',
{},
{
params: { tableId },
},
);
}
/** 预览生成代码 */

View File

@ -57,7 +57,7 @@ export function updateJobStatus(id: number, status: number) {
id,
status,
};
return requestClient.put('/infra/job/update-status', { params });
return requestClient.put('/infra/job/update-status', {}, { params });
}
/** 定时任务立即执行一次 */

View File

@ -204,7 +204,9 @@ function handleMenuClick(e: any) {
"
>
<IconifyIcon v-if="action.icon" :icon="action.icon" />
<span class="ml-1">{{ action.text }}</span>
<span :class="action.icon ? 'ml-1' : ''">{{
action.text
}}</span>
</div>
</Popconfirm>
</template>

View File

@ -237,7 +237,7 @@ initDataSourceConfig();
danger: true,
auth: ['infra:codegen:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
title: $t('ui.actionMessage.deleteConfirm', [row.tableName]),
confirm: handleDelete.bind(null, row),
},
},