- Defs.vue:工具栏"按应用筛选"下拉(/def/appkeys 数据源,clearable/filterable)+ 应用列(空显示 -) - 编辑器:头部"应用"Select(clearable/filterable/allow-create,可手输新值),载入回显、保存透传 appKey - defList 支持 appKey 可选参数、新增 defAppKeys;新参数全部可选,与后端部署顺序无依赖
This commit is contained in:
@@ -119,13 +119,17 @@ class FlowApi {
|
||||
}
|
||||
|
||||
// ==================== 管理面:流程定义 ====================
|
||||
defList() {
|
||||
return get(`${ROOT}/admin/def/list`);
|
||||
defList(params?: { status?: number; appKey?: string }) {
|
||||
return get(`${ROOT}/admin/def/list`, params);
|
||||
}
|
||||
/** 应用清单("按应用筛选"下拉):本校 flw_def 已标注 ∪ 已注册回调的应用 */
|
||||
defAppKeys() {
|
||||
return get(`${ROOT}/admin/def/appkeys`);
|
||||
}
|
||||
defGet(id: number | string) {
|
||||
return get(`${ROOT}/admin/def/get`, { id });
|
||||
}
|
||||
defSave(body: { id?: number; code: string; name: string; contentJson: string; baseGuid?: string }) {
|
||||
defSave(body: { id?: number; code: string; name: string; contentJson: string; baseGuid?: string; appKey?: string }) {
|
||||
return post(`${ROOT}/admin/def/save`, body);
|
||||
}
|
||||
defPublish(id: number | string) {
|
||||
|
||||
Reference in New Issue
Block a user