mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-27 02:59:47 +02:00
change doscript to loadscript
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
<?lua
|
||||
local data = _G.dbmodel
|
||||
if not #data then
|
||||
local arg = {...}
|
||||
local data = arg[1]
|
||||
local order = arg[2]
|
||||
if not #data or #order == 0 then
|
||||
?>
|
||||
<div class = "notfound">
|
||||
<p>No entry found</p>
|
||||
@ -11,6 +13,8 @@
|
||||
</div>
|
||||
<?lua
|
||||
return
|
||||
else
|
||||
data = data[0]
|
||||
end
|
||||
|
||||
?>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<?lua
|
||||
local model = _G.dbmodel
|
||||
if #model.order == 0 then
|
||||
local arg = {...}
|
||||
local datas = arg[1]
|
||||
local order = arg[2]
|
||||
if #order == 0 then
|
||||
?>
|
||||
<div class = "notfound">
|
||||
<p>No entry found</p>
|
||||
@ -13,8 +15,8 @@
|
||||
return
|
||||
end
|
||||
|
||||
for idx,v in pairs(model.order) do
|
||||
local data = model.data[v]
|
||||
for idx,v in pairs(order) do
|
||||
local data = datas[v]
|
||||
?>
|
||||
<div class = "card">
|
||||
<div class = "side">
|
||||
|
Reference in New Issue
Block a user