getparam.js 565 B

12345678910111213141516171819202122232425262728
  1. function utils_get_param(name){
  2. var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
  3. var r = window.location.search.substr(1).match(reg);
  4. if(r!=null)return unescape(r[2]); return null;
  5. }
  6. var scheduleId = utils_get_param("scheduleId");
  7. var flowId = utils_get_param("flowId");
  8. if(flowId == null || scheduleId == null){
  9. alert("出错啦!请检查参数完整性");
  10. }
  11. // 去除实际名字
  12. function getNames(workerIdList, chart){
  13. // return "张三";
  14. }
  15. function on_load_name_success(obj){
  16. }
  17. function reloadPage(){
  18. location.reload()
  19. }