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

View File

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