fix: 添加init bind传递discountid,dspy添加early debug日志
This commit is contained in:
parent
abcfd7c9a2
commit
4f05c285a1
@ -2,6 +2,7 @@
|
|||||||
# 参数: discountid (必需)
|
# 参数: discountid (必需)
|
||||||
|
|
||||||
discountid = params_kw.get('discountid')
|
discountid = params_kw.get('discountid')
|
||||||
|
debug(f'get_products_with_discount called: params_kw keys={list(params_kw.keys())}, discountid={discountid}')
|
||||||
if not discountid:
|
if not discountid:
|
||||||
return {"total": 0, "rows": []}
|
return {"total": 0, "rows": []}
|
||||||
|
|
||||||
|
|||||||
@ -67,5 +67,14 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"binds": [
|
||||||
|
{
|
||||||
|
"wid": "self",
|
||||||
|
"event": "init",
|
||||||
|
"actiontype": "script",
|
||||||
|
"target": "product_discount_tbl",
|
||||||
|
"script": "var discountid = new URLSearchParams(window.location.search).get('discountid') || ''; if (discountid) { await this.render({discountid: discountid}); }"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user