From 599158145f8fc5c42b29ad1eee2b016eaabea784 Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期三, 26 一月 2022 08:12:24 +0800 Subject: [PATCH] 更新 --- src/main/webapp/static/js/tableData.js | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/static/js/tableData.js b/src/main/webapp/static/js/tableData.js index 2511f97..3b799e5 100644 --- a/src/main/webapp/static/js/tableData.js +++ b/src/main/webapp/static/js/tableData.js @@ -1,7 +1,16 @@ + setTimeout(function(){ + getTheaddData() + getThbodyData() + },0) + setInterval(function(){ + getThbodyData() + },5000) + + var proData = ["椤圭洰鍚嶇О","寮�濮嬫椂闂�","缁撴潫鏃堕棿",] var getTheaddData = function(){ $.ajax({ - url:baseUrl + '/projectPlan/flowStatus', + url:'http://192.168.4.99:8080/pms/projectPlan/flowStatus', type:'GET', dataType:'JSON', data:{}, @@ -22,19 +31,18 @@ }, }) } - setTimeout(getTheaddData(),1000) - - + +/*****************************************************************************************************************************************************************************/ var getThbodyData = function(){ $.ajax({ - url:baseUrl+'/projectPlan/toFront', + url:'http://192.168.4.99:8080/pms/projectPlan/toFront', type:'GET', dataType:'JSON', data:{}, success:function(res){ if(res.code==200){ data=res.data - + console.log(data) // 鍒ゆ柇鏃堕棿鏄惁鏈塶ull 鏈塶ull鐨勬敼涓� "" for(var i = 0;i<data.length;i++){ var dataNode = data[i].nodes @@ -76,12 +84,12 @@ var realEndTime$ = data[t].nodes[k].realEndTime$.substring(0,10) // 椤圭洰鑺傜偣璁″垝缁撴潫鏃堕棿 var endTime$ = data[t].nodes[k].endTime$.substring(0,10) - + console.log(endTime$) var myDate = new Date() var nowDay = myDate.getFullYear()+"-"+(myDate.getMonth()+1)+"-"+myDate.getDate() var eDay = new Date(endTime$) // 鍒ゆ柇realEndTime$.substring(0,10) 鏄惁涓虹┖ - + console.log(realEndTime$) if(realEndTime$ === ""){ // 璁″垝鏃ユ湡涓庣郴缁熸棩鏈熸瘮杈� var ExDay = eDay.getTime()-myDate.getTime() @@ -117,6 +125,8 @@ } }) - } - setInterval(getThbodyData(),2000) - + } + +/*****************************************************************************************************************************************************************************/ + + -- Gitblit v1.9.1