feat: add tenant module — menu entry + init loading
- Add tenant wwwroot symlink to pipeline-app - Add '租户管理' to sidebar menu - Load tenant.init in app init
This commit is contained in:
parent
4e560116e9
commit
3623d5725e
@ -22,11 +22,17 @@ def init():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
def load_pipeline_service(): pass
|
def load_pipeline_service(): pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
from pipeline_task.init import load_pipeline_task
|
||||||
|
except ImportError:
|
||||||
|
def load_pipeline_task(): pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from pipeline_sdlc.adapter import load_sdlc_adapter
|
from pipeline_sdlc.adapter import load_sdlc_adapter
|
||||||
except ImportError:
|
except ImportError:
|
||||||
def load_sdlc_adapter(): pass
|
def load_sdlc_adapter(): pass
|
||||||
from showcase.init import load_showcase
|
from showcase.init import load_showcase
|
||||||
|
from tenant.init import load_tenant
|
||||||
from ktv_adapter import load_ktv_adapter
|
from ktv_adapter import load_ktv_adapter
|
||||||
from global_func import set_globalvariable
|
from global_func import set_globalvariable
|
||||||
|
|
||||||
@ -38,8 +44,10 @@ def init():
|
|||||||
load_pipeline_ops()
|
load_pipeline_ops()
|
||||||
load_pipeline_dist()
|
load_pipeline_dist()
|
||||||
load_pipeline_service()
|
load_pipeline_service()
|
||||||
|
load_pipeline_task()
|
||||||
load_sdlc_adapter()
|
load_sdlc_adapter()
|
||||||
load_showcase()
|
load_showcase()
|
||||||
|
load_tenant()
|
||||||
load_ktv_adapter()
|
load_ktv_adapter()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -11,11 +11,11 @@
|
|||||||
{"widgettype": "Title4", "options": {"text": "产线平台", "color": "#fff"}},
|
{"widgettype": "Title4", "options": {"text": "产线平台", "color": "#fff"}},
|
||||||
{"widgettype": "Filler"},
|
{"widgettype": "Filler"},
|
||||||
{
|
{
|
||||||
"widgettype": "urlwidget",
|
"widgettype": "urlwidget",
|
||||||
"options": {
|
"options": {
|
||||||
"url": "{{entire_url('/rbac/user/user_panel.ui')}}"
|
"url": "{{entire_url('/rbac/user/user_panel.ui')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -23,34 +23,35 @@
|
|||||||
"options": {"css": "filler", "padding": "0", "gap": "0"},
|
"options": {"css": "filler", "padding": "0", "gap": "0"},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"options":{
|
"options":{
|
||||||
"width": "220px",
|
"width": "220px",
|
||||||
"minWidth": "200px",
|
"minWidth": "200px",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
"bgcolor": "#f8fafc"
|
"bgcolor": "#f8fafc"
|
||||||
},
|
},
|
||||||
"subwidgets":[
|
"subwidgets":[
|
||||||
{
|
{
|
||||||
"widgettype": "Menu",
|
"widgettype": "Menu",
|
||||||
"id": "sidebar_menu",
|
"id": "sidebar_menu",
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
"target": "app.main_content",
|
"target": "app.main_content",
|
||||||
"items": [
|
"items": [
|
||||||
{"name": "pipeline_core", "label": "产线管理", "icon": "{{entire_url('/imgs/cubes.svg')}}", "url": "{{entire_url('/pipeline_core/')}}"},
|
{"name": "pipeline_core", "label": "产线管理", "icon": "{{entire_url('/imgs/cubes.svg')}}", "url": "{{entire_url('/pipeline_core/')}}"},
|
||||||
{"name": "pipeline_sdlc", "label": "开发产线", "icon": "{{entire_url('/imgs/workflow.svg')}}", "url": "{{entire_url('/pipeline_sdlc/')}}"},
|
{"name": "pipeline_sdlc", "label": "开发产线", "icon": "{{entire_url('/imgs/workflow.svg')}}", "url": "{{entire_url('/pipeline_sdlc/')}}"},
|
||||||
{"name": "pipeline_ops", "label": "运营管理", "icon": "{{entire_url('/imgs/dashboard.svg')}}", "url": "{{entire_url('/pipeline_ops/')}}"},
|
{"name": "pipeline_ops", "label": "运营管理", "icon": "{{entire_url('/imgs/dashboard.svg')}}", "url": "{{entire_url('/pipeline_ops/')}}"},
|
||||||
{"name": "pipeline_dist", "label": "分销管理", "icon": "{{entire_url('/imgs/truck.svg')}}", "url": "{{entire_url('/pipeline_dist/')}}"},
|
{"name": "pipeline_dist", "label": "分销管理", "icon": "{{entire_url('/imgs/truck.svg')}}", "url": "{{entire_url('/pipeline_dist/')}}"},
|
||||||
{"name": "pipeline_task", "label": "任务中心", "icon": "{{entire_url('/imgs/rocket.svg')}}", "url": "{{entire_url('/pipeline_task/')}}"},
|
{"name": "pipeline_task", "label": "任务中心", "icon": "{{entire_url('/imgs/rocket.svg')}}", "url": "{{entire_url('/pipeline_task/')}}"},
|
||||||
{"name": "pipeline_ktv", "label": "KTV产线", "icon": "{{entire_url('/imgs/mic.svg')}}", "url": "{{entire_url('/pipeline_task/task_submit.ui')}}"},
|
{"name": "pipeline_ktv", "label": "KTV产线", "icon": "{{entire_url('/imgs/mic.svg')}}", "url": "{{entire_url('/pipeline_task/task_submit.ui')}}"},
|
||||||
{"name": "showcase", "label": "展示平台", "icon": "{{entire_url('/imgs/user-circle.svg')}}", "url": "{{entire_url('/showcase/')}}"}
|
{"name": "showcase", "label": "展示平台", "icon": "{{entire_url('/imgs/user-circle.svg')}}", "url": "{{entire_url('/showcase/')}}"},
|
||||||
]
|
{"name": "tenant", "label": "租户管理", "icon": "{{entire_url('/imgs/globe.svg')}}", "url": "{{entire_url('/tenant/')}}"}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
},
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "VScrollPanel",
|
"widgettype": "VScrollPanel",
|
||||||
"id": "main_content",
|
"id": "main_content",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user