123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <div class="modal" tabindex="-1" role="dialog">
- <div class="modal-dialog" style="width: 700px;">
- <div class="card">
- <div class="header" dragable-header>
- <button type="button" class="close" ng-click="$hide()">×</button>
- <h4 class="modal-title">{{params.title}}</h4>
- </div>
- <div activate-input activate-select class="body">
- <form class="form-horizontal" role="form" id="announceform"
- name="announceform" ng-submit="saveData(announceform.$valid)" novalidate>
- <div class="dj-formtable">
- <table class="dj-table">
- <tr>
- <th style="width:5%">标题:</th>
- <td colspan="3" ng-class="{ 'has-error' : this.announceform.title.$invalid && this.announceform.$submitted}">
- <input type="text"
- name="title" ng-model="announce.Title"
- class="form-control" ng-required="true" />
- <span ng-show="this.announceform.title.$invalid && this.announceform.$submitted"
- class="error">必填.</span>
- </td>
- </tr>
- <tr>
- <th>是否置顶:</th>
- <td colspan="3">
- <input type="checkbox" ng-model="announce.IsTop" />
- </td>
- </tr>
- <tr>
- <th>发布开始时间:</th>
- <td>
- <input type="text" name="startDate" ng-model="announce.StartTime"
- class="form-control" autocomplete="off"
- data-date-format="yyyy-MM-dd"
- start-view="0" bs-datepicker />
- </td>
- <th>发布结束时间:</th>
- <td>
- <input type="text" name="endDate" ng-model="announce.EndTime"
- class="form-control" autocomplete="off"
- data-date-format="yyyy-MM-dd"
- start-view="0" bs-datepicker />
- </td>
- </tr>
- <tr>
- <th>公告内容:</th>
- <td colspan="3">
- <textarea class="form-control" ng-model="announce.Content" ng-required="true" ui-ueditor></textarea>
- </td>
- </tr>
- <tr>
- <th>发布角色:</th>
- <td colspan="3">
- <div class="search-btn" style="margin-right: 20px;">
- <div style="float: right">
- <button type="button"
- class="btn btn-default1" title="选择发布角色"
- data-dataoptions="selectRoleParams" bsselectdata-pro>
- 新增
- </button>
- <button class="btn btn-default1"
- ng-click="delRole()">
- 删除
- </button>
- </div>
- </div>
- <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
- <thead>
- <tr>
- <th th-select-all datalist="roleList"></th>
- <th>角色名称</th>
- <th>备注</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="role in roleList">
- <td class="text-center">
- <input type="checkbox" id="{{$index}}" ng-model="role.rowChecked" />
- </td>
- <td>{{role.RoleName}}</td>
- <td>{{role.Description}}</td>
- </tr>
- <tr ng-if="roleList.length==0">
- <td colspan="3" style="text-align:center">暂无数据</td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <th>发布用户:</th>
- <td colspan="3">
- <div class="search-btn" style="margin-right: 20px;">
- <div style="float: right">
- <button type="button"
- class="btn btn-default1" title="选择发布用户"
- data-dataoptions="selectUserParams" bsselectdata-pro>
- 新增
- </button>
- <button class="btn btn-default1"
- ng-click="delUser()">
- 删除
- </button>
- </div>
- </div>
- <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
- <thead>
- <tr>
- <th th-select-all datalist="userList"></th>
- <th>登录名</th>
- <th>姓名</th>
- <th>性别</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="it in userList">
- <td class="text-center">
- <input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="it.rowChecked" />
- </td>
- <td>{{it.LoginID}}</td>
- <td>{{it.Name}}</td>
- <td>{{it.SexName}}</td>
- </tr>
- <tr ng-if="userList.length==0">
- <td colspan="4" style="text-align:center">暂无数据</td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <div class="form_foot">
- <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
- <button type="submit" class="btn btn-primary" form="announceform">保存</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
|