Commit 00175e04 authored by 李苏's avatar 李苏 💬

大屏变更,检验看板,维修看板改样式,未验证

parent ddd5d6d5
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<div class="center-left fl"> <div class="center-left fl">
<div class="left-top rightTop border"> <div class="left-top rightTop border">
<div class="title">工艺流程图</div> <div class="title">工艺流程图</div>
<div class="chat"> <div class="chat" style="margin-top: 20px;height: 2.5rem;">
<canvas id="gylct" style="width: 100%;height: 100%"></canvas> <canvas id="gylct" style="width: 100%;height: 100%"></canvas>
</div> </div>
</div> </div>
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
<div class="allnav banner"> <div class="allnav banner">
<div class="list clearfix"> <div class="list clearfix">
<div class="listTxt"> <div class="listTxt">
<p><label for="">应到人数:</label><span id="ydrs">0</span></p> <p><label for="">应到人数:</label><span id="ydrs">20</span></p>
<p><label for="">实际人数:</label><span id="sjrs">0</span></p> <p><label for="">实际人数:</label><span id="sjrs">20</span></p>
<p><label for="">休假人数:</label><span id="xjrs">0</span> </p> <p><label for="">休假人数:</label><span id="xjrs">0</span> </p>
<p><label for="">总生产量:</label><span id="zscl">0</span></p> <p><label for="">总生产量:</label><span id="zscl">0</span></p>
</div> </div>
...@@ -367,12 +367,12 @@ ...@@ -367,12 +367,12 @@
}); });
// var myChartSdcl = echarts.init(document.getElementById('chartSdcl')); // var myChartSdcl = echarts.init(document.getElementById('chartSdcl'));
var chartRpcdcsj=echarts.init(document.getElementById("chartRpcdcsj")); var chartRpcdcsj=echarts.init(document.getElementById("chartRpcdcsj"),null, {renderer: 'svg'});
var chartHgl=echarts.init(document.getElementById("chartHgl")); var chartHgl=echarts.init(document.getElementById("chartHgl"),null, {renderer: 'svg'});
var chartRjh=echarts.init(document.getElementById("chartRjh")); var chartRjh=echarts.init(document.getElementById("chartRjh"),null, {renderer: 'svg'});
var chartYjh=echarts.init(document.getElementById("chartYjh")); var chartYjh=echarts.init(document.getElementById("chartYjh"),null, {renderer: 'svg'});
var chartJdshCirle=echarts.init(document.getElementById("chartJdshCirle")); var chartJdshCirle=echarts.init(document.getElementById("chartJdshCirle"),null, {renderer: 'svg'});
var chartTzzp=echarts.init(document.getElementById("chartzzp")); var chartTzzp=echarts.init(document.getElementById("chartzzp"),null, {renderer: 'svg'});
setproduceEchart(chartTzzp)/* 在制品状态 */ setproduceEchart(chartTzzp)/* 在制品状态 */
// oaechart(myChartSdcl); /*oa*/ // oaechart(myChartSdcl); /*oa*/
setRclHglEchart(chartRpcdcsj); /*日排产达成数据*/ setRclHglEchart(chartRpcdcsj); /*日排产达成数据*/
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
}) })
/* 通用代码 */ /* 通用代码 */
const pdfUr="kmes/gpfk/queryPdfByWoidAndZpgx" const pdfUr="kmes/gpfk/queryPdfByWoidAndZpgx"
var urlo="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/O"
var urlt="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/T"
var urlm="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/M"
/* 初始化工序 */ /* 初始化工序 */
function jyfk_getgx(e){ function jyfk_getgx(e){
let that=e let that=e
...@@ -179,16 +182,16 @@ ...@@ -179,16 +182,16 @@
function jyfk_pdfshow(e,woid){ function jyfk_pdfshow(e,woid){
let that=e let that=e
let newpdfurl=pdfUr+"/"+woid+"/"+window.bzlx let newpdfurl=pdfUr+"/"+woid+"/"+window.bzlx
that.pdf="" // that.pdf=""
if (newpdfurl!=that.pdfurl){ // if (newpdfurl!=that.pdfurl){
that.pdfurl=newpdfurl // that.pdfurl=newpdfurl
if(that.sivpdf){ // if(that.sivpdf){
clearInterval(that.sivpdf) // clearInterval(that.sivpdf)
} // }
pdfshow(that.pdfurl, that.pdfdom, 10000).then(e => { // pdfshow(that.pdfurl, that.pdfdom, 10000).then(e => {
that.sivpdf = e // that.sivpdf = e
}) // })
} // }
} }
</script> </script>
...@@ -204,7 +207,7 @@ ...@@ -204,7 +207,7 @@
</ul> </ul>
</div> </div>
<!-- 左侧信息条 --> <!-- 左侧信息条 -->
<div class="left"> <div class="left" style="width: 30%;">
<!-- 左上信息表 --> <!-- 左上信息表 -->
<div class="cbinfor"> <div class="cbinfor">
<div class="cpif"> <div class="cpif">
...@@ -261,9 +264,20 @@ ...@@ -261,9 +264,20 @@
</div> </div>
</div> </div>
<!-- 右侧信息pdf --> <!-- 右侧信息pdf -->
<div class="right"> <div class="right" style="width: 45%;">
<canvas id="gpjypdf" class="rightPdf"></canvas> <canvas id="gpjypdf" class="rightPdf"></canvas>
</div> </div>
<!-- new右侧 -->
<div class="right" style="width: 25%;">
<div style="height: 50%;overflow: hidden;">
<video width="100%" height="100%" :src="urlm" controls muted autoplay="autoplay" loop="loop">
</video>
</div>
<div ref="scrollmain" style="height: 50%;overflow: auto;border-bottom: 1px solid #EEEEEE;">
<canvas id="gpjyrpdf" ref="scroll" style="width: 100%;height: 160%;" ></canvas>
</div>
</div>
</div> </div>
<!-- 界面5 --> <!-- 界面5 -->
<div id="kwrkb05" style="display: none;"> <div id="kwrkb05" style="display: none;">
...@@ -430,6 +444,7 @@ ...@@ -430,6 +444,7 @@
dbenlarge('kwrkb04',1,this.isFocus()) dbenlarge('kwrkb04',1,this.isFocus())
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
this.scroll()
this.gettime() this.gettime()
this.appdestory() this.appdestory()
}, },
...@@ -437,9 +452,12 @@ ...@@ -437,9 +452,12 @@
clearInterval(this.sivdestory) clearInterval(this.sivdestory)
clearInterval(this.sivpdf) clearInterval(this.sivpdf)
clearInterval(this.sivtimer) clearInterval(this.sivtimer)
clearInterval(this.sivrpdf)
clearInterval(this.sivscroll)
}, },
data:function(){ data:function(){
return{ return{
urlm:urlm,
fksl:0, fksl:0,
isok:"", isok:"",
username:localStorage.getItem("username"), username:localStorage.getItem("username"),
...@@ -458,11 +476,30 @@ ...@@ -458,11 +476,30 @@
tabdata:[], tabdata:[],
sivtimer:null,//时间计数器 sivtimer:null,//时间计数器
sivpdf:null, sivpdf:null,
sivdestory:null sivdestory:null,
sivrpdf:null,
sivscroll:null
} }
}, },
methods:{ methods:{
scroll(){
/* test */
pdfshow(urlo,'gpjypdf', 10000).then(e => {
that.sivpdf = e
})
/* test */
pdfshow(urlt,'gpjyrpdf', 10000).then(e => {
that.sivrpdf = e
})
const mainData=this.$refs.scrollmain
const divData =this.$refs.scroll
this.sivscroll=setInterval(() => {
mainData.scrollTop += 1
if (mainData.clientHeight + mainData.scrollTop+10 > mainData.scrollHeight) {
mainData.scrollTop = 0
}
}, 100)
},
// 扫码接口 // 扫码接口
apiscanxlh(){ apiscanxlh(){
let that=this let that=this
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
}) })
/* 通用代码 */ /* 通用代码 */
const pdfUr="kmes/gpfk/queryPdfByWoidAndZpgx" const pdfUr="kmes/gpfk/queryPdfByWoidAndZpgx"
var urlo="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/O"
var urlt="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/T"
var urlm="kmes/gpfkfj/queryFjBybzgx/"+window.bzlx+"/M"
/* 初始化工序 */ /* 初始化工序 */
function wxfk_getgx(e){ function wxfk_getgx(e){
let that=e let that=e
...@@ -89,16 +92,16 @@ ...@@ -89,16 +92,16 @@
function wxfk_pdfshow(e,woid){ function wxfk_pdfshow(e,woid){
let that=e let that=e
let newpdfurl=pdfUr+"/"+woid+"/"+window.bzlx let newpdfurl=pdfUr+"/"+woid+"/"+window.bzlx
that.pdf="" // that.pdf=""
if (newpdfurl!=that.pdfurl){ // if (newpdfurl!=that.pdfurl){
that.pdfurl=newpdfurl // that.pdfurl=newpdfurl
if(that.sivpdf){ // if(that.sivpdf){
clearInterval(that.sivpdf) // clearInterval(that.sivpdf)
} // }
pdfshow(that.pdfurl, that.pdfdom, 10000).then(e => { // pdfshow(that.pdfurl, that.pdfdom, 10000).then(e => {
that.sivpdf = e // that.sivpdf = e
}) // })
} // }
} }
/* 反馈技计数 */ /* 反馈技计数 */
function wxfk_apigetjs(s){ function wxfk_apigetjs(s){
...@@ -204,7 +207,7 @@ ...@@ -204,7 +207,7 @@
</ul> </ul>
</div> </div>
<!-- 左侧信息条 --> <!-- 左侧信息条 -->
<div class="left"> <div class="left" style="width: 30%;">
<!-- 左上信息表 --> <!-- 左上信息表 -->
<div class="cbinfor"> <div class="cbinfor">
<div class="cpif"> <div class="cpif">
...@@ -261,8 +264,19 @@ ...@@ -261,8 +264,19 @@
</div> </div>
</div> </div>
<!-- 右侧信息pdf --> <!-- 右侧信息pdf -->
<div class="right"> <div class="right" style="width: 45%;">
<canvas id="gpjypdf" class="rightPdf"></canvas> <canvas id="gpwxpdf" class="rightPdf"></canvas>
</div>
<!-- new右侧 -->
<div class="right" style="width: 25%;">
<div style="height: 50%;overflow: hidden;">
<video width="100%" height="100%" :src="urlm" controls muted autoplay="autoplay" loop="loop">
</video>
</div>
<div ref="scrollmain" style="height: 50%;overflow: auto;border-bottom: 1px solid #EEEEEE;">
<canvas id="gpwxrpdf" ref="scroll" style="width: 100%;height: 160%;" ></canvas>
</div>
</div> </div>
</div> </div>
<!-- 界面5 --> <!-- 界面5 -->
...@@ -430,15 +444,19 @@ ...@@ -430,15 +444,19 @@
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
this.gettime() this.gettime()
this.scroll()
this.appdestory() this.appdestory()
}, },
destroyed() { destroyed() {
clearInterval(this.sivdestory) clearInterval(this.sivdestory)
clearInterval(this.sivpdf) clearInterval(this.sivpdf)
clearInterval(this.sivtimer) clearInterval(this.sivtimer)
clearInterval(this.sivscroll)
clearInterval(this.sivrpdf)
}, },
data:function(){ data:function(){
return{ return{
urlm:urlm,
fksl:0, fksl:0,
isok:"", isok:"",
username:localStorage.getItem("username"), username:localStorage.getItem("username"),
...@@ -457,11 +475,30 @@ ...@@ -457,11 +475,30 @@
tabdata:[], tabdata:[],
sivtimer:null,//时间计数器 sivtimer:null,//时间计数器
sivpdf:null, sivpdf:null,
sivdestory:null sivdestory:null,
sivscroll:null,
sivrpdf:null
} }
}, },
methods:{ methods:{
scroll(){
/* test */
pdfshow(urlo,'gpwxpdf', 10000).then(e => {
that.sivpdf = e
})
/* test */
pdfshow(urlt,'gpwxrpdf', 10000).then(e => {
that.sivrpdf = e
})
const mainData=this.$refs.scrollmain
const divData =this.$refs.scroll
this.sivscroll=setInterval(() => {
mainData.scrollTop += 1
if (mainData.clientHeight + mainData.scrollTop+10 > mainData.scrollHeight) {
mainData.scrollTop = 0
}
}, 100)
},
// 扫码接口 // 扫码接口
apiscanxlh(){ apiscanxlh(){
let that=this let that=this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment