| | |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("Sign") }}</router-link |
| | | >{{ $t("I/O") }}</router-link |
| | | > |
| | | <router-link |
| | | to="/Electrical/Servomanual" |
| | |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("Automatic State") }}</router-link |
| | | >{{ $t("Glass Data") }}</router-link |
| | | > |
| | | <!-- <router-link |
| | | to="/Electrical/ManualJog" |
| | |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("ManualonePosition") }}</router-link |
| | | >{{ $t("Manual Control") }}</router-link |
| | | > |
| | | |
| | | <router-link |
| | | to="/Electrical/Servomanualone" |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | active-class="blue-button" v-show="false" |
| | | >{{ $t("Servomanualone") }}</router-link |
| | | > |
| | | <!-- <router-link to="/Electrical/Parameter1" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter1') |
| | |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("Address parameter settings") }}</router-link |
| | | >{{ $t("Cage Positions") }}</router-link |
| | | > |
| | | <!-- <router-link to="/Electrical/Positioning2" tag="el-button" type="text" active-class="blue-button">{{ |
| | | $t('Positioning2') |
| | |
| | | tag="el-button" |
| | | type="text" |
| | | active-class="blue-button" |
| | | >{{ $t("InteractionState") }}</router-link |
| | | >{{ $t("PLC-MES Info") }}</router-link |
| | | > |
| | | </el-breadcrumb> |
| | | |
| | |
| | | 'error-button': |
| | | item.button.name === 'Fault' && item.button.value === 1, |
| | | 'error-button2': |
| | | item.button.name === 'NotZero' && item.button.value === 1, |
| | | item.button.name === 'Homing Failure' && item.button.value === 1, |
| | | 'error-button3': |
| | | item.button.name === 'Zero' && item.button.value === 0, |
| | | item.button.name === 'Homing Complete' && item.button.value === 0, |
| | | fuwei: |
| | | item.button.name === 'Reset' && item.button.value === 1, |
| | | huiling: |
| | |
| | | item.button.name === 'Abort/ResumeTasks' && |
| | | item.button.value === 1, |
| | | yihuiling: |
| | | item.button.name === 'Zero' && item.button.value === 1, |
| | | item.button.name === 'Homing Complete' && item.button.value === 1, |
| | | }" |
| | | @click=" |
| | | updateButtonValue(dataGroup, itemIndex); |
| | |
| | | }, |
| | | |
| | | activated() { |
| | | document.body.style.zoom = "90%"; |
| | | this.initWebSocket(); |
| | | const language = this.$i18n.locale; |
| | | // console.log(language); |
| | |
| | | // console.log(jsonData2[5][4].button.value) |
| | | if ( |
| | | jsonData2[2][3].button.value === 0 && |
| | | (jsonData2[2][3].button.name === "NotZero" || |
| | | (jsonData2[2][3].button.name === "Homing Failure" || |
| | | jsonData2[2][3].button.name === "未回零") |
| | | ) { |
| | | jsonData2[2][3].button.name = jsonData2[2][3].button.name.replace( |
| | |
| | | "已回零" |
| | | ); |
| | | jsonData2[2][3].button.name = jsonData2[2][3].button.name.replace( |
| | | "NotZero", |
| | | "Zero" |
| | | "Homing Failure", |
| | | "Homing Complete" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[3][3].button.value === 0 && |
| | | (jsonData2[3][3].button.name === "NotZero" || |
| | | (jsonData2[3][3].button.name === "Homing Failure" || |
| | | jsonData2[3][3].button.name === "未回零") |
| | | ) { |
| | | jsonData2[3][3].button.name = jsonData2[3][3].button.name.replace( |
| | |
| | | "已回零" |
| | | ); |
| | | jsonData2[3][3].button.name = jsonData2[3][3].button.name.replace( |
| | | "NotZero", |
| | | "Zero" |
| | | "Homing Failure", |
| | | "Homing Complete" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[4][4].button.value === 0 && |
| | | (jsonData2[4][4].button.name === "NotZero" || |
| | | (jsonData2[4][4].button.name === "Homing Failure" || |
| | | jsonData2[4][4].button.name === "未回零") |
| | | ) { |
| | | jsonData2[4][4].button.name = jsonData2[4][4].button.name.replace( |
| | |
| | | "已回零" |
| | | ); |
| | | jsonData2[4][4].button.name = jsonData2[4][4].button.name.replace( |
| | | "NotZero", |
| | | "Zero" |
| | | "Homing Failure", |
| | | "Homing Complete" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[5][4].button.value === 0 && |
| | | (jsonData2[5][4].button.name === "NotZero" || |
| | | (jsonData2[5][4].button.name === "Homing Failure" || |
| | | jsonData2[5][4].button.name === "未回零") |
| | | ) { |
| | | jsonData2[5][4].button.name = jsonData2[5][4].button.name.replace( |
| | |
| | | "已回零" |
| | | ); |
| | | jsonData2[5][4].button.name = jsonData2[5][4].button.name.replace( |
| | | "NotZero", |
| | | "Zero" |
| | | "Homing Failure", |
| | | "Homing Complete" |
| | | ); |
| | | } |
| | | |
| | | if ( |
| | | jsonData2[2][3].button.value === 1 && |
| | | (jsonData2[2][3].button.name === "Zero" || |
| | | (jsonData2[2][3].button.name === "Homing Complete" || |
| | | jsonData2[2][3].button.name === "已回零") |
| | | ) { |
| | | jsonData2[2][3].button.name = jsonData2[2][3].button.name.replace( |
| | |
| | | "未回零" |
| | | ); |
| | | jsonData2[2][3].button.name = jsonData2[2][3].button.name.replace( |
| | | "Zero", |
| | | "NotZero" |
| | | "Homing Complete", |
| | | "Homing Failure" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[3][3].button.value === 1 && |
| | | (jsonData2[3][3].button.name === "Zero" || |
| | | (jsonData2[3][3].button.name === "Homing Complete" || |
| | | jsonData2[3][3].button.name === "已回零") |
| | | ) { |
| | | jsonData2[3][3].button.name = jsonData2[3][3].button.name.replace( |
| | |
| | | "未回零" |
| | | ); |
| | | jsonData2[3][3].button.name = jsonData2[3][3].button.name.replace( |
| | | "Zero", |
| | | "NotZero" |
| | | "Homing Complete", |
| | | "Homing Failure" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[4][4].button.value === 1 && |
| | | (jsonData2[4][4].button.name === "Zero" || |
| | | (jsonData2[4][4].button.name === "Homing Complete" || |
| | | jsonData2[4][4].button.name === "已回零") |
| | | ) { |
| | | jsonData2[4][4].button.name = jsonData2[4][4].button.name.replace( |
| | |
| | | "未回零" |
| | | ); |
| | | jsonData2[4][4].button.name = jsonData2[4][4].button.name.replace( |
| | | "Zero", |
| | | "NotZero" |
| | | "Homing Complete", |
| | | "Homing Failure" |
| | | ); |
| | | } |
| | | if ( |
| | | jsonData2[5][4].button.value === 1 && |
| | | (jsonData2[5][4].button.name === "Zero" || |
| | | (jsonData2[5][4].button.name === "Homing Complete" || |
| | | jsonData2[5][4].button.name === "已回零") |
| | | ) { |
| | | jsonData2[5][4].button.name = jsonData2[5][4].button.name.replace( |
| | |
| | | "未回零" |
| | | ); |
| | | jsonData2[5][4].button.name = jsonData2[5][4].button.name.replace( |
| | | "Zero", |
| | | "NotZero" |
| | | "Homing Complete", |
| | | "Homing Failure" |
| | | ); |
| | | } |
| | | } |