featL 处理优化信息
This commit is contained in:
parent
127772bd88
commit
c1f62e75ae
|
|
@ -286,7 +286,7 @@ def create_app():
|
||||||
async def flows_list(user: DB.User = Depends(get_current_user)):
|
async def flows_list(user: DB.User = Depends(get_current_user)):
|
||||||
global_tasks = app.state.tasks
|
global_tasks = app.state.tasks
|
||||||
global_status = app.state.task_nodes
|
global_status = app.state.task_nodes
|
||||||
db_filter = { "id_deleted": 0 }
|
db_filter = { "is_deleted": 0 }
|
||||||
if user.level != 0:
|
if user.level != 0:
|
||||||
work_ids = await DB.WorkUserRelation.filter(user_id=user.id).values_list("work_id", flat=True)
|
work_ids = await DB.WorkUserRelation.filter(user_id=user.id).values_list("work_id", flat=True)
|
||||||
db_filter["id__in": work_ids if work_ids else [0]]
|
db_filter["id__in": work_ids if work_ids else [0]]
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ const FlowDetail = () => {
|
||||||
sourcePosition: 'right',
|
sourcePosition: 'right',
|
||||||
targetPosition: 'left',
|
targetPosition: 'left',
|
||||||
type: e.type,
|
type: e.type,
|
||||||
data: { label: e.title, style: { backgroundColor: COLORS[e.type] }, position: POSITION[e.type] },
|
data: { label: e?.title || '开始' , style: { backgroundColor: COLORS[e.type] }, position: POSITION[e.type] },
|
||||||
detail: e
|
detail: e
|
||||||
})
|
})
|
||||||
if (e.edge) {
|
if (e.edge) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue