苏州瑞玛APS项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
4.4 KiB

# 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
default: "<html lang=\"en\"><head><meta charset=\"UTF-8\"><title>[title]</title><script src=\"../planlogjs/jquery-3.6.0.min.js\"></script><script src=\"../planlogjs/jquery.table2excel.js\"></script></head><body><label for=\"search\">物料ID:</label><input type=\"text\" name=\"search\" id=\"search\"><label for=\"state\">状态</label><select id=\"state\"><option value=\"\">所有</option><option value=\"未发布\">未发布</option><option value=\"已发布\">已发布</option></select><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 [class_one]\">[info_one]</tr>"
info_two: "<tr class=\"[info_two_title] content\">[info_two]</tr>"
bottom: "</tbody></table></body></html><script>$(function(){$(\".title\").click(function(){var artId = $(this).children('td').eq(0).html();$(\".\"+artId).toggle(\"fast\",\"linear\")});$(\"#search\").keyup(function(){$(\"#state\").val(\"\");var txt=$(\"input[type=text]\").val();if($.trim(txt)!=\"\"){$(\".title\").hide().filter(\":contains('\"+txt+\"')\").show();} else {$(\".title\").show();}});$(\"#state\").change(function(){$(\"#search\").val(\"\");var txt=$(\"#state\").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: 100%;}.title {cursor: pointer;text-align: center;background: #bdbdbd;}.no_public {background-color:bisque;}.content {display: none;text-align: center;}</style>"
replace:
- "title"
- "table_head"
- "class_one"
- "info_one"
- "info_two"
- "info_two_title"
planlogjs:
filename: ./log/planlog/js
filetype: