edit.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog" style="width: 700px;">
  3. <div class="card">
  4. <div class="header" dragable-header>
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h4 class="modal-title">{{params.title}}</h4>
  7. </div>
  8. <div activate-input activate-select class="body">
  9. <form class="form-horizontal" role="form" id="announceform"
  10. name="announceform" ng-submit="saveData(announceform.$valid)" novalidate>
  11. <div class="dj-formtable">
  12. <table class="dj-table">
  13. <tr>
  14. <th style="width:5%">标题:</th>
  15. <td colspan="3" ng-class="{ 'has-error' : this.announceform.title.$invalid && this.announceform.$submitted}">
  16. <input type="text"
  17. name="title" ng-model="announce.Title"
  18. class="form-control" ng-required="true" />
  19. <span ng-show="this.announceform.title.$invalid && this.announceform.$submitted"
  20. class="error">必填.</span>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th>是否置顶:</th>
  25. <td colspan="3">
  26. <input type="checkbox" ng-model="announce.IsTop" />
  27. </td>
  28. </tr>
  29. <tr>
  30. <th>发布开始时间:</th>
  31. <td>
  32. <input type="text" name="startDate" ng-model="announce.StartTime"
  33. class="form-control" autocomplete="off"
  34. data-date-format="yyyy-MM-dd"
  35. start-view="0" bs-datepicker />
  36. </td>
  37. <th>发布结束时间:</th>
  38. <td>
  39. <input type="text" name="endDate" ng-model="announce.EndTime"
  40. class="form-control" autocomplete="off"
  41. data-date-format="yyyy-MM-dd"
  42. start-view="0" bs-datepicker />
  43. </td>
  44. </tr>
  45. <tr>
  46. <th>公告内容:</th>
  47. <td colspan="3">
  48. <textarea class="form-control" ng-model="announce.Content" ng-required="true" ui-ueditor></textarea>
  49. </td>
  50. </tr>
  51. <tr>
  52. <th>发布角色:</th>
  53. <td colspan="3">
  54. <div class="search-btn" style="margin-right: 20px;">
  55. <div style="float: right">
  56. <button type="button"
  57. class="btn btn-default1" title="选择发布角色"
  58. data-dataoptions="selectRoleParams" bsselectdata-pro>
  59. 新增
  60. </button>
  61. <button class="btn btn-default1"
  62. ng-click="delRole()">
  63. 删除
  64. </button>
  65. </div>
  66. </div>
  67. <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
  68. <thead>
  69. <tr>
  70. <th th-select-all datalist="roleList"></th>
  71. <th>角色名称</th>
  72. <th>备注</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr ng-repeat="role in roleList">
  77. <td class="text-center">
  78. <input type="checkbox" id="{{$index}}" ng-model="role.rowChecked" />
  79. </td>
  80. <td>{{role.RoleName}}</td>
  81. <td>{{role.Description}}</td>
  82. </tr>
  83. <tr ng-if="roleList.length==0">
  84. <td colspan="3" style="text-align:center">暂无数据</td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. </td>
  89. </tr>
  90. <tr>
  91. <th>发布用户:</th>
  92. <td colspan="3">
  93. <div class="search-btn" style="margin-right: 20px;">
  94. <div style="float: right">
  95. <button type="button"
  96. class="btn btn-default1" title="选择发布用户"
  97. data-dataoptions="selectUserParams" bsselectdata-pro>
  98. 新增
  99. </button>
  100. <button class="btn btn-default1"
  101. ng-click="delUser()">
  102. 删除
  103. </button>
  104. </div>
  105. </div>
  106. <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
  107. <thead>
  108. <tr>
  109. <th th-select-all datalist="userList"></th>
  110. <th>登录名</th>
  111. <th>姓名</th>
  112. <th>性别</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr ng-repeat="it in userList">
  117. <td class="text-center">
  118. <input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="it.rowChecked" />
  119. </td>
  120. <td>{{it.LoginID}}</td>
  121. <td>{{it.Name}}</td>
  122. <td>{{it.SexName}}</td>
  123. </tr>
  124. <tr ng-if="userList.length==0">
  125. <td colspan="4" style="text-align:center">暂无数据</td>
  126. </tr>
  127. </tbody>
  128. </table>
  129. </td>
  130. </tr>
  131. </table>
  132. </div>
  133. <div class="form_foot">
  134. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  135. <button type="submit" class="btn btn-primary" form="announceform">保存</button>
  136. </div>
  137. </form>
  138. </div>
  139. </div>
  140. </div>
  141. </div>