setup_tableupdate.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
  11. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
  12. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  13. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  14. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  15. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  16. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  19. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  20. <script src="${ctx}/assets/js/validate.js" ></script>
  21. <script type="text/javascript">
  22. function doSubmit(oper){
  23. if(doValidate(form1)){
  24. $('#oper').val(oper);
  25. $('#form1').attr('action','${ctx}/myconsole/complaint/report/saveorUpdaeData');
  26. $('#form1').ajaxSubmit(resultHandle);
  27. }
  28. }
  29. function doSubmit1(){
  30. var TID='${selfReport.TID}';
  31. if(doValidate(form1)){
  32. $('#form1').attr('action','${ctx}/myconsole/complaint/report/setfieldAdd?TID='+TID);
  33. $('#form1').submit();
  34. }
  35. }
  36. function doSubmit2(){
  37. var TID='${selfReport.TID}';
  38. if(doValidate(form1)){
  39. $('#form1').attr('action','${ctx}/myconsole/complaint/report/settargetAdd?TID='+TID);
  40. $('#form1').submit();
  41. }
  42. }
  43. function resultHandle(data){
  44. var res=eval('(' + data + ')');
  45. if(res.flag){
  46. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  47. function(){
  48. layer.closeAll('dialog');
  49. window.parent.location.reload();
  50. });
  51. }else{
  52. if(res.flag == false)
  53. {
  54. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  55. }
  56. }
  57. }
  58. </script>
  59. <!--/请在上方写此页面业务相关的脚本-->
  60. <title>表数据维护</title>
  61. <meta name="keywords" content="">
  62. <meta name="description" content="">
  63. </head>
  64. <body style="line-height:1;">
  65. <form id="form1" method="post" class="form-horizontal" role="form">
  66. <div style="display: none">
  67. <input type="hidden" id="oper" name="oper" value=""/>
  68. <input type="hidden" name='selfReport.IsLeaf' value="${selfReport.IsLeaf!''}">
  69. <input type="hidden" name='selfReport.TLevel' value="${selfReport.tlevel!''}">
  70. <input type="hidden" name='selfReport.FieldType' value="${selfReport.FieldType!''}">
  71. <input type="hidden" name='selfReport.TType' value="${selfReport.TType!''}">
  72. </div>
  73. <div class="container-fluid" style="margin-top:15px;">
  74. <div class="panel panel-primary">
  75. <div class="panel-heading">表数据维护</div>
  76. <div class="panel-body" style="font-size:14px">
  77. <div class="row" style="padding:5px">
  78. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  79. <label class="control-label" for="TID">数据编号</label>
  80. </div>
  81. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  82. <input type="text" class="form-control" style='background-color:#F5F5F5;border:0' readOnly value="${selfReport.TID!''}" placeholder="" id="TID" name="selfReport.TID" vdisp='数据编号' vtype='string'>
  83. </div>
  84. </div>
  85. <div class="row" style="padding:5px">
  86. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  87. <label class="form-label" for="TableField">实际表名</label>
  88. </div>
  89. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback" >
  90. <input type="text" class="form-control" value="${selfReport.TableField!''}" placeholder="" id="TableField" name="selfReport.TableField" vdisp='实际表名' vmode='not null' vtype='string'>
  91. </div>
  92. </div>
  93. <div class="row" style="padding:5px">
  94. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  95. <label class="form-label" for="TName">表显示名</label>
  96. </div>
  97. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback">
  98. <input type="text" class="form-control" value="${selfReport.TName!''}" placeholder="" id="TName" name="selfReport.TName" vdisp='表显示名' vmode='not null' vtype='string'>
  99. </div>
  100. </div>
  101. <div class="row" style="padding:5px">
  102. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  103. <label class="form-label" for="SortID">排序编号</label>
  104. </div>
  105. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback">
  106. <input type="text" class="form-control" value="${selfReport.SortID!''}" placeholder="" id="SortID" name=selfReport.SortID vdisp='排序编号' vmode='not null' vtype='integer'>
  107. (1排在第一位,2排在第二位,3排在第三位,...)
  108. </div>
  109. </div>
  110. <div class="row" style="padding:5px">
  111. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  112. <label class="form-label" for="FieldSource">表字段来源</label>
  113. </div>
  114. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  115. <textarea class="form-control" rows="2" value="${selfReport.FieldSource!''}" placeholder="" id="FieldSource" name="selfReport.FieldSource" vmode="" vdisp="表字段来源" vtype="string" maxlength='1000'>${selfReport.FieldSource!''}</textarea>
  116. <label class="form-control" for="web.title">&nbsp;注:空按“实际表名”取字段,填写时形式为“字段名,字段名, ...”</label>
  117. </div>
  118. </div>
  119. <div class="row" style="padding:5px">
  120. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  121. <label class="form-label" for="ValueSource">表数据来源</label>
  122. </div>
  123. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  124. <textarea class="form-control" rows="2" value="${selfReport.ValueSource!''}" placeholder="" id="ValueSource" name="selfReport.ValueSource" vmode="" vdisp="表数据来源" vtype="string" maxlength='1000'>${selfReport.ValueSource!''}</textarea>
  125. <label class="form-control" for="web.title">&nbsp;注:空按“实际表名”取数据,填写时形式为SQL查询语句</label>
  126. </div>
  127. </div>
  128. <div class="row" style="padding:5px">
  129. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  130. <label class="form-label" for="DescInfo">描&nbsp;&nbsp;&nbsp;&nbsp;述</label>
  131. </div>
  132. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  133. <textarea class="form-control" rows="2" value="${selfReport.DescInfo!''}" placeholder="" id="DescInfo" name="selfReport.DescInfo" vmode="" vdisp="描述" vtype="string" maxlength='500'>${selfReport.DescInfo!''}</textarea>
  134. </div>
  135. </div>
  136. <div class="row" style="padding:5px">
  137. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  138. <label class="form-label" for="UpperID">上级编号</label>
  139. </div>
  140. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  141. <input type="text" class="form-control" style="background-color:#F5F5F5; border:0;" readonly value="${selfReport.UpperID!''}" placeholder="" id="UpperID" name="selfReport.UpperID" vdisp='上级编号' vtype='string' readonly>
  142. </div>
  143. </div>
  144. <div class="row" style="padding:5px">
  145. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10" align=center>
  146. <button type="button" class="btn btn-success" id="SubmitButton1" onclick="doSubmit1()"> 添加维度</button>&nbsp;&nbsp;&nbsp;&nbsp;
  147. <button type="button" class="btn btn-success" id="SubmitButton1" onclick="doSubmit2()"> 添加指标</button>&nbsp;&nbsp;&nbsp;&nbsp;
  148. <button type="button" class="btn btn-primary" id="SubmitButton1" onclick="doSubmit('edit')"> 修&nbsp;&nbsp;改</button>&nbsp;&nbsp;&nbsp;&nbsp;
  149. <button type="button" class="btn btn-danger" id="SubmitButton1" onclick="doSubmit('del')"> 删&nbsp;&nbsp;除</button>&nbsp;&nbsp;&nbsp;&nbsp;
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </form>
  156.  
  157. </body>
  158. </html>