发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1

This commit is contained in:
孟帅
2023-01-18 16:23:39 +08:00
parent 50207ded90
commit 87c27a17a3
386 changed files with 27926 additions and 44297 deletions

View File

@@ -0,0 +1,75 @@
import { http, jumpExport } from '@/utils/http/axios';
// 获取@{.tableComment}列表
export function List(params) {
return http.request({
url: '/@{.varName | LcFirst}/list',
method: 'get',
params,
});
}
@{ if eq .options.Step.HasDel true }
// 删除/批量删除@{.tableComment}
export function Delete(params) {
return http.request({
url: '/@{.varName | LcFirst}/delete',
method: 'POST',
params,
});
}
@{end}
@{ if eq .options.Step.HasEdit true }
// 新建/编辑@{.tableComment}
export function Edit(params) {
return http.request({
url: '/@{.varName | LcFirst}/edit',
method: 'POST',
params,
});
}
@{end}
@{ if eq .options.Step.HasStatus true }
// 修改@{.tableComment}状态
export function Status(params) {
return http.request({
url: '/@{.varName | LcFirst}/status',
method: 'POST',
params,
});
}
@{end}
@{ if eq .options.Step.HasSwitch true }
// 操作@{.tableComment}开关
export function Switch(params) {
return http.request({
url: '/@{.varName | LcFirst}/switch',
method: 'POST',
params,
});
}
@{end}
@{ if eq .options.Step.HasView true }
// 获取@{.tableComment}指定详情
export function View(params) {
return http.request({
url: '/@{.varName | LcFirst}/view',
method: 'GET',
params,
});
}
@{end}
@{ if eq .options.Step.HasMaxSort true }
// 获取@{.tableComment}最大排序
export function MaxSort() {
return http.request({
url: '/@{.varName | LcFirst}/maxSort',
method: 'GET',
});
}
@{end}
@{ if eq .options.Step.HasExport true }
// 导出@{.tableComment}
export function Export(params) {
jumpExport('/@{.varName | LcFirst}/export', params);
}
@{end}