|
@@ -321,20 +321,20 @@ const showLable = (key) => {
|
|
switch (key) {
|
|
switch (key) {
|
|
case "tipTemperature":
|
|
case "tipTemperature":
|
|
return "温度";
|
|
return "温度";
|
|
- case "CH5Val":
|
|
|
|
- return "温度";
|
|
|
|
- case "CH6Val":
|
|
|
|
- return "湿度";
|
|
|
|
|
|
+ case "errCode":
|
|
|
|
+ return "错误代码";
|
|
|
|
+ case "Finalangle":
|
|
|
|
+ return "最终角度";
|
|
|
|
+ case "Finaltime":
|
|
|
|
+ return "最终时间";
|
|
|
|
+ case "Tighteningresult":
|
|
|
|
+ return "最终结果";
|
|
|
|
+ case "Finaltorque":
|
|
|
|
+ return "最终扭矩";
|
|
case "DataTimes":
|
|
case "DataTimes":
|
|
return "采集时间";
|
|
return "采集时间";
|
|
- case "torquetarget":
|
|
|
|
- return "当前任务目标扭力";
|
|
|
|
- case "tightenTorqueMax":
|
|
|
|
- return "拧紧过程中最大扭力值";
|
|
|
|
case "taskNo":
|
|
case "taskNo":
|
|
return "当前任务号";
|
|
return "当前任务号";
|
|
- case "taskName":
|
|
|
|
- return "任务名";
|
|
|
|
case "warning":
|
|
case "warning":
|
|
return "警报";
|
|
return "警报";
|
|
case "tightenResult":
|
|
case "tightenResult":
|
|
@@ -345,10 +345,10 @@ const showLable = (key) => {
|
|
return "长度";
|
|
return "长度";
|
|
case "height":
|
|
case "height":
|
|
return "高度";
|
|
return "高度";
|
|
- case "DDLSD1":
|
|
|
|
- return "拧紧的模式";
|
|
|
|
- case "DDLSD2":
|
|
|
|
- return "拧紧旋转方向";
|
|
|
|
|
|
+ case "ch1_temperature":
|
|
|
|
+ return "电烙铁通道1温度";
|
|
|
|
+ case "ch2_temperature":
|
|
|
|
+ return "电烙铁通道2温度";
|
|
case "DDLSD3":
|
|
case "DDLSD3":
|
|
return "目标扭力";
|
|
return "目标扭力";
|
|
case "DDLSD4":
|
|
case "DDLSD4":
|
|
@@ -373,10 +373,6 @@ const showLable = (key) => {
|
|
return "扭力偏差下限";
|
|
return "扭力偏差下限";
|
|
case "DDLSD14":
|
|
case "DDLSD14":
|
|
return "扭力免检圈数";
|
|
return "扭力免检圈数";
|
|
- case "DDLSD15":
|
|
|
|
- return "拧松有效触发的扭力阀值";
|
|
|
|
- case "DDLSD16":
|
|
|
|
- return "拧松有效触发的保持时间";
|
|
|
|
case "DDLSD17":
|
|
case "DDLSD17":
|
|
return "自由旋转方向";
|
|
return "自由旋转方向";
|
|
case "DDLSD18":
|
|
case "DDLSD18":
|
|
@@ -409,12 +405,12 @@ const showLable = (key) => {
|
|
return "STEP-01拧松速度";
|
|
return "STEP-01拧松速度";
|
|
case "DDLSD32":
|
|
case "DDLSD32":
|
|
return "STEP-02拧松圈数";
|
|
return "STEP-02拧松圈数";
|
|
- case "DDLSD33":
|
|
|
|
- return "STEP-02拧松速度";
|
|
|
|
- case "DDLSD34":
|
|
|
|
- return "STEP-00自由圈数";
|
|
|
|
- case "DDLSD35":
|
|
|
|
- return "STEP-00自由速度";
|
|
|
|
|
|
+ case "humidity":
|
|
|
|
+ return "湿度";
|
|
|
|
+ case "temp":
|
|
|
|
+ return "温度";
|
|
|
|
+ case "ts":
|
|
|
|
+ return "时间";
|
|
default:
|
|
default:
|
|
return key;
|
|
return key;
|
|
}
|
|
}
|
|
@@ -476,23 +472,21 @@ const configeObj = (type) => {
|
|
switch (type) {
|
|
switch (type) {
|
|
//温湿度
|
|
//温湿度
|
|
case "WXDJC":
|
|
case "WXDJC":
|
|
- return ["CH5Val", "CH6Val"];
|
|
|
|
|
|
+ return ["temp", "humidity","errCode"];
|
|
case "YBKC":
|
|
case "YBKC":
|
|
return ["length"];
|
|
return ["length"];
|
|
case "GDC":
|
|
case "GDC":
|
|
return ["height"];
|
|
return ["height"];
|
|
case "WKDLT":
|
|
case "WKDLT":
|
|
- return ["tipTemperature"];
|
|
|
|
|
|
+ return ["ch1_temperature","ch2_temperature","errCode"];
|
|
//电动螺丝刀
|
|
//电动螺丝刀
|
|
case "DDLSD":
|
|
case "DDLSD":
|
|
return [
|
|
return [
|
|
- "taskName",
|
|
|
|
- "taskNo",
|
|
|
|
- "tightenResult",
|
|
|
|
- "totalCycles",
|
|
|
|
- "torquetarget",
|
|
|
|
- "tightenTorqueMax",
|
|
|
|
- "warning",
|
|
|
|
|
|
+ "Finaltorque",
|
|
|
|
+ "Finalangle",
|
|
|
|
+ "Finaltime",
|
|
|
|
+ "Tighteningresult",
|
|
|
|
+ "errCode",
|
|
];
|
|
];
|
|
default:
|
|
default:
|
|
return ["数据1", "数据2", "数据3"];
|
|
return ["数据1", "数据2", "数据3"];
|
|
@@ -657,6 +651,13 @@ emitter.on(EventsNames.GETDATA_WKDLT, (name) => {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+emitter.on(EventsNames.GETDATA_WSD, (name) => {
|
|
|
|
+ materialsData.value.forEach((item, index) => {
|
|
|
|
+ if (item.deviceType == "WXDJC" && item.deviceNo == name) {
|
|
|
|
+ setAcquisitionDatas(item.deviceNo, index);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|