|
|
@@ -12,6 +12,7 @@ $(document).ready(function() {
|
|
|
if (roleContains("FWQ")) {
|
|
|
checked_dept = getCurrentUser().organid;
|
|
|
}
|
|
|
+ //console.log(checked_dept);
|
|
|
setSASelecttemp("#fwq", checked_dept);
|
|
|
|
|
|
//默认值 $("#fwq").val()
|
|
|
@@ -174,7 +175,7 @@ function inittAreaable(time, dept) {
|
|
|
}
|
|
|
datac.array.push(data_table);
|
|
|
}
|
|
|
- console.log(datac);
|
|
|
+ // console.log(datac);
|
|
|
if (tabledatagride != null) {
|
|
|
tabledatagride.dataSource.data = null;
|
|
|
tabledatagride.setDataSource(datac);
|
|
|
@@ -188,6 +189,7 @@ function inittAreaable(time, dept) {
|
|
|
|
|
|
onRender: function() {
|
|
|
$(".datagrid-cell-index").mouseover(function(){
|
|
|
+ // console.log(this.id);
|
|
|
var id = this.id.split("-")[4]-1;
|
|
|
var titlehtml = "<div>"+datac.array[id].type+"</div>";
|
|
|
layer.tips(titlehtml, "#" + this.id, {
|
|
|
@@ -200,7 +202,6 @@ function inittAreaable(time, dept) {
|
|
|
layer.close(layer.index);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
$(".btn_c").mouseover(function() {
|
|
|
var tempids = this.id.split("_");
|
|
|
var t = stimemonth.replace("/", "-") + "";
|
|
|
@@ -210,6 +211,7 @@ function inittAreaable(time, dept) {
|
|
|
if (taskMap.get(key) != null) {
|
|
|
var temphtml = "";
|
|
|
var list = taskMap.get(key);
|
|
|
+ //console.log(list);
|
|
|
|
|
|
list.forEach(t => {
|
|
|
var startus = "";
|
|
|
@@ -235,9 +237,57 @@ function inittAreaable(time, dept) {
|
|
|
$(".btn_c").mouseout(function() {
|
|
|
layer.close(layer.index);
|
|
|
});
|
|
|
-
|
|
|
+ },
|
|
|
+ onScroll: function() {
|
|
|
+ $(".datagrid-cell-index").mouseover(function(){
|
|
|
+ // console.log(this.id);
|
|
|
+ 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() {
|
|
|
+ var tempids = this.id.split("_");
|
|
|
+ var t = stimemonth.replace("/", "-") + "";
|
|
|
+ var starttime = moment(moment(t + "-25T23:00:00", "YYYY-MM-DD HH:mm:ss").subtract(1, 'month'));
|
|
|
+ var ctime = starttime.add(tempids[2], "day");
|
|
|
+ var key = tempids[1] + "_" + ctime.format("YYYY-MM-DD");
|
|
|
+ if (taskMap.get(key) != null) {
|
|
|
+ var temphtml = "";
|
|
|
+ var list = taskMap.get(key);
|
|
|
+ //console.log(list);
|
|
|
|
|
|
+ list.forEach(t => {
|
|
|
+ var startus = "";
|
|
|
+ if (t.check_status == 4 || t.check_status == 16 || t.check_status == 6) {
|
|
|
+ startus = "已完成";
|
|
|
+ } else
|
|
|
+ if (t.check_status == 22) {
|
|
|
+ startus = "无效";
|
|
|
+ } else {
|
|
|
+ startus = "进行中";
|
|
|
+ }
|
|
|
+ temphtml += '<tr><td>' + moment(t.start_time).format("HH:mm:ss") + '</td><td>' + moment(t.end_time).format("HH:mm:ss") + '</td><td>' + startus + '</td></tr>';
|
|
|
+ });
|
|
|
|
|
|
+ var thtml = '<table border=1 style="border:solid 1px;width:180px;"><tr><th>开始时间</th><th>结束时间</th><th>状态</th></tr>' + temphtml + '</table>';
|
|
|
+ layer.tips(thtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".btn_c").mouseout(function() {
|
|
|
+ layer.close(layer.index);
|
|
|
+ });
|
|
|
},
|
|
|
configs: {
|
|
|
C1: { className: "datagrid-cell-index", style: { 'text-align': 'center',},},
|