|
|
@@ -64,13 +64,16 @@ var layindex = null;
|
|
|
var taskMap = new HashMap();
|
|
|
|
|
|
function inittAreaable(time, dept) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
layindex = layer.load(0, { shade: false });
|
|
|
var t = time.replace("/", "-") + "";
|
|
|
var endtime = moment(t + "-25T23:00:00", "YYYY-MM-DD HH:mm:ss");
|
|
|
var starttime = moment(moment(t + "-25T23:00:00", "YYYY-MM-DD HH:mm:ss").subtract(1, 'month'));
|
|
|
|
|
|
var param1 = { "startTime": getMomentTimeFormat(starttime), "endTime": getMomentTimeFormat(endtime), "checked_dept": dept }
|
|
|
- console.log(param1);
|
|
|
+
|
|
|
|
|
|
|
|
|
//获取排班情况
|
|
|
@@ -126,54 +129,46 @@ function inittAreaable(time, dept) {
|
|
|
records: recodedata
|
|
|
};
|
|
|
reloadtableData();
|
|
|
-
|
|
|
- if (tabledatagride != null) {
|
|
|
- tabledatagride.dataSource.data = null;
|
|
|
- tabledatagride.setDataSource(datac);
|
|
|
- tabledatagride.setPager(1, datac.array.length, datac.array.length);
|
|
|
- tabledatagride.render();
|
|
|
- } else {
|
|
|
-
|
|
|
- $(".completec").mouseover(function() {
|
|
|
- var titlehtml = "稽查完成";
|
|
|
- layer.tips(titlehtml, "#" + this.id, {
|
|
|
- tips: [1, '#8e8e8e'],
|
|
|
- time: 0,
|
|
|
- width: '240px'
|
|
|
- });
|
|
|
+ $(".completec").mouseover(function() {
|
|
|
+ var titlehtml = "稽查完成";
|
|
|
+ layer.tips(titlehtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
});
|
|
|
- $(".doingc").mouseover(function() {
|
|
|
- var titlehtml = "稽查中";
|
|
|
- layer.tips(titlehtml, "#" + this.id, {
|
|
|
- tips: [1, '#8e8e8e'],
|
|
|
- time: 0,
|
|
|
- width: '240px'
|
|
|
- });
|
|
|
+ });
|
|
|
+ $(".doingc").mouseover(function() {
|
|
|
+ var titlehtml = "稽查中";
|
|
|
+ layer.tips(titlehtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
});
|
|
|
- $(".unusec").mouseover(function() {
|
|
|
- var titlehtml = "无效";
|
|
|
- layer.tips(titlehtml, "#" + this.id, {
|
|
|
- tips: [1, '#8e8e8e'],
|
|
|
- time: 0,
|
|
|
- width: '240px'
|
|
|
- });
|
|
|
+ });
|
|
|
+ $(".unusec").mouseover(function() {
|
|
|
+ var titlehtml = "无效";
|
|
|
+ layer.tips(titlehtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
});
|
|
|
- $(".novideoc").mouseover(function() {
|
|
|
- var titlehtml = "未上传视屏";
|
|
|
- layer.tips(titlehtml, "#" + this.id, {
|
|
|
- tips: [1, '#8e8e8e'],
|
|
|
- time: 0,
|
|
|
- width: '240px'
|
|
|
- });
|
|
|
+ });
|
|
|
+ $(".novideoc").mouseover(function() {
|
|
|
+ var titlehtml = "未上传视屏";
|
|
|
+ layer.tips(titlehtml, "#" + this.id, {
|
|
|
+ tips: [1, '#8e8e8e'],
|
|
|
+ time: 0,
|
|
|
+ width: '240px'
|
|
|
});
|
|
|
+ });
|
|
|
|
|
|
|
|
|
- $(".btn,.btc").mouseout(function() {
|
|
|
- layer.close(layer.index);
|
|
|
- });
|
|
|
+ $(".btn,.btc").mouseout(function() {
|
|
|
+ layer.close(layer.index);
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#myTable05').fixedHeaderTable({ altClass: 'odd', footer: false, fixedColumns: 1 });
|
|
|
|
|
|
- $('#myTable05').fixedHeaderTable({ altClass: 'odd', footer: false, fixedColumns: 1 });
|
|
|
- }
|
|
|
|
|
|
for (var index in checkuserlist) {
|
|
|
var p = checkuserlist[index];
|
|
|
@@ -182,6 +177,7 @@ function inittAreaable(time, dept) {
|
|
|
|
|
|
if (checkusersselect != null) {
|
|
|
reset();
|
|
|
+ checkusersselect = null;
|
|
|
}
|
|
|
checkusersselect = $('#check_users').comboTree({
|
|
|
source: checkuserlist,
|
|
|
@@ -205,15 +201,9 @@ function reset() {
|
|
|
|
|
|
if (checkusersselect != null) {
|
|
|
$("#check_users").val("");
|
|
|
- checkusersselect.unbind();
|
|
|
- checkusersselect.closeDropDownMenu();
|
|
|
- checkusersselect.bindings();
|
|
|
- $(".ComboTreeItemChlid").find("input").prop('checked', false);
|
|
|
-
|
|
|
-
|
|
|
+ checkusersselect.destroy();
|
|
|
+ checkusersselect = null;
|
|
|
}
|
|
|
- $("#starttime").val("");
|
|
|
- $("#endtime").val("");
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -345,9 +335,6 @@ function addTask() {
|
|
|
// }
|
|
|
// console.log(param);
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- var check_user_list = checkusersselect.getSelectedItemsId();
|
|
|
var plist = []
|
|
|
tasklist.forEach(t => {
|
|
|
plist.push(t.recordInfo);
|