Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gavelinfo
kwell-mes
Commits
a2a7b819
Commit
a2a7b819
authored
Mar 25, 2022
by
yff
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes
parents
20353c2f
00175e04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
38 deletions
+112
-38
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+9
-9
index.html
...l/src/main/resources/templates/views/kmes/gpjy/index.html
+51
-14
index.html
...l/src/main/resources/templates/views/kmes/gpwx/index.html
+52
-15
No files found.
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
a2a7b819
...
@@ -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"
>
2
0
</span></p>
<p><label
for=
""
>
实际人数:
</label><span
id=
"sjrs"
>
0
</span></p>
<p><label
for=
""
>
实际人数:
</label><span
id=
"sjrs"
>
2
0
</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
);
/*日排产达成数据*/
...
...
gavel/src/main/resources/templates/views/kmes/gpjy/index.html
View file @
a2a7b819
...
@@ -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
...
...
gavel/src/main/resources/templates/views/kmes/gpwx/index.html
View file @
a2a7b819
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment