|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="text item" >
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-row style="width: 100%">
|
|
|
|
|
<el-image
|
|
|
|
|
@ -76,9 +76,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
spanStyle:'font-size: 15px;margin-top: 2px;margin-bottom: 2px',
|
|
|
|
|
textStyle:' font-size: 14px;',
|
|
|
|
|
rowNum:6,
|
|
|
|
|
spanStyle: 'font-size: 15px;margin-top: 2px;margin-bottom: 2px',
|
|
|
|
|
textStyle: ' font-size: 14px;',
|
|
|
|
|
rowNum: 6,
|
|
|
|
|
WindowsHeight: 20,
|
|
|
|
|
itemNum: 20,
|
|
|
|
|
socket: null,
|
|
|
|
|
@ -97,12 +97,12 @@ export default {
|
|
|
|
|
watch: {
|
|
|
|
|
rowNum: {
|
|
|
|
|
handler(newValue, oldValue) {
|
|
|
|
|
if(newValue==8){
|
|
|
|
|
this.textStyle='font-size: 9px;'
|
|
|
|
|
this.spanStyle='font-size: 12px;margin-top: 2px;margin-bottom: 2px'
|
|
|
|
|
}else{
|
|
|
|
|
this.textStyle='font-size: 14px;'
|
|
|
|
|
this.spanStyle='font-size: 15px;margin-top: 2px;margin-bottom: 2px'
|
|
|
|
|
if (newValue == 8) {
|
|
|
|
|
this.textStyle = 'font-size: 9px;'
|
|
|
|
|
this.spanStyle = 'font-size: 12px;margin-top: 2px;margin-bottom: 2px'
|
|
|
|
|
} else {
|
|
|
|
|
this.textStyle = 'font-size: 14px;'
|
|
|
|
|
this.spanStyle = 'font-size: 15px;margin-top: 2px;margin-bottom: 2px'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -156,13 +156,12 @@ export default {
|
|
|
|
|
this.socketOnOpen(); //
|
|
|
|
|
this.socketOnError();
|
|
|
|
|
this.socketOnMessage();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
socketOnOpen() {
|
|
|
|
|
this.socket.onopen = () => {
|
|
|
|
|
this.$emit('changeLoading', false)
|
|
|
|
|
this.socketLoading = false
|
|
|
|
|
const _this=this;
|
|
|
|
|
const _this = this;
|
|
|
|
|
this.$emit('reCheckData')
|
|
|
|
|
window.setInterval(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
@ -228,17 +227,15 @@ export default {
|
|
|
|
|
socketOnClose() {
|
|
|
|
|
this.socket.onclose = () => {
|
|
|
|
|
console.log("close socket");
|
|
|
|
|
this.initSocket();
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
socketOnError() {
|
|
|
|
|
this.socket.onerror = () => {
|
|
|
|
|
this.socketIsNoOpen = true;
|
|
|
|
|
const _this = this;
|
|
|
|
|
console.log("socket 链接失败 重新链接");
|
|
|
|
|
this.socketOnClose();
|
|
|
|
|
window.setTimeout(() => {
|
|
|
|
|
_this.initSocket();
|
|
|
|
|
}, 3000)
|
|
|
|
|
this.initSocket();
|
|
|
|
|
console.log("socket 链接失败");
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
@ -272,7 +269,7 @@ export default {
|
|
|
|
|
this.labelName = stanLabelName
|
|
|
|
|
this.logsDialog = true
|
|
|
|
|
},
|
|
|
|
|
sendUntitled(staNo){
|
|
|
|
|
sendUntitled(staNo) {
|
|
|
|
|
let _bar = {"manNo": this.manNo, "command": "Untitled", "staNo": staNo}
|
|
|
|
|
this.socket.send(JSON.stringify(_bar));
|
|
|
|
|
}
|
|
|
|
|
|