jformGraphreportHead-update.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>图表配置</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script type="text/javascript">
  9. $(document).ready(function(){
  10. $('#tt').tabs({
  11. onSelect:function(title){
  12. $('#tt .panel-body').css('width','auto');
  13. }
  14. });
  15. $(".tabs-wrap").css('width','100%');
  16. });
  17. </script>
  18. </head>
  19. <body style="overflow-x: hidden;">
  20. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="jformGraphreportHeadController.do?doUpdate">
  21. <input id="id" name="id" type="hidden" value="${jformGraphreportHeadPage.id }">
  22. <table cellpadding="0" cellspacing="1" class="formtable">
  23. <tr>
  24. <td align="right">
  25. <label class="Validform_label">名称:</label>
  26. </td>
  27. <td class="value">
  28. <input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" value='${jformGraphreportHeadPage.name}'>
  29. <span class="Validform_checktip"></span>
  30. <label class="Validform_label" style="display: none;">名称</label>
  31. </td>
  32. <td align="right">
  33. <label class="Validform_label">编码:</label>
  34. </td>
  35. <td class="value">
  36. <input id="code" name="code" type="text" style="width: 150px" class="inputxt" datatype="*" value='${jformGraphreportHeadPage.code}'>
  37. <span class="Validform_checktip"></span>
  38. <label class="Validform_label" style="display: none;">编码</label>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td align="right">
  43. <label class="Validform_label">描述:</label>
  44. </td>
  45. <td class="value">
  46. <input id="content" name="content" type="text" style="width: 150px" class="inputxt" datatype="*" value='${jformGraphreportHeadPage.content}'>
  47. <span class="Validform_checktip"></span>
  48. <label class="Validform_label" style="display: none;">描述</label>
  49. </td>
  50. <td align="right">
  51. <label class="Validform_label">y轴文字:</label>
  52. </td>
  53. <td class="value">
  54. <input id="ytext" name="ytext" type="text" style="width: 150px" class="inputxt" datatype="*" value='${jformGraphreportHeadPage.ytext}'>
  55. <span class="Validform_checktip"></span>
  56. <label class="Validform_label" style="display: none;">y轴文字</label>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td align="right">
  61. <label class="Validform_label">x轴数据:</label>
  62. </td>
  63. <td class="value">
  64. <input id="categories" name="categories" type="text" style="width: 150px" class="inputxt" datatype="*" value='${jformGraphreportHeadPage.categories}'>
  65. <span class="Validform_checktip"></span>
  66. <label class="Validform_label" style="display: none;">x轴数据</label>
  67. </td>
  68. <td align="right">
  69. <label class="Validform_label">是否显示明细:</label>
  70. </td>
  71. <td class="value">
  72. <t:dictSelect field="isShowList" type="list"
  73. typeGroupCode="sf_yn" defaultVal="${jformGraphreportHeadPage.isShowList}" hasLabel="false" title="是否显示明细"></t:dictSelect>
  74. <span class="Validform_checktip"></span>
  75. <label class="Validform_label" style="display: none;">是否显示明细</label>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td align="right">
  80. <label class="Validform_label">查询数据SQL:</label>
  81. </td>
  82. <td class="value" colspan="3">
  83. <textarea id="cgrSql" style="width:600px;" class="inputxt" rows="4" name="cgrSql">${jformGraphreportHeadPage.cgrSql}</textarea>
  84. <span class="Validform_checktip"></span>
  85. <label class="Validform_label" style="display: none;">查询数据SQL</label>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td align="right">
  90. <label class="Validform_label">扩展JS:</label>
  91. </td>
  92. <td class="value" colspan="3">
  93. <textarea id="xpageJs" style="width:600px;" class="inputxt" rows="4" name="xpageJs">${jformGraphreportHeadPage.xpageJs}</textarea>
  94. <span class="Validform_checktip"></span>
  95. <label class="Validform_label" style="display: none;">扩展JS</label>
  96. </td>
  97. </tr>
  98. </table>
  99. <div style="width: auto;height: 200px;">
  100. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  101. <div style="width:800px;height:1px;"></div>
  102. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  103. <t:tab href="jformGraphreportHeadController.do?jformGraphreportItemList&id=${jformGraphreportHeadPage.id}" icon="icon-search" title="图表配置" id="jformGraphreportItem"></t:tab>
  104. </t:tabs>
  105. </div>
  106. </t:formvalid>
  107. <!-- 添加 附表明细 模版 -->
  108. <table style="display:none">
  109. <!-- update--begin--author:zhangjiaqiang Date:20170220 for:TASK #1686 【bug】online图表编辑,添加行的时候,不对齐 -->
  110. <tbody id="add_jformGraphreportItem_table_template">
  111. <tr>
  112. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  113. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  114. <td align="left">
  115. <input name="jformGraphreportItemList[#index#].fieldName" maxlength="36"
  116. type="text" class="inputxt" style="width:120px;"
  117. >
  118. <label class="Validform_label" style="display: none;">字段名</label>
  119. </td>
  120. <td align="left">
  121. <input name="jformGraphreportItemList[#index#].fieldTxt" maxlength="1000"
  122. type="text" class="inputxt" style="width:120px;"
  123. >
  124. <label class="Validform_label" style="display: none;">字段文本</label>
  125. </td>
  126. <td align="left">
  127. <input name="jformGraphreportItemList[#index#].orderNum" maxlength="10"
  128. type="text" class="inputxt" style="width:40px;"
  129. >
  130. <label class="Validform_label" style="display: none;">排序</label>
  131. </td>
  132. <td align="left">
  133. <t:dictSelect field="jformGraphreportItemList[#index#].fieldType" extendJson="{style:'width:100px'}"
  134. typeGroupCode="fieldtype" defaultVal="" hasLabel="false" title="字段类型"></t:dictSelect>
  135. <label class="Validform_label" style="display: none;">字段类型</label>
  136. </td>
  137. <td align="left">
  138. <t:dictSelect field="jformGraphreportItemList[#index#].isShow" type="list" extendJson="{style:'width:100px'}"
  139. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="是否显示"></t:dictSelect>
  140. <label class="Validform_label" style="display: none;">是否显示</label>
  141. </td>
  142. <td align="left">
  143. <t:dictSelect field="jformGraphreportItemList[#index#].searchFlag" type="list" extendJson="{style:'width:100px'}"
  144. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="是否查询"></t:dictSelect>
  145. <label class="Validform_label" style="display: none;">是否查询</label>
  146. </td>
  147. <td align="left">
  148. <t:dictSelect field="jformGraphreportItemList[#index#].searchMode" type="list" extendJson="{style:'width:100px'}"
  149. typeGroupCode="searchmode" defaultVal="" hasLabel="false" title="查询模式"></t:dictSelect>
  150. <label class="Validform_label" style="display: none;">查询模式</label>
  151. </td>
  152. <td align="left">
  153. <input name="jformGraphreportItemList[#index#].dictCode" maxlength="500"
  154. type="text" class="inputxt" style="width:120px;"
  155. >
  156. <label class="Validform_label" style="display: none;">字典Code</label>
  157. </td>
  158. <td align="left">
  159. <t:dictSelect field="jformGraphreportItemList[#index#].isGraph" type="list" extendJson="{style:'width:100px'}"
  160. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="显示图表"></t:dictSelect>
  161. <label class="Validform_label" style="display: none;">显示图表</label>
  162. </td>
  163. <td align="left">
  164. <t:dictSelect field="jformGraphreportItemList[#index#].graphType" type="list" extendJson="{style:'width:100px'}"
  165. typeGroupCode="tblx" defaultVal="" hasLabel="false" title="图表类型"></t:dictSelect>
  166. <label class="Validform_label" style="display: none;">图表类型</label>
  167. </td>
  168. <td align="left">
  169. <input name="jformGraphreportItemList[#index#].graphName" maxlength="100"
  170. type="text" class="inputxt" style="width:120px;"
  171. >
  172. <label class="Validform_label" style="display: none;">图表名称</label>
  173. </td>
  174. <td align="left">
  175. <input name="jformGraphreportItemList[#index#].tabName" maxlength="50"
  176. type="text" class="inputxt" style="width:120px;"
  177. >
  178. <label class="Validform_label" style="display: none;">标签名称</label>
  179. </td>
  180. </tr>
  181. </tbody>
  182. <!-- update--end--author:zhangjiaqiang Date:20170220 for:TASK #1686 【bug】online图表编辑,添加行的时候,不对齐 -->
  183. </table>
  184. </body>
  185. <script src = "webpage/jeecg/graphreport/jformGraphreportHead.js"></script>