conf.js 1.4 KB

1234567891011121314151617181920212223242526
  1. AutoPlayer = false; //开启自动漫游
  2. ApiServer = "http://192.168.1.66:8080" //http://192.168.66.133:8080"; //服务接口地址
  3. PLAYER3D_URL = "ws://192.168.1.101: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. Date.prototype.Format = function(fmt) { //author: meizz
  13. var o = {
  14. "M+": this.getMonth() + 1, //月份
  15. "d+": this.getDate(), //日
  16. "h+": this.getHours(), //小时
  17. "m+": this.getMinutes(), //分
  18. "s+": this.getSeconds(), //秒
  19. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  20. "S": this.getMilliseconds() //毫秒
  21. };
  22. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  23. for (var k in o)
  24. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  25. return fmt;
  26. }