Commit 22ea06d9c47d804e6123c555a0c3a09b8f781a21

Authored by 周勤
1 parent 033b3d93

增加运管处上传日志的保存和查看功能(时刻表上传、线路上传、路单上传)

src/main/resources/static/pages/trafficManage/show_xml.html 0 → 100644
  1 +<div class="modal fade" id="show_xml" tabindex="-1" role="basic"
  2 + aria-hidden="true">
  3 + <div class="modal-dialog">
  4 + <div class="modal-content">
  5 + <div class="modal-header">
  6 + <button type="button" class="close" data-dismiss="modal"
  7 + aria-hidden="true"></button>
  8 + <h4 class="modal-title">上传参数</h4>
  9 + </div>
  10 + <div class="modal-body" id="content_body">
  11 +
  12 + </div>
  13 + <div class="modal-footer">
  14 + <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
  15 + </div>
  16 + </div>
  17 + </div>
  18 +</div>
  19 +<script data-exclude=1>
  20 + $(function() {
  21 + //modal 显示事件
  22 + $('#show_xml').on('show.bs.modal', function(){
  23 + var xml = JSON.parse(window.sessionStorage.getItem('upload_ygc_xml'));
  24 + // 转换< >括号
  25 + var _html = xml.replace(/</g,'&lt;');
  26 + _html = _html.replace(/>/g,'&gt;');
  27 + _html = _html.replace(/"/g,'&quot;');
  28 + $('#content_body').html(_html);
  29 + }).modal('show');
  30 + });
  31 +</script>
0 32 \ No newline at end of file
... ...