审查视图

WebRoot/app/views/usermanage/userinfo.html 12.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
<div class="lg-con">
    <div class="lg-adduser" ng-if="ismanager==1">
        <button class="btn btn-success btn-sm" add-main-user>添加用户</button>
    </div>
    <div class="lg-wrap" scroller-all="180">
        <div class="list-wrap">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th></th>
                    <th>用户名</th>
                    <th>所属角色</th>
                    <th>用户姓名</th>
                    <!--  <th>最后访问时间</th>-->
                    <th>状态</th>
                    <th>操作</th>
                    <!--<th>详细信息</th>-->
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="listitem in userlists">
                    <td width="60" height="40"></td>
                    <td width="20%">
                        <a href="javascript:;" open-user-info uid="{{listitem.login_id}}">{{listitem.login_id}}</a>
                    </td>
                    <td>{{listitem.user_role==1?'系统管理员':'普通用户'}}</td>
                    <td><div style="max-width:350px;overflow:hidden;text-overflow:ellipsis;
                    white-space:nowrap" title="{{listitem.user_name==null?'--':listitem.user_name}}">{{listitem.user_name==null?'--':listitem.user_name}}</div></td>
                    <!--<td>{{listitem.lastdate==null?'--:--:--':listitem.lastdate}}</td>-->
                    <td>
                        <label class="label label-success" ng-if="listitem.delete_flag==0">正常</label>
                        <label class="label label-danger" ng-if="listitem.delete_flag!=0">已删除</label>
                    </td>
                    <td width="250">
                        <button class="btn btn-default btn-sm"
                                ng-click="edituserinfo(listitem.login_id,listitem.login_id)">
                            <i class="fa fa-edit"></i> 编辑
                        </button>
                        <button ng-if="listitem.delete_flag==0 && listitem.login_id != 'adm'" class="btn btn-default btn-sm"
                                ng-click="deluserinfo(listitem.login_id,1)"><i
                                class="fa fa-trash-o"></i> 删除
                        </button>
                        <button ng-if="listitem.delete_flag!=0 && listitem.login_id != 'adm'" class="btn btn-default btn-sm"
                                ng-click="deluserinfo(listitem.login_id,0)"><i
                                class="fa fa-recycle"></i> 恢复
                        </button>
                        <button ng-if="user_type==1" class="btn btn-default btn-sm"
                                ng-click="vidateUpdatePwd(listitem.user_id)">
                                <i class="fa fa-user"></i> 修改密码
                        </button>
                    </td>
                    <!--<td><div class="dropdown">-->
                    <!--<button id="dLabel1" class="btn btn-default btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">设置 <i class="caret"></i></button>-->
                    <!--<ul class="dropdown-menu animated swing dropdown-menu-right" aria-labelledby="dLabel1">-->
                    <!--<li><a href="#"><i class="fa fa-envelope-o"></i> 再发一次</a></li>-->
                    <!--<li role="separator" class="divider"></li>-->
                    <!--<li><a href="#"><i class="fa fa-trash-o"></i> 删除</a></li>-->
                    <!--<li role="separator" class="divider"></li>-->
                    <!--<li><a href="#"><i class="fa fa-download"></i> 导出</a></li>-->
                    <!--<li role="separator" class="divider"></li>-->
                    <!--<li><a href="#"><i class="fa fa-eye"></i> 查看</a></li>-->
                    <!--</ul>-->
                    <!--</div>-->
                    <!--&lt;!&ndash;button class="btn btn-warning btn-sm"><i class="fa fa-envelope-o"></i> 再次发送</button&ndash;&gt;-->
                    <!--</td>-->
                </tr>

                </tbody>
            </table>
        </div>
 	<div style="line-height: 60px; text-align: center" ng-show="userlists.length==0">暂无用户信息</div>
    </div>
    <!-- START 分页-->
    <div class="panel panel-default" ng-show="userlists.length!=0">
        <div>
            <!-- START row-->
            <div class="row">
                <div class="col-lg-7 col-lg-offset-5">
                    <pagination total-items="TotalItems" ng-model="CurrentPage" max-size="maxSize" boundary-links="true"
                                rotate="false" num-pages="numPages" class="pagination-sm"
                                ng-click="pageChanged()"></pagination>
                </div>
            </div>
            <!-- END row-->
        </div>
    </div>
    <!-- END 分页-->
