1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {extend name='admin@main'}
- {block name="button"}
- {if auth("add")}
- <button data-modal='{:url("add")}' data-title="添加企业员工" class='layui-btn layui-btn-sm layui-btn-primary'>添加企业员工</button>
- {/if}
- {if auth("remove")}
- <button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些员工吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除企业员工</button>
- {/if}
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='user/index_search'}
- <table class="layui-table" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='list-table-check-td think-checkbox'>
- <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
- </th>
- <th class='list-table-sort-td'>
- <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
- </th>
- <th class='text-left nowrap'>员工姓名</th>
- <th class='text-left nowrap'>员工身份</th>
- <th class='text-left nowrap'>库存账号</th>
- <th class='text-center nowrap'>使用状态</th>
- <th class='text-left nowrap'>添加时间</th>
- <th class='text-left nowrap'></th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr data-dbclick>
- <td class='list-table-check-td think-checkbox'>
- <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
- </td>
- <td class='list-table-sort-td'>
- <label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
- </td>
- <td class='text-left nowrap'>{$vo.nickname|default=''}</td>
- <td class='text-left nowrap'>{$vo.user_type|default='-'}</td>
- <td class='text-left nowrap'>{$vo.svn_username|default='-'}</td>
- <td class='text-center nowrap'>
- {eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{/eq}
- {eq name='vo.status' value='1'}<span class="color-green">在职中</span>{/eq}
- {eq name='vo.status' value='2'}<span class="color-desc">已离职</span>{/eq}
- </td>
- <td class='text-left nowrap'>
- {$vo.create_at|format_datetime}
- </td>
- <td class='text-left nowrap'>
- {if auth("edit")}
- <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑员工信息" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
- {/if}
- {if auth("state") and $vo.status neq 0}
- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
- {elseif auth("state") and $vo.status neq 1 }
- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">启 用</a>
- {/if}
- {if auth("remove")}
- <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该员工吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|