conf.js 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. AutoPlayer = false; //开启自动漫游
  2. ApiServer = "http://192.168.66.133:8080" //http://192.168.66.133:8080"; //服务接口地址
  3. PLAYER3D_URL = "ws://192.168.66.133:8082" // "ws://192.168.66.133:8082"; //
  4. DEV_ALAR_COLOR = "ff6c00"; //全局设备告警颜色
  5. DEV_HINT_COLOR = "d69d85"; //设备盘头剩余20-50之间的提示颜色
  6. DEV_OFFLINE_COLOR = "666666"; //设备未接入的颜色
  7. ONLIME_TIMEOUT = 1000 * 60 * 5; //在线设备定时任务时间
  8. INDEX_TIMEOUT = 5 * 60 * 1000; //首页统计数据定时任务时间
  9. ALARM_TIMEOUT = 30 * 1000; //告警数据定时任务时间
  10. StockTypeName={"pt":"盘头","ycl":"原材料","bpb":"白坯布","cp":"成品"};
  11. StockTypeUnit={"pt":"个","ycl":"KG","bpb":"KG","cp":"KG"};
  12. //产整线编号标记定义
  13. IN345MARKERS = {
  14. "IN03":{
  15. "8#线":["8#线_3F","印花线007","Object274"],
  16. "7#线":["7#线_3F","印花线006","Object241"],
  17. "6#线":["6#线_3F","印花线005","Object208"],
  18. "5#线":["5#线_3F","印花线004","Object175"],
  19. "4#线":["4#线_3F","印花线003","Object142"],
  20. "3#线":["3#线_3F","印花线002","Object109"],
  21. "2#线":["2#线_3F","印花线001","Object076"],
  22. "1#线":["1#线_3F","印花线","Object038"],
  23. },
  24. "IN04":{
  25. "8#线":[["8#线_4F","其他015","Cylinder1462"],["8#线_3F","双棍烫光064"]],
  26. "7#线":[["7#线_4F","其他014","Cylinder1342"],["7#线_3F","双棍烫光056"]],
  27. "6#线":[["6#线_4F","其他013","Cylinder1314"],["6#线_3F","双棍烫光044"]],
  28. "5#线":[["5#线_4F","其他012","Cylinder1194"],["5#线_3F","双棍烫光036"]],
  29. "4#线":[["4#线_4F","其他011","Cylinder1166"],["4#线_3F","双棍烫光024"]],
  30. "3#线":[["3#线_4F","其他010","Cylinder1046"],["3#线_3F","双棍烫光016"]],
  31. "2#线":[["2#线_4F","其他009","Cylinder972"],["2#线_3F","双棍烫光004"]],
  32. "1#线":[["1#线_4F","其他008","Cylinder003"],["1#线_3F","双棍烫光"]],
  33. },
  34. "IN05":{
  35. "8#线":[["8#线_4F","其他015","Cylinder1471"],["8#线_3F","其他007","Object285"]],
  36. "7#线":[["7#线_4F","其他015","Cylinder1397"],["7#线_3F","其他006","Object252"]],
  37. "6#线":[["6#线_4F","其他015","Cylinder1323"],["6#线_3F","其他005","Object219"]],
  38. "5#线":[["5#线_4F","其他015","Cylinder1249"],["5#线_3F","其他004","Object186"]],
  39. "4#线":[["4#线_4F","其他015","Cylinder1175"],["4#线_3F","其他003","Object153"]],
  40. "3#线":[["3#线_4F","其他015","Cylinder1101"],["3#线_3F","其他002","Object120"]],
  41. //"2#线":[["2#线_4F","其他015","Cylinder981"]],
  42. //"1#线":[["1#线_4F","其他015","Cylinder403"]],
  43. }
  44. }
  45. Date.prototype.Format = function(fmt) { //author: meizz
  46. var o = {
  47. "M+": this.getMonth() + 1, //月份
  48. "d+": this.getDate(), //日
  49. "h+": this.getHours(), //小时
  50. "m+": this.getMinutes(), //分
  51. "s+": this.getSeconds(), //秒
  52. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  53. "S": this.getMilliseconds() //毫秒
  54. };
  55. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  56. for (var k in o)
  57. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  58. return fmt;
  59. }