You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
924 B
21 lines
924 B
from flask import session
|
|
from dash import dcc, html
|
|
from config.global_config import DSUrlConfig
|
|
|
|
def render(*args, **kwargs):
|
|
# user_info = session.get('user_info')
|
|
# if not user_info or not user_info.get('user_name') or not user_info.get('password'):
|
|
# # 处理未找到用户信息的情况
|
|
# return html.Div("用户信息不完整")
|
|
|
|
return html.Div(
|
|
[
|
|
html.Iframe(
|
|
id='project-iframe',
|
|
# src=f"https://47.121.212.121/dolphinscheduler/ui/data-quality/task-result?userName={user_info.get('user_name')}&password={user_info.get('password')}",
|
|
src=DSUrlConfig.DSUrl+'/data-quality/task-result?userName='+session.get('user_info').get('user_name')+"&password="+session.get('user_info').get('password'),
|
|
|
|
style={'width': '100%', 'height': 'calc(100vh - 122px)', 'border': 'none'}
|
|
)
|
|
]
|
|
)
|
|
|