代码预览的功能,完成

This commit is contained in:
YunaiV
2021-02-10 17:45:04 +08:00
parent ea631ee42b
commit 8cfb82659b
18 changed files with 223 additions and 390 deletions

View File

@ -25,3 +25,20 @@ export function updateCodegen(data) {
data: data
})
}
// 预览生成代码
export function previewCodegen(tableId) {
return request({
url: '/tool/codegen/preview?tableId=' + tableId,
method: 'get'
})
}
// 下载生成代码
export function downloadCodegen(tableId) {
return request({
url: '/tool/codegen/download?tableId=' + tableId,
method: 'get',
responseType: 'blob'
})
}

View File

@ -18,14 +18,6 @@ export function importTable(data) {
})
}
// 预览生成代码
export function previewTable(tableId) {
return request({
url: '/tool/gen/preview/' + tableId,
method: 'get'
})
}
// 删除表数据
export function delTable(tableId) {
return request({