</div>

<!--添加用户-->
<div id="dialog-addmainuser" title="添加用户" style="display: none">
    <div class="panel-body">
        <div class="form-group">
            还可分配用户数: <span class="txt-green">{{userparamnum.max_user}}</span>
        </div>
        <div class="form-group">
            <label>用户名</label>
            <input type="text" id="uinfo_uname" class="form-control">
        </div>
        <div class="form-group">
            <label>密码</label>
            <input type="password" id="uinfo_upwd" class="form-control">
        </div>
        <div class="form-group">
            <label>总发量</label>(可分配量: <span class="txt-green">{{userparamnum.max_tol_send==-1?'无限制':userparamnum.max_tol_send || 0}}</span>)
            <input type="number" id="uinfo_zongfa" class="form-control">
        </div>
        <div class="form-group">
            <label>月发量</label>(可分配量: <span class="txt-green">{{userparamnum.max_month_send==-1?'无限制':userparamnum.max_month_send || 0}}</span>)
            <input type="number" id="uinfo_yuefa" class="form-control">
        </div>
        <div class="form-group">
            <label>日发量</label>(可分配量: <span class="txt-green">{{userparamnum.max_day_send==-1?'无限制':userparamnum.max_day_send || 0}}</span>)
            <input type="number" id="uinfo_rifa" class="form-control">
        </div>
    </div>
</div>
<!--修改用户-->
<div id="dialog-editmainuser" title="修改用户" style="display: none">
    <div class="panel-body">
        <div class="form-group">
            <label>用户名: </label>
            <span id="editusername"></span>
        </div>
        <div class="form-group">
            <label>总发量</label>(可分配量: <span class="txt-green">{{userinfos.max_tol_send==-1?'无限制':userinfos.max_tol_send || 0}}</span>)
            <input type="number" id="edit_uinfo_zongfa" class="form-control">
        </div>
        <div class="form-group">
            <label>月发量</label>(可分配量: <span class="txt-green">{{userinfos.max_month_send==-1?'无限制':userinfos.max_month_send || 0}}</span>)
            <input type="number" id="edit_uinfo_yuefa" class="form-control">
        </div>
        <div class="form-group">
            <label>日发量</label>(可分配量: <span class="txt-green">{{userinfos.max_day_send==-1?'无限制':userinfos.max_day_send || 0}}</span>)
            <input type="number" id="edit_uinfo_rifa" class="form-control">
        </div>
    </div>
</div>

<div id="dialog-usersendtonji" title="发送量统计" style="display: none">
    <div class="panel-body">
        <!-- START widgets box-->
        <div class="row">
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-primary">
                    <div class="row row-table">

                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">日发上限</div>
                            <div class="h2 mt0"><span id="daymax" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-purple">
                    <div class="row row-table">

                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">月发上限</div>
                            <div class="h2 mt0"><span id="monthmax" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-primary">
                    <div class="row row-table">
                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">总发上限</div>
                            <div class="h2 mt0"><span id="tolmax" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>


        </div>

        <!-- START widgets box-->
        <div class="row">
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-primary">
                    <div class="row row-table">

                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">今日累计已发</div>
                            <div class="h2 mt0"><span id="daysendnum" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-purple">
                    <div class="row row-table">

                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">本月累计已发</div>
                            <div class="h2 mt0"><span id="monthsendnum" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-primary">
                    <div class="row row-table">
                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10"> 今日可发送量</div>
                            <div class="h2 mt0"><span id="dayhavenum" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-4">
                <!-- START widget-->
                <div class="panel panel-default widget bg-primary">
                    <div class="row row-table">
                        <div class="col-xs-12 pv-lg">
                            <div class="text-uppercase mb10">当月可发量</div>
                            <div class="h2 mt0"><span id="monhavenum" class="color-green"></span>
                                <small></small>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<!--修改用户密码-->
<div id="dialog-updatepwd" title="修改用户密码" style="display: none">
    <div class="panel-body">
        <div class="form-group">
            <label>输入新密码: </label>
            <input type="password" id="edit_new_pwd1" class="form-control"
            onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;">
        </div>
        <div class="form-group">
            <label>确认新密码: </label>
            <input type="password" id="edit_new_pwd2" class="form-control"
            onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"
        </div>
    </div>
</div>