|
@@ -68,6 +68,7 @@
|
|
|
height: 30vh;
|
|
|
overflow-y: scroll;
|
|
|
margin-bottom: 10px;
|
|
|
+ border: 1px solid rgba(0,0,0,0.1);
|
|
|
}
|
|
|
/*隐藏滚动条*/
|
|
|
.treeContent::-webkit-scrollbar {
|
|
@@ -169,10 +170,10 @@
|
|
|
elem: '#customer_log'
|
|
|
, url: '/customer/stage_count/'
|
|
|
, cols: [[
|
|
|
- {field: 'stage', title: '阶段', width: 100}
|
|
|
- , {field: 'total_count', title: "总数", width: 80, sort: true}
|
|
|
- , {field: 'today_count', title: '今日', width: 80, sort: true}
|
|
|
- , {field: 'overdue_count', title: '逾期', width: 80, sort: true}
|
|
|
+ {field: 'stage', title: '阶段', event: 'stage', width: 100}
|
|
|
+ , {field: 'total_count', title: "总数", event: 'total', width: 80, sort: true}
|
|
|
+ , {field: 'today_count', title: '今日', event: 'today', width: 80, sort: true}
|
|
|
+ , {field: 'overdue_count', title: '逾期', event: 'overdue', width: 80, sort: true}
|
|
|
]]
|
|
|
});
|
|
|
|
|
@@ -341,17 +342,25 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- table.on('row(customer-operate-log)', function (obj) {
|
|
|
+ // 点击表格触发
|
|
|
+ table.on('tool(customer-operate-log)', function(obj){
|
|
|
var data = obj.data;
|
|
|
+ let tool_event = obj.event;
|
|
|
+ let params = {};
|
|
|
+ params['stage_progress'] = data.stage_id;
|
|
|
+ if(tool_event === 'today'){
|
|
|
+ params['today'] = 'today';
|
|
|
+ }else if(tool_event === 'overdue'){
|
|
|
+ params['overdue'] = 'overdue';
|
|
|
+ };
|
|
|
table.reload('customer_datagrid', {
|
|
|
- where: {stage_progress: data.stage_id}
|
|
|
+ where: params
|
|
|
, page: {curr: 1}
|
|
|
});
|
|
|
-
|
|
|
- //标注选中样式
|
|
|
- obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
var _params = {};
|
|
|
form.on('submit(query-form-element)', function (data) {
|
|
|
_params = data.field;
|