bugfix
This commit is contained in:
parent
931968ef48
commit
29ed9ebf75
@ -17,6 +17,26 @@
|
||||
"subtable": "upappkey",
|
||||
"title": "APIKEY"
|
||||
}
|
||||
]
|
||||
],
|
||||
"toolbar":{
|
||||
"tools":[
|
||||
{
|
||||
"name":"jumpin",
|
||||
"label":"跳转到",
|
||||
"selected_data": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"binds":[
|
||||
{
|
||||
"wid":"self",
|
||||
"event":"jumpin",
|
||||
"actiontype":"urlwidget",
|
||||
"target":"self",
|
||||
"options":{
|
||||
"url":"{{entire_url('/uapi/jumpin.dspy')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
11
wwwroot/jump_in.dspy
Normal file
11
wwwroot/jump_in.dspy
Normal file
@ -0,0 +1,11 @@
|
||||
userid = await get_user()
|
||||
d = await get_deerer(params_kw.id, userid)
|
||||
if d is None:
|
||||
return UiError(title='跳转', message='当前用户没有上位系统apikey")
|
||||
return {
|
||||
"widgettype":"NewWindow",
|
||||
"options":{
|
||||
"name": "upappid",
|
||||
"url": parmas_kw.baseurl + "/v1/jump-in?dearer=" + d
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user