d89cd92d4914d5ec7635bce82a9a7b77.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"D:\wamp\www\yczd\yczd\public/../application/manage\view\stats\insstat.html";i:1536132205;s:47:"../application/manage/view/commons/headers.html";i:1537433847;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>TODO supply a title</title>
  6. <meta charset="UTF-8"><?php $req_rmd= rand(1,9999999) ?>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/easyui.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  9. <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/panel.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  10. <link href="/static/manage/css/manage.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  11. <link href="/static/js/jquery-easyui-1.5.5.6/themes/icon.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  12. <script src="/static/js/jquery-easyui-1.5.5.6/jquery.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  13. <script src="/static/js/jquery-easyui-1.5.5.6/jquery.easyui.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  14. <script src="/static/js/jquery-easyui-1.5.5.6/locale/easyui-lang-zh_CN.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  15. <script src="/static/js/commons.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  16. <script >
  17. var instsData=new Array();
  18. <?php if(isset($insts)): ?>
  19. instsData=<?php echo $insts; ?>;
  20. <?php endif; ?>
  21. var months=<?php echo $months; ?>;
  22. var monSel=new Array();
  23. monSel["id"]="";
  24. monSel["text"]="请选择";
  25. months.unshift(monSel);
  26. // 编辑窗口
  27. var $editWin;
  28. $(function(){
  29. $editWin = $('#edit-window').window({
  30. title: '关键词编辑',
  31. width: 820,height: 500,
  32. top: ($(window).height() -500 ) /2 ,
  33. left: ($(window).width() -820 ) /2 ,
  34. shadow: true,modal: true,
  35. iconCls: 'icon-edit',closed: true,
  36. minimizable: false,maximizable: false,collapsible: false
  37. });
  38. });
  39. function insFormatter(id){
  40. for(var i=0;i<instsData.length;i++){
  41. var row=instsData[i];
  42. if(row.id==id){
  43. return row["text"];
  44. }
  45. }
  46. return "--";
  47. }
  48. $(function(){
  49. var height=$(document).height();
  50. $("#dg").height(height);
  51. $('#dg').datagrid({
  52. url:'/manage/stats/insdatas',
  53. idField:'id',method: 'get',rownumbers: true,showFooter: true,
  54. toolbar: '#tb',pageList: [dgRowSize,dgRowSize*2,50,100],pagination:true,pageSize:dgRowSize,
  55. columns:[[
  56. {field:'id',title:'ID',width:180 ,hidden:true },
  57. {field:'role_id',title:'机构名称',align: 'center',width:"180", formatter:insFormatter },
  58. {field:'month',title:'月份',width:"15%",align: 'center'},
  59. {field:'nums',title:'单子数量',width:"15%",align: 'center'},
  60. {field:'exam_num',title:'影片数量',width:"15%",align: 'center' },
  61. {field:'remote_num',title:'远程诊断数量',width:"15%",align: 'center' },
  62. {field:'danger_num',title:'阳性确诊数量',width:"15%",align: 'center' },
  63. ]],
  64. onDblClickRow :function(rowData){
  65. showEditWin(rowData.id);
  66. },
  67. });
  68. $('#insts').combotree({
  69. required:true,multiple:false,editable:false,
  70. valueField:'id',textField:'name',panelWidth:350,
  71. data:instsData
  72. });
  73. $('#month').combotree({
  74. required:false,multiple:false,editable:false,
  75. valueField:'id',textField:'name',panelWidth:250,
  76. data:months
  77. });
  78. $("#submit").click(function(){
  79. var insts=$('#insts').combotree("getValue");
  80. var month=$('#month').combotree("getValue");
  81. var queryParams = $('#dg').datagrid('options').queryParams;
  82. queryParams.insts=insts;
  83. queryParams.month=month;
  84. $('#dg').datagrid('options').queryParams=queryParams;
  85. $('#dg').datagrid("reload");
  86. });
  87. $("#reset").click(function(){
  88. $('#insts').combotree("setValue","");
  89. $('#month').combotree("setValue","");
  90. });
  91. });
  92. // 显示编辑窗口
  93. function showEditWin(id){
  94. if("undefined"== typeof id){
  95. $editWin.window('open');$('#editFrame').attr('src','/manage/messages/edit');
  96. }else{
  97. $editWin.window('open');$('#editFrame').attr('src','/manage/messages/edit?id='+id);
  98. }
  99. }
  100. // 关闭编辑窗口
  101. function closeEditWin(isReload){
  102. $editWin.window('close');
  103. if(isReload=="reload"){
  104. document.location.reload();
  105. }
  106. }
  107. </script>
  108. </head>
  109. <body>
  110. <div id="dg" class="easyui-datagrid" style="width:100%;height:auto;" ></div>
  111. <div id="tb" class="editform" style="display: none; padding-top: 1px;">&nbsp;
  112. 菜单:<select id="insts" name="insts" style="width: 150px; " ></select>&nbsp;
  113. 月份:<input type="text" id="month" name="month" class="easyui-textbox" style="width: 100px; vertical-align: middle;" />&nbsp;
  114. <a id="submit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width: 80px">查询</a>
  115. <a id="reset" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" style="width: 80px" onclick="reset()" >重置</a>
  116. &nbsp;&nbsp;&nbsp;&nbsp;
  117. </div>
  118. <div id="edit-window" class="easyui-window" style="width: 80%;height: 450px;" ><iframe src="about:blank" id="editFrame" width="100%" height="100%" frameborder="0" scrolling="no" ></iframe></div>
  119. </body>
  120. </html>