|
@@ -5,88 +5,100 @@
|
|
|
{{include "com/menu.html"}}
|
|
|
|
|
|
<div class="content-wrapper">
|
|
|
- <section class="content-header">
|
|
|
- <h1>
|
|
|
- <small><!--<a class="btn btn-primary opr" opr="new">新增逻辑</a>--></small>
|
|
|
- </h1>
|
|
|
- <ol class="breadcrumb">
|
|
|
- <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
|
|
|
- <li><a href="/service/feedback/list"><i class="active"></i> 反馈列表</a></li>
|
|
|
- </ol>
|
|
|
+ <section class="content-header">
|
|
|
+ <h1>
|
|
|
+ <small><!--<a class="btn btn-primary opr" opr="new">新增逻辑</a>--></small>
|
|
|
+ </h1>
|
|
|
+ <ol class="breadcrumb">
|
|
|
+ <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
|
|
|
+ <li><a href="/service/feedback/list"><i class="active"></i> 反馈列表</a></li>
|
|
|
+ </ol>
|
|
|
+ </section>
|
|
|
+ <!-- Main content -->
|
|
|
+ <section class="content">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-body">
|
|
|
+ <table id="dataTable" class="table table-bordered table-striped">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>客户名称</th>
|
|
|
+ <th>规则名称</th>
|
|
|
+ <th>反馈意见</th>
|
|
|
+ <th>反馈数量</th>
|
|
|
+ <th>反馈时间</th>
|
|
|
+ <th class="hidden-xs">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</section>
|
|
|
- <!-- Main content -->
|
|
|
- <section class="content">
|
|
|
- <div class="row">
|
|
|
- <div class="col-xs-12">
|
|
|
- <div class="box">
|
|
|
- <div class="box-body">
|
|
|
- <table id="dataTable" class="table table-bordered table-striped">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>客户名称</th>
|
|
|
- <th>规则名称</th>
|
|
|
- <th>反馈意见</th>
|
|
|
- <th>反馈数量</th>
|
|
|
- <th>反馈时间</th>
|
|
|
- <th class="hidden-xs">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
</div>
|
|
|
{{include "com/dialog.html"}}
|
|
|
{{include "com/footer.html"}}
|
|
|
<script>
|
|
|
-menuActive("/feedback/list")
|
|
|
-$(function () {
|
|
|
- ttable=$('#dataTable').DataTable({
|
|
|
- "paging" : true,
|
|
|
- "lengthChange": false,
|
|
|
- "searching" : true,
|
|
|
- "ordering" : false,
|
|
|
- "info" : true,
|
|
|
- "autoWidth" : false,
|
|
|
- "serverSide" : true,
|
|
|
- "ajax": {
|
|
|
- "url": "/service/feedback/list",
|
|
|
- "type": "post",
|
|
|
- "data":{}
|
|
|
- },
|
|
|
- "language": {
|
|
|
- "url": "/dist/js/dataTables.chinese.lang"
|
|
|
- },
|
|
|
- "columns": [
|
|
|
- { "data": "s_customername"},
|
|
|
- { "data": "s_tagname"},
|
|
|
- { "data": "s_opinion"},
|
|
|
- { "data": "i_num"},
|
|
|
- { "data": "l_feedbacktime",render:function(val){
|
|
|
- var dt=new Date()
|
|
|
- dt.setTime(parseInt(val)*1000)
|
|
|
- return dt.format("yyyy-MM-dd hh:mm:ss")
|
|
|
- }},
|
|
|
- { "data":"_id","width":"25%",render:function(val,a,row,pos){
|
|
|
- tmp = '<div>'+
|
|
|
- '<a class="btn btn-sm btn-primary" href="/service/rule/edit?dataid='+encodeURI(row.s_dataid)+'">编辑规则</a> '+
|
|
|
- '<a class="btn btn-sm btn-success" href="/service/feedback/detail?_id='+val+'">查看</a> '+
|
|
|
- '</div>';
|
|
|
- return tmp
|
|
|
- }}
|
|
|
- ],
|
|
|
- "fnDrawCallback": function(table) {
|
|
|
- $("ul.pagination").prepend(" 转到第 <input type='text' id='changePage' style='width:20px;'> 页 <a type='text' href='javascript:void(0);' id='dataTable-btn' style='text-align:center'>GO</a>");
|
|
|
- $('#dataTable-btn').click(function(e) {
|
|
|
- var redirectpage=0
|
|
|
- if($("#changePage").val() && $("#changePage").val() > 0) {
|
|
|
- var redirectpage = $("#changePage").val() - 1;
|
|
|
- }
|
|
|
- ttable.page(redirectpage).draw(false);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
-})
|
|
|
+ menuActive("/feedback/list")
|
|
|
+ $(function () {
|
|
|
+ ttable = $('#dataTable').DataTable({
|
|
|
+ "paging": true,
|
|
|
+ "lengthChange": false,
|
|
|
+ "searching": true,
|
|
|
+ "ordering": false,
|
|
|
+ "info": true,
|
|
|
+ "autoWidth": false,
|
|
|
+ "serverSide": true,
|
|
|
+ "ajax": {
|
|
|
+ "url": "/service/feedback/list",
|
|
|
+ "type": "post",
|
|
|
+ "data": {}
|
|
|
+ },
|
|
|
+ "language": {
|
|
|
+ "url": "/dist/js/dataTables.chinese.lang"
|
|
|
+ },
|
|
|
+ "columns": [
|
|
|
+ {"data": "s_customername"},
|
|
|
+ {"data": "s_tagname"},
|
|
|
+ {"data": "s_opinion"},
|
|
|
+ {"data": "i_num"},
|
|
|
+ {
|
|
|
+ "data": "l_feedbacktime", render: function (val) {
|
|
|
+ var dt = new Date()
|
|
|
+ dt.setTime(parseInt(val) * 1000)
|
|
|
+ return dt.format("yyyy-MM-dd hh:mm:ss")
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "data": "_id", "width": "25%", render: function (val, a, row, pos) {
|
|
|
+ if (row.b_tagdel) {
|
|
|
+ tmp = '<div>' +
|
|
|
+ '<a class="btn btn-sm btn-primary" disabled="true" href="javascript:return false;">编辑规则</a> ' +
|
|
|
+ '<a class="btn btn-sm btn-success" href="/service/feedback/detail?_id=' + val + '">查看</a> ' +
|
|
|
+ '</div>';
|
|
|
+ } else {
|
|
|
+ tmp = '<div>' +
|
|
|
+ '<a class="btn btn-sm btn-primary" href="/service/rule/edit?dataid=' + encodeURI(row.s_dataid) + '">编辑规则</a> ' +
|
|
|
+ '<a class="btn btn-sm btn-success" href="/service/feedback/detail?_id=' + val + '">查看</a> ' +
|
|
|
+ '</div>';
|
|
|
+ }
|
|
|
+
|
|
|
+ return tmp
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "fnDrawCallback": function (table) {
|
|
|
+ $("ul.pagination").prepend(" 转到第 <input type='text' id='changePage' style='width:20px;'> 页 <a type='text' href='javascript:void(0);' id='dataTable-btn' style='text-align:center'>GO</a>");
|
|
|
+ $('#dataTable-btn').click(function (e) {
|
|
|
+ var redirectpage = 0
|
|
|
+ if ($("#changePage").val() && $("#changePage").val() > 0) {
|
|
|
+ var redirectpage = $("#changePage").val() - 1;
|
|
|
+ }
|
|
|
+ ttable.page(redirectpage).draw(false);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
</script>
|