1.处理机械分厂一级大屏打开15秒后出现的报错

2.处理厂内二级设备页面打开后产生的报错
This commit is contained in:
15133876896-BGG25 2023-05-17 15:53:09 +08:00
parent a61aaa8481
commit 439854ccb0
7 changed files with 19 additions and 17 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wang-vue-worke:\demo\daping\src\components\borderBox\border1.vue * @FilePath: \gitscreenFront\src\components\borderBox\border1.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-01-30 13:47:15 * @Date: 2023-01-30 13:47:15

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wwwd:\code\screenFront\src\components\headerBox\header2.vue * @FilePath: \gitscreenFront\src\components\headerBox\header2.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-02-16 11:04:06 * @Date: 2023-02-16 11:04:06
@ -184,6 +184,7 @@ async function getAlarmListDatafun(){
if (result.code == 200) { if (result.code == 200) {
storeheader.setDataList(result); storeheader.setDataList(result);
} }
} }
// //
@ -237,9 +238,12 @@ function setAlarmscrollBoardList(){
end = end + 5 end = end + 5
start = i >= 5 ? 5 : storeheader.AlarmscrollBoardList.length - 1 start = i >= 5 ? 5 : storeheader.AlarmscrollBoardList.length - 1
start<=0?start=0:''
}, 1000) }, 1000)
AlarmscrollTime=setInterval(()=>{ AlarmscrollTime=setInterval(()=>{
if (i==0) { if (i==0) {
listdata.data=[] listdata.data=[]
} }
@ -247,15 +251,16 @@ function setAlarmscrollBoardList(){
if(storeheader.AlarmscrollBoardList.length==0){ if(storeheader.AlarmscrollBoardList.length==0){
return return
} }
if(storeheader.AlarmscrollBoardList.length-1<end){
// console.log('1');
if(storeheader.AlarmscrollBoardList.length-1<end){
end=storeheader.AlarmscrollBoardList.length-1 end=storeheader.AlarmscrollBoardList.length-1
} }
for(start;start<=end;start++){ for(start;start<=end;start++){
// console.log(storeheader.AlarmscrollBoardList[start],start,end); // console.log(storeheader.AlarmscrollBoardList[start],start,end);
// console.log(storeheader.AlarmscrollBoardList.length-1); // console.log(storeheader.AlarmscrollBoardList.length-1);
let listcontent = storeheader.AlarmscrollBoardList[start]?.context.split('') let listcontent = storeheader.AlarmscrollBoardList[start]?.context.split('')
listdata.data.push(...[[listcontent[0]],[listcontent[1]]]) listdata.data.push(...[[listcontent[0]],[listcontent[1]]])
} }
changeAbnormalData(listdata) changeAbnormalData(listdata)

View File

@ -22,7 +22,6 @@
<dv-scroll-board <dv-scroll-board
ref="devList" ref="devList"
:config="value" :config="value"
:key="detailslistSize.width"
@click="dvClick" @click="dvClick"
@mouseover="dvMouseover" @mouseover="dvMouseover"
@mouseend="dvmouseleave" @mouseend="dvmouseleave"

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wwwd:\code\screenFront\src\views\InPlantProducts\child\component\header1.vue * @FilePath: \gitscreenFront\src\views\InPlantProducts\child\component\header1.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-02-17 11:05:00 * @Date: 2023-02-17 11:05:00
@ -8,15 +8,14 @@
* 版权信息 : 2023 by ${再登软件}, All Rights Reserved. * 版权信息 : 2023 by ${再登软件}, All Rights Reserved.
--> -->
<template> <template>
<div class="header1" :style="{ width: props.width, height: props.height }"> <div class="header1" :style="{ width: props.width + 'px', height: props.height + 'px' }">
<div> <div>
<h2>{{t('messages.DebugProgress')}}</h2> <h2>{{t('messages.DebugProgress')}}</h2>
</div> </div>
<dv-percent-pond <dv-percent-pond
ref="progress" ref="progress"
:config="config" :config="config"
:key="props.width" :style="{ width: props.width + 'px', height: props.height/10*4 + 'px' }"
:style="{ width: '100%', height: '40%' }"
/> />
<div class="comeBack" @click="comeBackFun"> <div class="comeBack" @click="comeBackFun">
<i class="iconfont icon-back"></i> <i class="iconfont icon-back"></i>
@ -33,8 +32,8 @@ let {t} = useI18n();
const store = useInPlantProductsStore(); const store = useInPlantProductsStore();
const router=useRouter() const router=useRouter()
let props = defineProps<{ let props = defineProps<{
width: string; width: number;
height: string; height: number;
title: String; title: String;
}>(); }>();
let progress=ref() let progress=ref()

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wwwd:\code\screenFront\src\views\InPlantProducts\child\component\origin.vue * @FilePath: \gitscreenFront\src\views\InPlantProducts\child\component\origin.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-02-16 11:51:32 * @Date: 2023-02-16 11:51:32
@ -19,7 +19,6 @@
<dv-scroll-board <dv-scroll-board
ref="devList" ref="devList"
:config="value" :config="value"
:key="originlistSize.width"
:style="{ :style="{
width: originlistSize.width, width: originlistSize.width,
height: originlistSize.height, height: originlistSize.height,

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wwwd:\code\screenFront\src\views\InPlantProducts\child\component\toptip.vue * @FilePath: \gitscreenFront\src\views\InPlantProducts\child\component\toptip.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-02-16 11:51:32 * @Date: 2023-02-16 11:51:32

View File

@ -1,5 +1,5 @@
<!-- <!--
* @FilePath: \wwwd:\code\screenFront\src\views\InPlantProducts\child\index.vue * @FilePath: \gitscreenFront\src\views\InPlantProducts\child\index.vue
* @Author: 王路平 * @Author: 王路平
* @文件版本: V1.0.0 * @文件版本: V1.0.0
* @Date: 2023-02-17 15:04:50 * @Date: 2023-02-17 15:04:50
@ -12,8 +12,8 @@
<div class="header"> <div class="header">
<div class="title"> <div class="title">
<header1 <header1
:width="size.oWidth*3 + 'px'" :width="size.oWidth*3"
:height="'100px'" :height="100"
:title="'67'" :title="'67'"
></header1> ></header1>
</div> </div>