123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- {extend name="public/layout" /} {block name="title"}转正审核{/block} {block name="body"}
- <style type="text/css">
- html,
- body {
- display: block;
- min-width: 1100px;
- }
- body::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 4px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 1px;
- }
- body::-webkit-scrollbar-thumb {
- /*滚动条里面小方块*/
- border-radius: 10px;
- box-shadow: inset 0 0 5px rgba(97, 184, 179, 0.1);
- background: #78b4b4;
- }
- body::-webkit-scrollbar-track {
- /*滚动条里面轨道*/
- box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
- border-radius: 10px;
- background: #ededed;
- }
- .layui-table thead tr,
- .layui-table-header {
- background-color: #D8E6F1 !important;
- }
- .layui-fluid {
- display: block;
- box-shadow: 0 0 4px 0 #B6CADE;
- border-radius: 5px;
- margin: 15px;
- background-color: #ffffff;
- }
-
- .layui-form-label{
- width: auto;
- }
- .layui-tab-title .layui-this {
- background-color: #fff !important;
- color: #249EFB !important;
- }
- .layui-tab-title .layui-this:after {
- border: none;
- border-bottom: 4px solid #28A1FF !important;
- width: 60%;
- left: 50%;
- transform: translateX(-50%);
- }
- .layui-tab-title li {
- background-color: #FFF;
- margin: 0px 5px;
- }
- .layui-btn-xs,.layui-btn-xs:hover {
- border: 1px solid #249EFB;
- background-color: #fff;
- color: #249EFB;
- padding: 0px 10px;
- }
- .layui-btn-danger,.layui-btn-danger:hover{
- color: #FF5722;
- background-color: #fff;
- border: 1px solid #FF5722;
- padding: 0px 10px;
- }
- .flex-row {
- display: flex;
- justify-content: space-around;
- align-items: center;
- background-color: #fff;
- margin: 15px;
- height: 130px;
- box-shadow: 0 0 4px 0 #b6cade;
- }
- .flex-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .font-weight {
- font-weight: 600;
- }
- .font32 {
- font-size: 32px;
- }
- .mt10 {
- margin-top: 10px;
- }
- .layui-form-item .layui-inline {
- margin-bottom: 0px;
- margin-right: 0px !important;
- }
- .layui-tab-title {
- border-bottom: 1px solid #f5f5f5;
- }
- </style>
- <body>
- <div class="flex-row">
- <div class="flex-item">
- <span class="font-weight font32">{$data.plan_count}</span>
- <span class="mt10">训练计划数</span>
- </div>
- <div class="flex-item">
- <span class="font-weight font32">{$data.person_time}</span>
- <span class="mt10">训练人次</span>
- </div>
- <div class="flex-item">
- <span class="font-weight font32">{$data.passed_count}</span>
- <span class="mt10">通过训练人数</span>
- </div>
- <div class="flex-item">
- <span class="font-weight font32">{$data.no_passed_count}</span>
- <span class="mt10">未通过训练人数</span>
- </div>
- <div class="flex-item">
- <span class="font-weight font32">{$data.reviewed}</span>
- <span class="mt10">待审核</span>
- </div>
- </div>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-tab">
- <ul class="layui-tab-title">
- <li>
- <a href="{:url('camp/index')}" class="block">训练营管理</a>
- </li>
- <li>
- <a href="{:url('camp/personnel')}" class="block">训练人员管理</a>
- </li>
- <li class="layui-this">
- 转正审核
- </li>
- </ul>
- </div>
- <div class="layui-form layui-card-header layuiadmin-card-header-auto">
- <div class="layui-form-item">
- <div style="float:left;" class="flexRow">
- <div class="layui-inline">
- <div class="layui-input-inline">
- <select name="org" id="org" lay-filter="org_select" lay-search>
- <option value="">请选择部门</option>
- {volist name="org" id="i" }
- <option value="{$i.id}">{$i.name}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <button class="layui-btn layuiadmin-btn-useradmin searchBtn" lay-submit lay-filter="search">
- <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
- </button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="layui-card-body">
- <table lay-filter="verify-table" id="verify-table"></table>
- </div>
- </div>
- </div>
- </body>
- {/block} {block name="js"}
- <script type="text/html" id="table-verify-action">
- <a class="layui-btn layui-btn-xs" lay-event="verify-again">重新考核</a>
- <a class="layui-btn layui-btn-xs" lay-event="verify-pass">通过</a>
- <!-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="verify-leave">离职</a> -->
- </script>
- <script type="text/html" id="comment">
- <a class="layui-table-link" lay-event="commentCount">{{d.commentCount}}</a>
- </script>
- <script type="text/html" id="imgs">
- {{# for(var j in d.imgs) { }}
- <img src="{{d.imgs[j]}}" style="text-align: center" width="30px" height="30px"/>
- {{# } }}
- </script>
- <script>
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index'
- }).use(['index', 'table', 'layedit', 'element'], function() {
- var $ = layui.$,
- table = layui.table,
- element = layui.element,
- form = layui.form;
- var field = {};
- form.on('submit(search)', function (data) {
- var keyword = $('.keyword').val();
- field['keyword'] = keyword;
- field['org_id'] = $('#org').val();
- //执行重载
- table.reload('verify-table', {
- where: field
- ,page: {curr:1}
- });
- });
- //事件
- var active = {};
- //话术列表
- table.render({
- elem: '#verify-table',
- autoSort: false,
- url: "{:url('camp/employee')}?approve=1",
- cols: [
- [{
- type: 'numbers',
- field: 'id',
- width: 80,
- title: '编号',
- sort: true
- }, {
- field: 'name',
- title: '申请人员'
- },{
- field: 'org_name',
- title: '所属部门'
- }, {
- field: 'title',
- title: '训练营名称'
- }, {
- title: '申请时间',
- field: 'approve_time',
- }, {
- title: '操作',
- width: 220,
- align: 'center',
- fixed: 'right',
- toolbar: '#table-verify-action'
- }]
- ],
- page: true,
- limit: 30,
- height: 'full-350',
- text: '对不起,加载出现异常!'
- });
- //监听列表
- table.on('tool(verify-table)', function(obj) {
- var data = obj.data;
- if(obj.event === 'verify-again') {
- if (data.approve == 3) {
- layer.msg('无法重新开启训练,请指派其他训练', {
- anim: 6
- , time: 2000
- });
- // layer.open({
- // type: 2,
- // title:['重选训练计划', 'color:#333333;background-color:#D8E6F1;'],
- // content: "{:url('camp/reselect_train_plan')}",
- // resize: false,
- // area: ['80%', '80%'],
- // btn: ['确定', '取消'],
- // yes: function(index, layero) {
- // //点击确认触发 iframe 内容中的按钮提交
- // var submit = layero.find('iframe').contents().find("#talkskill-submit");
- // submit.click();
- // }
- // });
- } else {
- layer.confirm('是否重新开启训练?',{title:['信息', 'color:#333333;background-color:#D8E6F1;'],}, function(index) {
- $.ajax({
- url: "{:url('camp/worker')}",
- type: 'post',
- data: {
- id: data.id,
- type: '3'
- },
- success: function (res) {
- if (res.code == 0) {
- layui.table.reload('verify-table');
- layer.msg('已重新开启训练', {
- time: 2000
- });
- setTimeout(() => {
- if (data.pattern == 0) {
- setTimeout(() => {
- layer.alert('训练人员无法在规定训练周期内完成训练,请重新重新指派训练营',{ title: ['信息', 'color:#333333;background-color:#D8E6F1;'], }, function (index) {
- layer.close(index);
- });
- },2000)
- }
- })
- } else {
- layer.msg(res.msg, {
- anim: 6
- , time: 2000
- });
- }
- }
- });
- obj.del();
- layer.close(index);
- });
- }
- }else if(obj.event === 'verify-leave') {
- layer.confirm('确定离职吗?',{title:['信息', 'color:#333333;background-color:#D8E6F1;'],}, function(index) {
- $.ajax({
- url: "{:url('talkskill/talkskilldel')}?id=" + data.id,
- type: 'post'
- });
- obj.del();
- layer.close(index);
- });
- } else if (obj.event === 'verify-pass') {
- layer.confirm('确定通过吗?',{title:['信息', 'color:#333333;background-color:#D8E6F1;'],}, function(index) {
- $.ajax({
- url: "{:url('camp/worker')}",
- type: 'post',
- data: {
- id: data.id,
- type: '1'
- },
- success: function (res) {
- if (res.code == 0) {
- layui.table.reload('verify-table');
- layer.msg('操作成功', {
- anim: 6
- , time: 2000
- });
- } else {
- layer.msg(res.msg, {
- anim: 6
- , time: 2000
- });
- }
- }
- });
- obj.del();
- layer.close(index);
- });
- }
- });
-
- $('.layui-btn.layuiadmin-btn').on('click', function() {
- var type = $(this).data('type');
- active[type] ? active[type].call(this) : '';
- });
- });
- </script>
- {/block}
|