123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <!-- <div class="panel panel-info">
- <div class="panel-heading">
- <strong class="control-label" ng-if="to.label">
- {{to.label}}
- </strong>
- <ul class="panel-heading-tabs border-lightright">
- <li>
- <div class="pull-right">
- <a href="#" class="btn-sm btn-transparent" style="color:#ffffff;"
- ng-click="addlist('lg',options,to.modal,model[options.key]);" type="button"><i class="fa fa-plus"></i></a>
- </div>
- </li>
- </ul>
- </div>
- <div class="panel-body" ng-model="model[options.key]" formly-custom-validation="options.validators">
- <div ng-repeat="useritem in model[options.key]" >
- <div class="input-group col-xs-12">
- <div class="col-xs-2">
- <label class="control-label ng-binding ng-scope">姓名*</label>
- <div class="input-group">
- <input class="form-control" type="text" ng-value="useritem.name" />
- </div>
- </div>
- <div class="col-xs-2">
- <label class="control-label">科室</label>
- <div class="input-group">
- <input class="form-control" ng-value="useritem.department" type="text" />
- </div>
- </div>
- <div class="col-xs-2">
- <label class="control-label">邮箱</label>
- <div class="input-group">
- <input class="form-control" ng-value="useritem.email" type="text"/>
- </div>
- </div>
- <div class="col-xs-2">
- <label class="control-label">手机</label>
- <div class="input-group">
- <input class="form-control" ng-value="useritem.phone" type="text"/>
- </div>
- </div>
- <div class="col-xs-2">
- <label class="control-label">电话</label>
- <div class="input-group">
- <input class="form-control" ng-value="useritem.phone" type="text"/>
- </div>
- </div>
- <div class="col-xs-2">
- <div class="input-group">
- <button ng-click="remove(useritem.id)">X</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div> -->
- <!-- <div class="container-fluid container-fullw bg-white">
- <div class="row panel-heading">
- <strong class="control-label" ng-if="to.label">
- {{to.label}}
- </strong>
- <ul class="panel-heading-tabs border-lightright">
- <li>
- <div class="pull-right">
- <a class="btn-sm btn-transparent" style="color:#ffffff;"
- ng-click="addlist('lg',options,to.modal,model[options.key]);" type="button"><i class="fa fa-plus"></i></a>
- </div>
- </li>
- </ul>
- </div>
- <table class="table table-hover" id="sample-table-1">
- <thead>
- <tr>
- <th>名称</th>
- <th class="hidden-xs">编号</th>
- <th>管理员</th>
- <th class="hidden-xs">创建时间</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="useritem in model[options.key]">
- <td class="hidden-xs">{{useritem.name}}</td>
- <td>{{useritem.account}}</td>
- <td>
- <a rel="nofollow" target="_blank">
- {{useritem.phone}}
- </a></td>
- <td class="hidden-xs">{{useritem.email}}</td>
- <td class="center">
- <div class="visible-md visible-lg hidden-sm hidden-xs">
- <a ng-click="change(useritem.id)" class="btn btn-transparent btn-xs" tooltip-placement="top" tooltip="Edit"><i class="fa fa-pencil"></i></a>
- <a ng-click="remove(useritem.id)" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa fa-times fa fa-white"></i></a>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div> -->
- <div class="panel panel-info">
- <div class="row panel-heading">
- <strong class="control-label" ng-if="to.label">
- {{to.label}}
- </strong>
- <ul class="panel-heading-tabs border-lightright">
- <li>
- <div class="pull-right">
- <a class="btn-sm btn-transparent" style="color:#ffffff;"
- ng-click="addlist('lg',options,to.modal,model[options.key]);" type="button"><i class="fa fa-plus"></i></a>
- </div>
- </li>
- </ul>
- </div>
- <div class="table-responsive">
- <table ng-table="tableParams" class="table">
- <thead>
- <tr>
- <th ng-repeat="useritem in options.templateOptions.itemdata">{{useritem.displayName}}</th>
- </tr>
- </thead>
- <tbody ng-repeat="useritem in model[options.key]">
- <tr ng-class-odd="'odd'" ng-class-even="'even'">
- <td class="rowTd">{{useritem.name}}</td>
- <td class="rowTd">{{useritem.account}}</td>
- <td class="rowTd" >{{useritem.phone}}</td>
- <td class="rowTd">{{useritem.email}}</td>
- <!-- <td class="rowTd" data-title="'Email'" sortable="'em'">{{p.em}}</td>
- <td class="rowTd" data-title="'Phone'" sortable="'ph'">{{p.ph}}</td> -->
- <td class="rowTd" >
- <div class="pull-right margin-right-10">
- <input type=button class="btn btn-primary btn-o btn-sm" value="修改"
- ng-click="setEditId(useritem.account,useritem)">
- <input type=button class="btn btn-primary btn-o btn-sm" value="删除"
- ng-click="remove(useritem.id)">
- <!-- <a ng-click="remove(useritem.id)" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa fa-times fa fa-white"></i></a> -->
- </div></td>
- </tr>
- <tr ng-show="editId===useritem.account" ng-if="editId===useritem.account">
- <td colspan="7" ng-include src="'assets/views/customform/tpl/tableable.html'"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <!-- <div class="container-fluid container-fullw">
- <div class="row">
- <div class="col-md-12">
- <h5 class="over-title margin-bottom-15">Inline <span class="text-bold">edit example</span></h5>
- <div ng-controller="ngTableCtrl6">
- <div class="row margin-bottom-10">
- <div class="col-md-12">
- <button ng-click="tableParams.sorting({})" class="btn btn-default pull-right">
- Clear sorting
- </button>
- </div>
- </div>
- <strong>Sorting:</strong> {{tableParams.sorting()|json}}
- <div class="table-responsive">
- <table ng-table="tableParams" class="table">
- <tbody ng-repeat="p in $data">
- <tr id="tr{{p.id}}" ng-class-odd="'odd'" ng-class-even="'even'">
- <td class="rowTd" data-title="'ID'" sortable="'id'">{{p.id}}</td>
- <td class="rowTd" data-title="'Firstname'" sortable="'fn'">{{p.fn}}</td>
- <td class="rowTd" data-title="'Lastname'" sortable="'ln'">{{p.ln}}</td>
- <td class="rowTd" data-title="'Description'" sortable="'dc'">{{p.dc}}</td>
- <td class="rowTd" data-title="'Email'" sortable="'em'">{{p.em}}</td>
- <td class="rowTd" data-title="'Phone'" sortable="'ph'">{{p.ph}}</td>
- <td class="rowTd" >
- <div class="pull-right margin-right-10">
- <input type=button class="btn btn-primary btn-o btn-sm" id="editRowBtn{{p.id}}" value="edit"
- ng-click="setEditId(p.id)">
- </div></td>
- </tr>
- <tr ng-show="editId===p.id" ng-if="editId===p.id">
- <td colspan="7" ng-include src="'assets/views/editRow.html'"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
|