Pre Merge pull request !127 from zz/dev_zz
commit
7e83e87a86
|
@ -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 },
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 预览生成代码 */
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
|
||||
/** 定时任务立即执行一次 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue