| | |
| | | height: 15px;
|
| | | position: absolute;
|
| | | }
|
| | |
|
| | | </style>
|
| | | <template>
|
| | | <el-container>
|
| | |
| | | <div class="box" @click="dialogFormVisible2 = true">
|
| | | <div class="text">
|
| | | <!-- Alarm: -->
|
| | | {{ this.text }}
|
| | | {{ this.text }}{{this.plc1}}{{this.plc2}}
|
| | | <label v-for="item in this.alarm" :key="item['id']">
|
| | | {{ item['content'] }}
|
| | | </label>
|
| | |
| | | count2: 1,
|
| | | loadname: "",
|
| | | form6state:0,
|
| | | StateColor:"green"
|
| | | StateColor:"green",
|
| | | plc1:"",
|
| | | plc2:""
|
| | | };
|
| | | },
|
| | | created() {
|
| | | this.load();
|
| | | // setInterval(() => {
|
| | | // if(this.count1<this.count2){
|
| | | // this.count1=this.count2;
|
| | | // }else{
|
| | | // const now = new Date();
|
| | | // console.log(now);
|
| | | // alert("websocket停止"+now);
|
| | | // }
|
| | | // }, 3000);
|
| | | setInterval(() => {
|
| | | if(this.count1<this.count2){
|
| | | this.count1=this.count2;
|
| | | }else{
|
| | | const now = new Date();
|
| | | console.log(this.count1,this.count2);
|
| | | alert(this.$t('Mes Connection failed')+now);
|
| | | }
|
| | | }, 30000);
|
| | | },
|
| | | activated() {
|
| | | this.init();
|
| | |
| | | // this.car1 = 210 + 11.25 * (obj.params[0][1]-this.carlist[1]['start'])/(this.carlist[1]['end']-this.carlist[1]['start'])*100;
|
| | | // this.car2 = 300 + 11.25 * (obj.params[0][1]-this.carlist[1]['start'])/(this.carlist[1]['end']-this.carlist[1]['start'])*100;
|
| | | }
|
| | | if (obj.Plc1 != null) {
|
| | | this.plc1=this.$t('Plc1 Connection failed');
|
| | | }
|
| | | if (obj.Plc2 != null) {
|
| | | this.plc2=this.$t('Plc2 Connection failed');
|
| | | }
|
| | |
|
| | | this.tableData = obj.tableData[0];
|
| | | this.cagelist1 = obj.cagelist1[0];
|