AutoPlayer = false; //开启自动漫游 ApiServer = "http://192.168.1.66:8080" //http://192.168.66.133:8080"; //服务接口地址 PLAYER3D_URL = "ws://192.168.1.101:8082" // "ws://192.168.66.133:8082"; // DEV_ALAR_COLOR = "ff6c00"; //全局设备告警颜色 DEV_HINT_COLOR = "d69d85"; //设备盘头剩余20-50之间的提示颜色 DEV_OFFLINE_COLOR = "666666"; //设备未接入的颜色 ONLIME_TIMEOUT = 1000 * 60 * 5; //在线设备定时任务时间 INDEX_TIMEOUT = 5 * 60 * 1000; //首页统计数据定时任务时间 ALARM_TIMEOUT = 30 * 1000; //告警数据定时任务时间 StockTypeName={"pt":"盘头","ycl":"原材料","bpb":"白坯布","cp":"成品"}; StockTypeUnit={"pt":"个","ycl":"KG","bpb":"KG","cp":"KG"}; Date.prototype.Format = function(fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; }