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) {
|
export function syncCodegenFromDB(tableId: number) {
|
||||||
return requestClient.put('/infra/codegen/sync-from-db', {
|
return requestClient.put(
|
||||||
|
'/infra/codegen/sync-from-db',
|
||||||
|
{},
|
||||||
|
{
|
||||||
params: { tableId },
|
params: { tableId },
|
||||||
});
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 预览生成代码 */
|
/** 预览生成代码 */
|
||||||
|
|
|
@ -57,7 +57,7 @@ export function updateJobStatus(id: number, status: number) {
|
||||||
id,
|
id,
|
||||||
status,
|
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" />
|
<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>
|
</div>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -237,7 +237,7 @@ initDataSourceConfig();
|
||||||
danger: true,
|
danger: true,
|
||||||
auth: ['infra:codegen:delete'],
|
auth: ['infra:codegen:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.tableName]),
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue