|
# module配置输出源 配置为map
|
|
config:
|
|
plan:
|
|
# 文件location
|
|
filename: ./log/plan
|
|
filetype: html
|
|
default: "<style>.hr{width:100%;}table{width:100%;border:1;background:#FF9966;}table td{word-break: break-all;background-color:#fff;}.t_title{width:15%;}.time-val{width:30%;}.val{width:40%;font-weight: 700;}.info{width:75%;}</style>"
|
|
# 支持文件的最大个数
|
|
MaxAge: 30
|
|
body:
|
|
info : "<table><tr><td class=\"t_title\">时间:</td><td class=\"time-val\">[time]</td><td class=\"t_title\">错误提示:</td><td class=\"val\">[info]</td></tr><tr><td>Request:</td><td class=\"info\" colspan=\"3\">[request]</td></tr><tr><td>Response:</td><td class=\"info\" colspan=\"3\">[response]</td></tr></table><hr></hr>"
|
|
replace :
|
|
- "time"
|
|
- "info"
|
|
- "request"
|
|
- "response"
|
|
salesorder:
|
|
# 文件location
|
|
filename: ./log/salesOrder
|
|
filetype: html
|
|
default: "<style>.hr{width:100%;}table{width:100%;border:1;background:#FF9966;}table td{word-break: break-all;background-color:#fff;}.t_title{width:15%;}.time-val{width:30%;}.val{width:40%;font-weight: 700;}.info{width:75%;}</style>"
|
|
# 支持文件的最大个数
|
|
MaxAge: 30
|
|
body:
|
|
info: "<table><tr><td class=\"t_title\">时间:</td><td class=\"time-val\">[time]</td><td class=\"t_title\">错误提示:</td><td class=\"val\">[info]</td></tr><tr><td>Request:</td><td class=\"info\" colspan=\"3\">[request]</td></tr><tr><td>Response:</td><td class=\"info\" colspan=\"3\">[response]</td></tr></table><hr></hr>"
|
|
replace:
|
|
- "time"
|
|
- "info"
|
|
- "request"
|
|
- "response"
|
|
forecast:
|
|
# 文件location
|
|
filename: ./log/forecast
|
|
filetype: html
|
|
default: "<style>.hr{width:100%;}table{width:100%;border:1;background:#FF9966;}table td{word-break: break-all;background-color:#fff;}.t_title{width:15%;}.time-val{width:30%;}.val{width:40%;font-weight: 700;}.info{width:75%;}</style>"
|
|
# 支持文件的最大个数
|
|
MaxAge: 30
|
|
body:
|
|
info: "<table><tr><td class=\"t_title\">时间:</td><td class=\"time-val\">[time]</td><td class=\"t_title\">错误提示:</td><td class=\"val\">[info]</td></tr><tr><td>Request:</td><td class=\"info\" colspan=\"3\">[request]</td></tr><tr><td>Response:</td><td class=\"info\" colspan=\"3\">[response]</td></tr></table><hr></hr>"
|
|
replace:
|
|
- "time"
|
|
- "info"
|
|
- "request"
|
|
- "response"
|
|
planlog:
|
|
filename: ./log/planlog
|
|
filetype: html-page
|
|
default: "<html lang=\"en\"><head><meta charset=\"UTF-8\"><title>[title]</title><script src=\"jquery-3.6.0.min.js\"></script><script src=\"jquery.table2excel.js\"></script></head><body><label for=\"search\">物料ID:</label><input type=\"text\" name=\"search\" id=\"search\"><input type=\"button\" value=\"导出\" id=\"export\"><table border=\"1px\" cellpadding=\"0\" cellspacing=\"0\" class=\"history_table\"><thead><tr>[table_head]</tr></thead><tbody>"
|
|
body:
|
|
info: "<tr class=\"title\">[info_one]</tr>"
|
|
info_two: "<tr class=\"[info_two_title] content\">[info_two]</tr>"
|
|
bottom: "</tbody></table></body></html><script>$(function(){$(\".title\").click(function(){let artId = $(this).children('td').eq(0).html();$(\".\"+artId).toggle(\"fast\",\"linear\")})$(\"#search\").keyup(function(){var txt=$(\"input[type=text]\").val();if($.trim(txt)!=\"\"){$(\".title\").hide().filter(\":contains('\"+txt+\"')\").show();} else {$(\".title\").show();}});$(\"#export\").click(function(){$(\".history_table\").table2excel({exclude: \".noExl\",name: \"[title]\",filename: \"[title]\",bootstrap: false});})})</script><style>.history_table {width: 80%;}.title {cursor: pointer;text-align: center;}.content {display: none;text-align: center;}</style>"
|
|
replace:
|
|
- "title"
|
|
- "table_head"
|
|
- "info_one"
|
|
- "info_two"
|
|
- "info_two_title"
|