From 29ed9ebf7521535ca53463d306508bddcbd26c2f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 15 Aug 2025 13:54:54 +0800 Subject: [PATCH] bugfix --- json/upapp.json | 22 +++++++++++++++++++++- wwwroot/jump_in.dspy | 11 +++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 wwwroot/jump_in.dspy diff --git a/json/upapp.json b/json/upapp.json index 1585016..344a9b2 100644 --- a/json/upapp.json +++ b/json/upapp.json @@ -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')}}" + } + } + ] } } diff --git a/wwwroot/jump_in.dspy b/wwwroot/jump_in.dspy new file mode 100644 index 0000000..07386fc --- /dev/null +++ b/wwwroot/jump_in.dspy @@ -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 + } +}