fix: tree控件新增子项后回查记录返回user_data,修复子节点不显示问题
This commit is contained in:
parent
7b8010cf9f
commit
fc91486c05
@ -305,6 +305,8 @@ db = DBPools()
|
||||
dbname = get_module_dbname('{{modulename}}')
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
r = await sor.C('{{summary[0].name}}', ns.copy())
|
||||
_new_rows = await sor.sqlExe("SELECT * FROM {{summary[0].name}} WHERE {{summary[0].pkey}} = ${id}$", {'id': id})
|
||||
_user_data = _new_rows[0] if _new_rows else ns
|
||||
return {
|
||||
"widgettype":"Message",
|
||||
"options":{
|
||||
@ -312,7 +314,8 @@ async with db.sqlorContext(dbname) as sor:
|
||||
"cheight":9,
|
||||
"title":"Add Success",
|
||||
"timeout":3,
|
||||
"message":"ok"
|
||||
"message":"ok",
|
||||
"user_data": _user_data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user