setup_fieldadd.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 resultHandle(data){
  30. var res=eval('(' + data + ')');
  31. if(res.flag){
  32. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  33. function(){
  34. layer.closeAll('dialog');
  35. window.parent.location.reload();
  36. });
  37. }else{
  38. if(res.flag == false)
  39. {
  40. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  41. }
  42. }
  43. }
  44. </script>
  45. <!--/请在上方写此页面业务相关的脚本-->
  46. <title>表数据维护</title>
  47. <meta name="keywords" content="">
  48. <meta name="description" content="">
  49. </head>
  50. <body style="line-height:1;">
  51. <form id="form1" method="post" class="form-horizontal" role="form">
  52. <div style="display: none">
  53. <input type="hidden" id="oper" name="oper" value=""/>
  54. <input type="hidden" name='selfReport.IsLeaf' value="yes">
  55. <input type="hidden" name='selfReport.TLevel' value="${tlevel}">
  56. <input type="hidden" name='selfReport.TType' value="dimension">
  57. </div>
  58. <div class="container-fluid" style="margin-top:15px;">
  59. <div class="panel panel-primary">
  60. <div class="panel-heading">维度数据维护</div>
  61. <div class="panel-body" style="font-size:14px">
  62. <div class="row" style="padding:5px">
  63. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  64. <label class="control-label" for="TID">数据编号</label>
  65. </div>
  66. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  67. <input type="text" class="form-control" style='background-color:#F5F5F5;border:0' readOnly value="" placeholder="" id="TID" name="selfReport.TID" vdisp='数据编号' vtype='string'>
  68. </div>
  69. </div>
  70. <div class="row" style="padding:5px">
  71. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  72. <label class="form-label" for="TableField">维度名称</label>
  73. </div>
  74. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback" >
  75. <input type="text" class="form-control" value="" placeholder="" id="TableField" name="selfReport.TableField" vdisp='维度名称' vmode='not null' vtype='string'>
  76. </div>
  77. </div>
  78. <div class="row" style="padding:5px">
  79. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  80. <label class="form-label" for="TName">维度显示名</label>
  81. </div>
  82. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback">
  83. <input type="text" class="form-control" value="" placeholder="" id="TName" name="selfReport.TName" vdisp='维度显示名' vmode='not null' vtype='string'>
  84. </div>
  85. </div>
  86. <div class="row" style="padding:5px">
  87. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 has-error has-feedback" >
  88. <label class="form-label" for="SortID">排序编号</label>
  89. </div>
  90. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 has-error has-feedback">
  91. <input type="text" class="form-control" value="" placeholder="" id="SortID" name=selfReport.SortID vdisp='排序编号' vmode='not null' vtype='integer'>
  92. (1排在第一位,2排在第二位,3排在第三位,...)
  93. </div>
  94. </div>
  95. <div class="row" style="padding:5px">
  96. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  97. <label class="form-label" for="FieldType">维度类型</label>
  98. </div>
  99. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  100. <select id="FieldType" name="selfReport.FieldType" class="form-control" vdisp='维度类型' vtype='string'>
  101. <option value="" >行列皆可</option>
  102. <option value="row">只作为行</option>
  103. <option value="col">只作为列</option>
  104. </select> (报表行、列来源中是否都能看到或只能在其中一个里看到)
  105. </div>
  106. </div>
  107. <div class="row" style="padding:5px">
  108. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  109. <label class="form-label" for="FieldSource">维度值来源</label>
  110. </div>
  111. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  112. <textarea class="form-control" rows="2" value="" placeholder="" id="FieldSource" name="selfReport.FieldSource" vmode="" vdisp="维度值来源" vtype="string" maxlength='1000'></textarea>
  113. <label class="form-control" for="web.title">&nbsp;注:SQL语句(对应值用TID,显示值用TName)或“对应值=显示值, ...”</label>
  114. </div>
  115. </div>
  116. <div class="row" style="padding:5px">
  117. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  118. <label class="form-label" for="ValueSource">维度特殊处理</label>
  119. </div>
  120. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  121. <textarea class="form-control" rows="2" value="" placeholder="" id="ValueSource" name="selfReport.ValueSource" vmode="" vdisp="维度特殊处理" vtype="string" maxlength='1000'></textarea>
  122. <label class="form-control" for="web.title">&nbsp;注:字段值特殊处理,处理好的数据用于和上面值来源对应</label>
  123. </div>
  124. </div>
  125. <div class="row" style="padding:5px">
  126. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  127. <label class="form-label" for="DescInfo">描&nbsp;&nbsp;&nbsp;&nbsp;述</label>
  128. </div>
  129. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  130. <textarea class="form-control" rows="2" value="" placeholder="" id="DescInfo" name="selfReport.DescInfo" vmode="" vdisp="描述" vtype="string" maxlength='500'></textarea>
  131. </div>
  132. </div>
  133. <div class="row" style="padding:5px">
  134. <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" >
  135. <label class="form-label" for="UpperID">上级编号</label>
  136. </div>
  137. <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  138. <input type="text" class="form-control" style="background-color:#F5F5F5; border:0;" readonly value="${upperid}" placeholder="" id="UpperID" name="selfReport.UpperID" vdisp='上级编号' vtype='string' readonly>
  139. </div>
  140. </div>
  141. <div class="row" style="padding:5px">
  142. <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10" align=center>
  143. <button type="button" class="btn btn-success" id="SubmitButton1" onclick="doSubmit('add')"> 添&nbsp;&nbsp;加</button>&nbsp;&nbsp;&nbsp;&nbsp;
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </form>
  150.  
  151. </body>
  152. </html>