savedicmodal.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!--<script>
  2. $(function () {
  3. $.ldmis.input.activate();
  4. });
  5. </script>-->
  6. <div id="dicmodal" class="modal" tabindex="-1" role="dialog">
  7. <div class="modal-dialog">
  8. <!--<div class="modal-content">
  9. <div class="modal-header">
  10. <button type="button" class="close" ng-click="$hide()">&times;</button>
  11. <h4 class="modal-title">{{params.title}}</h4>
  12. </div>
  13. <div class="modal-body">
  14. <form class="form-horizontal" role="form" id="dicform" name="dicform" ng-submit="submit(dicform.$valid)" novalidate>
  15. <table class="table table-bordered tform">
  16. <tr>
  17. <th class="col-md-3"><span style="color:red;">*</span>字典类别名称:</th>
  18. <td ng-class="{ 'has-error' : dicform.dictypekey.$invalid && dicform.$submitted}">
  19. <input type="text" name="dictypekey" ng-model="content.dictypekey" maxlength="100" class="form-control" ng-disabled="params.dicTypeKeyDisabled" ng-required="true" />
  20. <span ng-show="dicform.dictypekey.$invalid && dicform.$submitted" class="help-block">请输入字典类别名称</span>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th class="col-md-3"><span style="color:red;">*</span>字典键:</th>
  25. <td ng-class="{ 'has-error' : dicform.dickey.$invalid && dicform.$submitted}">
  26. <input name="dickey" ng-model="content.dickey" type="number" class="form-control" ng-required="true" min="0" max="999999999"/>
  27. <span ng-show="dicform.dickey.$invalid && dicform.$submitted" class="help-block">请输入10位以下的字典键</span>
  28. </td>
  29. </tr>
  30. <tr>
  31. <th class="col-md-3"><span style="color:red;">*</span>字典显示名称:</th>
  32. <td ng-class="{ 'has-error' : dicform.dicvalue.$invalid && dicform.$submitted}">
  33. <input name="dicvalue" ng-model="content.dicvalue" type="text" class="form-control" ng-required="true" maxlength="800"/>
  34. <span ng-show="dicform.dicvalue.$invalid && dicform.$submitted" class="help-block">请输入字典显示名称</span>
  35. </td>
  36. </tr>
  37. <tr>
  38. <th class="col-md-3">字典类型:</th>
  39. <td ng-class="{ 'has-error' : dicform.dictype.$invalid && dicform.$submitted}">
  40. &lt;!&ndash;<select name="dicType" class="form-control" ng-model="content.DicType" ng-disabled="params.dicTypeDisabled" ng-options="type.id as type.dictype for type in dicTypeList" ng-required="true"></select>&ndash;&gt;
  41. &lt;!&ndash;<span ng-show="dicform.dicType.$invalid && dicform.$submitted" class="help-block">请选择字典类型</span>&ndash;&gt;
  42. <input name="dictype" type="text" class="form-control" value="{{(content.dictype==1?'系统':'普通')}}" disabled/>
  43. </td>
  44. </tr>
  45. <tr>
  46. <th class="col-md-3">字典描述:</th>
  47. <td>
  48. <textarea class="form-control" ng-model="content.dicnote" name="dicnote" rows="5"></textarea>
  49. </td>
  50. </tr>
  51. </table>
  52. </form>
  53. </div>
  54. <div class="modal-footer">
  55. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  56. <button type="submit" class="btn btn-primary" form="dicform">保存</button>
  57. </div>
  58. </div>-->
  59. <div class="card">
  60. <div class="header">
  61. <button type="button" class="close" ng-click="$hide()">&times;</button>
  62. <h4 class="modal-title">{{params.title}}</h4>
  63. </div>
  64. <div activate-input class="body">
  65. <form class="form-horizontal" role="form" id="dicform"
  66. name="dicform" ng-submit="submit(dicform.$valid)" novalidate>
  67. <div class="row clearfix">
  68. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 form-control-label">
  69. <label>字典类别名称</label>
  70. </div>
  71. <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
  72. <div class="form-group">
  73. <div class="form-line"
  74. ng-class="{ 'focused error' : dicform.dictypekey.$invalid && dicform.$submitted}">
  75. <input type="text" name="dictypekey" ng-model="content.dictypekey" maxlength="100"
  76. class="form-control" ng-disabled="params.dicTypeKeyDisabled"
  77. ng-required="true"/>
  78. </div>
  79. <label ng-show="dicform.dictypekey.$invalid && dicform.$submitted"
  80. class="error">必填.</label>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="row clearfix">
  85. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 form-control-label">
  86. <label>字典键</label>
  87. </div>
  88. <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
  89. <div class="form-group">
  90. <div class="form-line"
  91. ng-class="{ 'focused error' : dicform.dickey.$invalid && dicform.$submitted}">
  92. <input name="dickey" ng-model="content.dickey" type="number" class="form-control"
  93. ng-required="true" min="0" max="999999999"/>
  94. </div>
  95. <label ng-show="dicform.dickey.$invalid && dicform.$submitted"
  96. class="error">必填.</label>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="row clearfix">
  101. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 form-control-label">
  102. <label>字典显示名称</label>
  103. </div>
  104. <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
  105. <div class="form-group">
  106. <div class="form-line"
  107. ng-class="{ 'focused error' : dicform.dicvalue.$invalid && dicform.$submitted}">
  108. <input name="dicvalue" ng-model="content.dicvalue" type="text" class="form-control"
  109. ng-required="true" maxlength="800"/>
  110. </div>
  111. <label ng-show="dicform.dicvalue.$invalid && dicform.$submitted"
  112. class="error">必填.</label>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="row clearfix">
  117. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 form-control-label">
  118. <label>字典类型</label>
  119. </div>
  120. <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
  121. <div class="form-group">
  122. <div class="form-line">
  123. <input name="dictype" type="text" class="form-control"
  124. value="{{(content.dictype==1?'系统':'普通')}}" disabled/>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="row clearfix">
  130. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 form-control-label">
  131. <label>字典描述</label>
  132. </div>
  133. <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
  134. <div class="form-group">
  135. <div class="form-line">
  136. <textarea class="form-control" ng-model="content.dicnote" name="dicnote"
  137. rows="5"></textarea>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="form_foot">
  143. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  144. <button type="submit" class="btn btn-primary" form="dicform">保存</button>
  145. </div>
  146. </form>
  147. </div>
  148. </div>
  149. </div>
  150. </div>