| | |
| | | <router-link v-if="hasPermission" to="/Electrical/AutomaticParameterSetting" tag="el-button" type="text" active-class="blue-button">{{ |
| | | $t('Speed parameter settings') |
| | | }}</router-link> |
| | | |
| | | <router-link v-if="hasPermission" |
| | | to="/Electrical/InteractionState" |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("InteractionState") }}</router-link |
| | | > |
| | | </el-breadcrumb> |
| | | |
| | | <el-row :gutter="40"> |
| | |
| | | item.button.value === 2 && item.button.name !== 'Clear ID', |
| | | 'yellow-button': |
| | | item.button.value === 1 && item.button.name !== 'Clear ID', |
| | | id: |
| | | 'id': |
| | | item.button.value === 1 && item.button.name === 'Clear ID', |
| | | 'A01jiting':item.button.value === 0 && item.button.name === 'A01Abort/ResumeTasks', |
| | | 'A02jiting':item.button.value === 0 && item.button.name === 'A02Abort/ResumeTasks', |
| | | 'emgHMI':item.button.value === 0 && item.button.name === 'emgHMI', |
| | | 'GA01jiting':item.button.value ===1 && item.button.name === 'A01Abort/ResumeTasks', |
| | | 'GA02jiting':item.button.value === 1 && item.button.name === 'A02Abort/ResumeTasks', |
| | | 'GemgHMI':item.button.value === 1 && item.button.name === 'emgHMI' |
| | | |
| | | }" |
| | | >{{ item.button.name }}</el-button |
| | | > |
| | |
| | | item.button.value === 2 && item.button.name !== '清除ID', |
| | | 'yellow-button': |
| | | item.button.value === 1 && item.button.name !== '清除ID', |
| | | id: item.button.value === 1 && item.button.name === '清除ID', |
| | | 'id': item.button.value === 1 && item.button.name === '清除ID', |
| | | 'A01jiting':item.button.value === 0 && item.button.name === 'A01终止/继续', |
| | | 'A02jiting':item.button.value === 0 && item.button.name === 'A02终止/继续', |
| | | 'emgHMI':item.button.value === 0 && item.button.name === '软急停', |
| | | 'GA01jiting':item.button.value === 1 && item.button.name === 'A01终止/继续', |
| | | 'GA02jiting':item.button.value === 1 && item.button.name === 'A02终止/继续', |
| | | 'GemgHMI':item.button.value === 1 && item.button.name === '软急停' |
| | | |
| | | }" |
| | | >{{ item.button.name }}</el-button |
| | | > |
| | |
| | | const jsonString = JSON.stringify(jsonObject); |
| | | console.log("发送的内容:", jsonString); |
| | | socket?.send(jsonString); |
| | | }, 2000); |
| | | }, 1000); |
| | | |
| | | } |
| | | |
| | |
| | | currentButtonName === "A01Abort/ResumeTasks" || |
| | | currentButtonName === "A01终止/继续" || |
| | | currentButtonName === "A02Abort/ResumeTasks" || |
| | | currentButtonName === "A02终止/继续" |
| | | currentButtonName === "A02终止/继续" || |
| | | currentButtonName === "软急停" || |
| | | currentButtonName === "emgHMI" |
| | | ) { |
| | | const data3 = []; |
| | | const resetButtonValues3 = [this.jsonData[13][0].button.value2,this.jsonData[14][0].button.value2]; |
| | | const resetButtonValues3 = [this.jsonData[13][0].button.value2,this.jsonData[14][0].button.value2,this.jsonData[16][0].button.value2]; |
| | | |
| | | // 将得到的值添加到 data 数组中 |
| | | data3.push(resetButtonValues3.flat()); |
| | |
| | | const jsonString3 = JSON.stringify(jsonObject3); |
| | | console.log("急停后中止/继续选择:", jsonString3); |
| | | socket?.send(jsonString3); |
| | | |
| | | setTimeout(() => { |
| | | const jsonObject = { data: [ [],[0, 0, 0], []] }; |
| | | const jsonString = JSON.stringify(jsonObject); |
| | | console.log("发送的回弹内容:", jsonString); |
| | | socket?.send(jsonString); |
| | | }, 1000); |
| | | |
| | | |
| | | |
| | | // setTimeout(()=> |
| | | // window.location.reload(),2000 |
| | | // ) |
| | |
| | | //急停按钮 |
| | | jsonData2[13][0].button.value = obj.jiting[0][0]; |
| | | jsonData2[14][0].button.value = obj.jiting[0][1]; |
| | | jsonData2[16][0].button.value = obj.jiting[0][2]; |
| | | |
| | | |
| | | |
| | |
| | | .id { |
| | | background-color: green; |
| | | } |
| | | .A02jiting{ |
| | | |
| | | background-color: #66b1ff; |
| | | } |
| | | .A01jiting{ |
| | | |
| | | background-color: #66b1ff; |
| | | } |
| | | .emgHMI{ |
| | | |
| | | background-color: #66b1ff; |
| | | } |
| | | .GA02jiting{ |
| | | |
| | | background-color: green; |
| | | } |
| | | .GA01jiting{ |
| | | background-color: green; |
| | | } |
| | | .GemgHMI{ |
| | | background-color: green; |
| | | } |
| | | </style> |