This commit is contained in:
yumoqing 2025-01-17 14:33:55 +08:00
parent ad0b9a2f58
commit 860402f974
17 changed files with 23 additions and 33 deletions

View File

@ -1,17 +1,9 @@
{
"widgettype":"PopupWindow",
"widgettype":"ModalForm",
"options":{
"archor":"cc",
"cwidth":16,
"chegith":10,
"title":"add admin user"
},
"subwidgets":[
{
"id":"adminuser",
"widgettype":"Form",
"options":{
"cols":1,
"cwidth":20,
"cheight":30,
"title":"增加管理员",
"fields":[
{
"name":"username",
@ -29,12 +21,10 @@
"uitype":"password"
}
]
}
}
],
},
"binds":[
{
"wid":"adminuser",
"wid":"self",
"event":"submit",
"actiontype":"urlwidget",
"target":"self",

View File

@ -4,7 +4,7 @@ dbname = await rfexe('get_module_dbname', 'sage')
async with db.sqlorContext(dbname) as sor:
orgid = await register_user(sor, params_kw)
try:
ownerid = await get_owner_orgid(sor, orgid)
ownerid = await get_owner_orgid(sor)
await openCustomerAccounts(sor, ownerid, orgid)
except Exception as e:
fe = format_exc()