Browse Source

Changed on Login Stuff and visibility control.

jason.lu 6 years ago
parent
commit
f5b0a383b4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      js/entrance.js

+ 3 - 2
js/entrance.js

@@ -12,6 +12,7 @@ function page_document_load() {
             showEachSpot1();
         }
     });
+    checkIfExists();
     firsttime_load_spots_data();
     secondtime_load_spots_data();
 }
@@ -108,7 +109,7 @@ function moveToStart(btn) {
         return;
     }
     var periodnum = $("#period_ID").val();
-    get_data("/fcWorkSchedule/startSchedule?flowId=" + proAreaCode + "&periodId=" + periodnum, startToSchedule);
+    get_data("/fcWorkSchedule/startSchedule?flowId=" + proAreaCode + "&periodId=" + periodnum + "&userId="+userId, startToSchedule);
 }
 
 function startToSchedule(obj) {
@@ -127,7 +128,7 @@ function checkIfExists(){
 }
 
 function getRemainHTML(obj) {
-    return `<a href='lazhang.html?scheduleId=${obj.scheduleId}&flowId=${obj.flowId}'> 正在进行的班次: ${obj.flowName} ${obj.fcDay} </a> `
+    return `<a href='lazhang.html?scheduleId=${obj.scheduleId}&flowId=${obj.flowId}&userId=${userId}'> 正在进行的班次: ${obj.flowName} ${obj.fcDay} </a> `
 }
 
 function send_remain(a, b) {