| | |
| | | getThbodyData() |
| | | getType() |
| | | }, 0) |
| | | setInterval(function () { |
| | | getThbodyData() |
| | | }, 5000) |
| | | //setInterval(function () { |
| | | // getThbodyData() |
| | | //}, 5000) |
| | | |
| | | //表头小进度表 |
| | | var getType = function () { |
| | | $.ajax({ |
| | | url: baseurl + '/pms/projectPlan/dataSummary', |
| | | url: baseUrl + '/projectPlan/dataSummary', |
| | | type: 'GET', |
| | | data: {}, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | var str = '<tr>' |
| | | + '<th>' + '项目总数' + '</th>' + '<th>' + res.data.totalQuantity + '</th>' |
| | | + '<th>' + '集成项目' + '</th>' + '<th>' + res.data.intoSum + '</th>' |
| | | + '<th>' + '非集成项目数' + '</th>' + '<th>' + res.data.wrongInto + '</th>' |
| | | //+ '<th>' + '项目总数' + '</th>' + '<th>' + res.data.totalQuantity + '</th>' |
| | | //+ '<th>' + '集成项目' + '</th>' + '<th>' + res.data.intoSum + '</th>' |
| | | + '<th>' + '常规项目数' + '</th>' + '<th>' + res.data.wrongInto + '</th>' |
| | | + '<th>' + '已验收项目数' + '</th>' + '<th>' + res.data.inspected + '</th>' |
| | | + '<th>' + '未验收项目数' + '</th>' + '<th>' + res.data.wrongInspected + '</th>' |
| | | + '<th>' + '已完工未验收数' + '</th>' + '<th>' + res.data.finished + '</th>' |
| | |
| | | //} |
| | | |
| | | $.ajax({ |
| | | url:baseurl+'/pms/projectPlan/flowStatus', |
| | | url:baseUrl+'/projectPlan/flowStatus', |
| | | type:'GET', |
| | | dataType:'JSON', |
| | | data:{}, |
| | |
| | | /*****************************************************************************************************************************************************************************/ |
| | | var getThbodyData = function () { |
| | | $.ajax({ |
| | | url: baseurl + '/pms/projectPlan/toFront/common', |
| | | url: baseUrl + '/projectPlan/toFront/common', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | data: {}, |
| | |
| | | } |
| | | str = '' |
| | | for (var j = 0; j < node.length; j++) { |
| | | var nodeName = node[j].flowId$ // 节点名称 |
| | | var weightNum = node[j].weightNum |
| | | var itemId = node[j].itemId |
| | | var nodeEndTime = node[j].endTime$.substring(0, 10) |
| | | var nodeRealStartTime = node[j].realEndTime$.substring(0, 10) |
| | | str1 = '<td class="normal">' + '<p>' + nodeEndTime + '</p>' + '<p>' + nodeRealStartTime + '</p>' + '</td>' |
| | | str1 = '<td class="normal" id="item-'+ itemId + '-' + weightNum +'">' + '<p>' + nodeEndTime + '</p>' + '<p>' + nodeRealStartTime + '</p>' + '</td>' |
| | | str = str + str1 |
| | | } |
| | | var str2 = '<tr id="row' + i + '" class="row">' |