|
|
@@ -18,6 +18,7 @@ $(document).ready(function() {
|
|
|
var dd = 89;
|
|
|
if ($("#fwq").val() != "") {
|
|
|
dd = $("#fwq").val();
|
|
|
+ //console.log(dd);
|
|
|
}
|
|
|
inittAreaable($("#month_date").val(), dd);
|
|
|
|
|
|
@@ -73,7 +74,7 @@ function inittAreaable(time, dept) {
|
|
|
|
|
|
var param1 = { "start_time": starttime.format("YYYY-MM-DD HH:mm:ss"), "end_time": endtime.format("YYYY-MM-DD HH:mm:ss"), "checked_dept": dept }
|
|
|
post_common_service("/f/task/getall/0/0", param1, function(taskdata) {
|
|
|
-
|
|
|
+ // console.log(taskdata);
|
|
|
taskMap = new HashMap();
|
|
|
taskdata.forEach(t => {
|
|
|
var key = t.area_id + "_" + moment(t.start_time).format("YYYY-MM-DD");
|
|
|
@@ -173,7 +174,7 @@ function inittAreaable(time, dept) {
|
|
|
}
|
|
|
datac.array.push(data_table);
|
|
|
}
|
|
|
-
|
|
|
+ console.log(datac);
|
|
|
if (tabledatagride != null) {
|
|
|
tabledatagride.dataSource.data = null;
|
|
|
tabledatagride.setDataSource(datac);
|
|
|
@@ -186,7 +187,18 @@ function inittAreaable(time, dept) {
|
|
|
showRowIndex: false,
|
|
|
|
|
|
onRender: function() {
|
|
|
-
|
|
|
+ $(".datagrid-cell-index").mouseover(function(){
|
|
|
+ var id = this.id.split("-")[4]-1;
|
|
|
+ var titlehtml = "<div>"+datac.array[id].type+"</div>";
|
|
|
+ layer.tips(titlehtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ $(".datagrid-cell-index").mouseout(function() {
|
|
|
+ layer.close(layer.index);
|
|
|
+ });
|
|
|
|
|
|
|
|
|
$(".btn_c").mouseover(function() {
|
|
|
@@ -223,12 +235,15 @@ function inittAreaable(time, dept) {
|
|
|
$(".btn_c").mouseout(function() {
|
|
|
layer.close(layer.index);
|
|
|
});
|
|
|
+
|
|
|
|
|
|
|
|
|
},
|
|
|
configs: {
|
|
|
- C1: { className: "datagrid-cell-index", style: { 'text-align': 'center', } },
|
|
|
+ C1: { className: "datagrid-cell-index", style: { 'text-align': 'center',},},
|
|
|
R0: { style: { 'text-align': 'center', 'line-height': '36px' } }
|
|
|
+ //R1C1:{html:"<div>1111</div>"}
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
tabledatagride = $('#table_s').data('zui.datagrid');
|