Skip to content

Commit

Permalink
[change]增加导出bug验证
Browse files Browse the repository at this point in the history
  • Loading branch information
QJAutumn committed Oct 17, 2023
1 parent 5d8774a commit 81dcf23
Show file tree
Hide file tree
Showing 5 changed files with 1,044 additions and 498 deletions.
24 changes: 24 additions & 0 deletions apis/utils.http.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "类目接口",
"version": "1.0.0",
"description": "类目接口",
"group": "utils",
"guard": "-",
"paths": [
{
"guard": "-",
"path": "/export_name/:name/:table_name",
"method": "GET",
"process": "flows.utils.export",
"in": ["$param.name", ":query-param", "$param.table_name"],

"out": {
"status": 200,
"type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"headers": {
"Content-Disposition": "{{$param.table_name}}"
}
}
}
]
}
23 changes: 23 additions & 0 deletions flows/utils/export.flow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"label": "下载RFID",
"version": "1.0.0",
"description": "下载RFID",
"nodes": [
{
"name": "打印",
"process": "xiang.helper.Print",
"args": ["{{$in}}"]
},
{
"name": "文件",
"process": "yao.table.export",
"args": ["{{$in.0}}", "{{$in.1}}", 2000]
},
{
"name": "数据",
"process": "fs.system.ReadFile",
"args": ["{{$res.文件}}", false]
}
],
"output": "{{$res.数据}}"
}
5 changes: 5 additions & 0 deletions scripts/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ function Data(payload, context) {
// });
return true;
}

function Hero() {
console.log("进入hero的setting");
return Process("yao.table.Setting", "hero_copy");
}
Loading

0 comments on commit 81dcf23

Please sign in to comment.