123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- {extend name="public/layout" /} {block name="title"}案例分类管理{/block} {block name="body"}
- <style type="text/css">
- html,
- body {
- display: block;
- width: 100%;
- background-color: #fff;
- }
- .layui-table thead tr,
- .layui-table-header {
- background-color: #D8E6F1 !important;
- }
-
- .layui-fluid {
- display: block;
- border-radius: 5px;
- background-color: #ffffff;
- padding: 15px 30px;
- }
- .layui-tab {
- padding: 15px;
- height: 100%;
- }
- .layui-form-item {
- width: 100%;
- }
- .layui-form-item .layui-inline {
- flex:1;
- display: flex;
- min-width: 80px;
- height: 38px;
- line-height: 38px;
- background: #FFFFFF;
- margin-left: 16px !important;
- }
- .layui-form-item .layui-input-inline {
- width: 145px;
- height: 38px;
- line-height: 38px;
- margin-bottom: 0;
- }
- .layui-icon {
- font-size: 20px !important;
- }
- .layui-form-item .layui-input-inline .layui-input {
- border: 1px solid #9DB6CF;
- border-radius: 5px;
- }
- .layui-form-select dl dd.layui-this {
- background-color: #249EFB;
- }
- .layui-form-item div.searchBox {
- width: 320px;
- background: #FFFFFF;
- border: 1px solid #B6CADE;
- border-radius: 24px;
- height: 38px;
- overflow: hidden;
- padding-left: 18px;
- position: relative;
- margin-bottom: 0px;
- float: right;
- }
- .searchBox .inputBox {
- width: 240px;
- float: left;
- height: 36px;
- line-height: 36px;
- border-width: 0;
- }
- .searchBtn {
- position: absolute;
- top: 0;
- right: 0;
- width: 51px;
- height: 38px;
- background-color: #fff;
- }
- .searchBtn img {
- position: absolute;
- width: 26px;
- top: 6px;
- left: 0;
- }
- .layui-card .layui-tab {
- margin: 0;
- height: 31%;
- width: 98%;
- /*float: right;*/
- padding: 1px;
- }
- .layui-btn-primary {
- color: #249EFB;
- border: 1px solid #249EFB;
- }
- .layui-btn-primary:hover {
- background-color: #E3F7FF;
- color: #249EFB;
- }
- .border {
- border: 1px solid #f2f2f2;
- }
- .line {
- width:90%;
- height:1px;
- background-color: #f2f2f2;
- margin: auto;
- }
- .layui-card .layui-tab-brief .layui-tab-title li.layui-this {
- background-color: #249EFB;
- color: #fff;
- }
- .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
- border-bottom: none;
- }
- .layui-card .layui-tab-brief .layui-tab-title li {
- background-color: #F2F2F2;
- margin: 0px 5px;
- }
- .layui-card-body {
- padding: 15px 0px 0px;
- }
- .layui-unselect .layui-form-select {
- min-width: 60px;
- margin-left: 10px;
- }
- .layui-card-body {
- padding: 0px 0px 0px;
- height: 483px;
- }
- .circle1 {
- height: 18px;
- background-color: #E5E3FF;
- font-size: 8px !important;
- margin-right: 5px;
- color: #2868FF;
- line-height: 18px;
- padding: 0px 2px;
- }
- .circle2 {
- height: 18px;
- background-color: #FFE3E3;
- font-size: 8px !important;
- margin-right: 5px;
- color: #FF2828;
- line-height: 18px;
- padding: 0px 2px;
- }
- .flex-sub {
- flex:1;
- }
- .layui-table-cell {
- padding: 0px 8px;
- }
- </style>
- <body>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header layuiadmin-card-header-auto border">
- <div style="display:flex;">
- <div style="flex:1;display:flex;justify-content:center;align-items:center;">审核总数:{$data.count}</div>
- <div style="flex:1;display:flex;justify-content:center;align-items:center;">通过数量:{$data.pass_count}</div>
- <div style="flex:1;display:flex;justify-content:center;align-items:center;">驳回数量:{$data.no_count}</div>
- </div>
- </div>
- <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 10px;">
- <ul class="layui-tab-title layui-inline" style="margin-top: 7px;"></ul>
- <div style="float:right;margin-top: 7px;margin-right: -18px;display:flex;">
- <!-- <form class="layui-form"> -->
- <div class="layui-inline">
- <div class="layui-input-inline layui-form" style="max-width:279px;">
- <label style="width:66px;margin-top:10px;">上传时间</label>
- <input type="text" style="border:1px solid #e6e6e6;height:36px;max-width:212px;text-align: center;" class="pdl40 huise999 ds" name="time" id="time_date" placeholder="开始时间 - 结束时间" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-inline" style="margin-left: 10px;">
- <div class="layui-input-inline layui-form">
- <select name="type_id" lay-filter="org" class="type_id" id="org">
- <option value="">请选择部门</option>
- {volist name="org" id="i"}
- <option value="{$i.id}">{$i.name}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="layui-inline" style="margin-left: 10px;">
- <div class="layui-input-inline layui-form">
- <select name="cate" lay-filter="slt" class="type_id" id="cate">
- <option value="">请选择状态</option>
- <option value="1">通过</option>
- <option value="2">驳回</option>
- </select>
- </div>
- </div>
- <div class="layui-inline" style="margin-left: 10px;">
- <div class="layui-input-inline layui-form">
- <select name="employee_id" lay-filter="employee_id" class="type_id" id="employee_id" lay-search>
- <option value="">请选择或搜索上传人员</option>
- {volist name="employee" id="i"}
- <option value="{$i.id}">{$i.name}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="layui-inline" style="margin-left: 10px;">
- <button class="layui-btn" id="LAY-app-contlist-searchs">
- <i class="layui-icon layui-icon-search"></i>
- </button>
- </div>
-
-
- <!-- </form> -->
- </div>
- </div>
- <div class="layui-card-body">
- <table id="evidence-table" lay-filter="evidence-table"></table>
- </div>
- </div>
- </div>
- </body>
- {/block} {block name="js"}
- <script type="text/html" id="show">
- <input type="checkbox" name="show" value="{{d.id}}" lay-skin="switch" lay-text="上架|下架" lay-filter="show" {{ d.publish == 1 ? 'checked' : '' }}>
- </script>
- <script type="text/html" id="table-evidence-action">
- <a class="layui-btn layui-btn-xs" lay-event="evi-details"><i class="layui-icon layui-icon-edit"></i>编辑</a>
- <!-- <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="evidence-delete"><i
- class="layui-icon layui-icon-delete"></i>删除</a> -->
- </script>
- <script type="text/html" id="evidence_num">
- <span>{{d.picnum}}</span>
- </script>
- <script type="text/html" id="title">
- {{# if(d.title){ }}
- <span>{{d.title}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="title">
- {{# if(d.title){ }}
- <span>{{d.title}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="content">
- {{# if(d.content){ }}
- <span>{{d.content}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="name">
- {{# if(d.name){ }}
- <span>{{d.name}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="addtime">
- {{# if(d.addtime){ }}
- <span>{{d.addtime}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="org_name">
- {{# if(d.org_name){ }}
- <span>{{d.org_name}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="status">
- {{# if(d.status){ }}
- <span>{{d.status}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="box">
- {{# if(d.box){ }}
- <span>{{d.box}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="approve_name">
- {{# if(d.approve_name){ }}
- {{# if(d.approve_from==1){ }}
- <div style="display: flex;align-items: center;"><span class="circle1">手机</span><div>{{d.approve_name}}</div></div>
- {{# }else{ }}
- <div style="display: flex;align-items: center;"><span class="circle2">后台</span><div>{{d.approve_name}}</div></div>
- {{# } }}
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script type="text/html" id="aprove_time">
- {{# if(d.aprove_time){ }}
- <span>{{d.aprove_time}}</span>
- {{# }else{ }}
- <span style="color: #cccccc;">无</span>
- {{# } }}
- </script>
- <script>
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'table', 'element','laydate','form'], function () {
- var $ = layui.$,
- form = layui.form,
- element = layui.element,
- laydate = layui.laydate,
- table = layui.table;
- laydate.render({
- elem: '#time_date'
- ,type: 'date'
- ,range: true
- ,trigger: 'click'//呼出事件改成click
- });
- //客户见证列表
- table.render({
- elem: '#evidence-table',
- autoSort: false,
- url: '{:url("talkskill/history_list")}?type='+"{$type}",
- cols: [
- [{
- field: 'title',
- // width: 180,
- title: '问题',
- align:'center',
- templet: '#title',
- }, {
- field: 'content',
- title: '回答',
- align:'center',
- templet: '#content',
- }, {
- field: 'name',
- title: '上传人员',
- // width: 100,
- align:'center',
- templet: '#name',
- }, {
- field: 'addtime',
- title: '上传时间',
- // width: 180,
- align:'center',
- }, {
- field: 'org_name',
- title: '所属部门',
- // width: 120,
- align:'center',
- templet: '#org_name',
- }, {
- field: 'status',
- title: '审核状态',
- // width: 100,
- align:'center',
- templet: '#status',
- }, {
- field: 'box',
- title: '驳回原因',
- align:'center',
- templet: '#box',
- }, {
- field: 'approve_name',
- title: '审核人员',
- // width: 100,
- align:'center',
- templet: '#approve_name',
- }, {
- field: 'aprove_time',
- title: '审核时间',
- // width: 180,
- align:'center',
- templet: '#aprove_time',
- }]
- ],
- page: true,
- limit: 10,
- // height: 'full-200',
- text: '对不起,加载出现异常!'
- });
- //搜索
- $('#LAY-app-contlist-searchs').click(function() {
- var type_id = $('#org').val();
- var cate = $('#cate').val();
- var employee_id = $('#employee_id').val();
- var time = $('#time_date').val();
- var field = [];
- field['org'] = type_id;
- field['cate'] = cate;
- field['employee_id'] = employee_id;
- field['time'] = time;
- //执行重载
- table.reload('evidence-table', {
- where: field,
- page: {
- curr: 1
- }
- });
- });
- //监听部门变化
- form.on('select(org)', function(data){
- var org_id = data.value;
- $.ajax({
- url: '{:url("talkskill/history")}?cate=1&org_id='+org_id,
- type: 'post',
- dataType: 'json',
- success: function(res) {
- var html = '<option value="">请选择或搜索上传人员</option>';
- for (let i = 0; i < res.data.length; i++) {
- const val = res.data[i];
- html += '<option value='+val.id+'>'+val.name+'</option>';
- }
- console.log(html)
- $('#employee_id').empty();
- $('#employee_id').append(html);
- form.render();
- }
- });
- })
- });
- </script>
- {/block}
|