1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- AutoPlayer = false; //开启自动漫游
- ApiServer = "http://192.168.66.133:8080" //http://192.168.66.133:8080"; //服务接口地址
- PLAYER3D_URL = "ws://192.168.66.133: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"};
- //产整线编号标记定义
- IN345MARKERS = {
- "IN03":{
- "8#线":["8#线_3F","印花线007","Object274"],
- "7#线":["7#线_3F","印花线006","Object241"],
- "6#线":["6#线_3F","印花线005","Object208"],
- "5#线":["5#线_3F","印花线004","Object175"],
- "4#线":["4#线_3F","印花线003","Object142"],
- "3#线":["3#线_3F","印花线002","Object109"],
- "2#线":["2#线_3F","印花线001","Object076"],
- "1#线":["1#线_3F","印花线","Object038"],
- },
- "IN04":{
- "8#线":[["8#线_4F","其他015","Cylinder1462"],["8#线_3F","双棍烫光064"]],
- "7#线":[["7#线_4F","其他014","Cylinder1342"],["7#线_3F","双棍烫光056"]],
- "6#线":[["6#线_4F","其他013","Cylinder1314"],["6#线_3F","双棍烫光044"]],
- "5#线":[["5#线_4F","其他012","Cylinder1194"],["5#线_3F","双棍烫光036"]],
- "4#线":[["4#线_4F","其他011","Cylinder1166"],["4#线_3F","双棍烫光024"]],
- "3#线":[["3#线_4F","其他010","Cylinder1046"],["3#线_3F","双棍烫光016"]],
- "2#线":[["2#线_4F","其他009","Cylinder972"],["2#线_3F","双棍烫光004"]],
- "1#线":[["1#线_4F","其他008","Cylinder003"],["1#线_3F","双棍烫光"]],
- },
- "IN05":{
- "8#线":[["8#线_4F","其他015","Cylinder1471"],["8#线_3F","其他007","Object285"]],
- "7#线":[["7#线_4F","其他015","Cylinder1397"],["7#线_3F","其他006","Object252"]],
- "6#线":[["6#线_4F","其他015","Cylinder1323"],["6#线_3F","其他005","Object219"]],
- "5#线":[["5#线_4F","其他015","Cylinder1249"],["5#线_3F","其他004","Object186"]],
- "4#线":[["4#线_4F","其他015","Cylinder1175"],["4#线_3F","其他003","Object153"]],
- "3#线":[["3#线_4F","其他015","Cylinder1101"],["3#线_3F","其他002","Object120"]],
- //"2#线":[["2#线_4F","其他015","Cylinder981"]],
- //"1#线":[["1#线_4F","其他015","Cylinder403"]],
- }
- }
- 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;
- }
|