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
3791ee7c
Commit
3791ee7c
authored
Apr 01, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OA请求接口
parent
77030466
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
api.js
gavel/src/main/resources/static/js/dashboard/api.js
+12
-0
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+2
-1
No files found.
gavel/src/main/resources/static/js/dashboard/api.js
View file @
3791ee7c
...
...
@@ -255,6 +255,18 @@
}
});
}
/* OA */
function
apiqueryOA
(){
HTTP
.
post
(
"queryOA"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
records
||
{}
$
(
"#ydrs"
).
text
(
data
.
ydrs
||
0
)
$
(
"#sdrs"
).
text
(
data
.
ydrs
||
0
)
}
else
{
console
.
log
(
"请求失败"
)
}
});
}
/* pdf */
function
getPdf
(
time
){
pdfshow
(
"getPdf"
,
"gylct"
,
time
||
20000
)
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
3791ee7c
...
...
@@ -71,7 +71,7 @@
<div
class=
"list clearfix"
>
<div
class=
"listTxt"
>
<p><label
for=
""
>
应到人数:
</label><span
id=
"ydrs"
>
20
</span></p>
<p><label
for=
""
>
实际人数:
</label><span
id=
"s
j
rs"
>
20
</span></p>
<p><label
for=
""
>
实际人数:
</label><span
id=
"s
d
rs"
>
20
</span></p>
<p><label
for=
""
>
休假人数:
</label><span
id=
"xjrs"
>
0
</span>
</p>
<p><label
for=
""
>
总生产量:
</label><span
id=
"zscl"
>
0
</span></p>
</div>
...
...
@@ -394,6 +394,7 @@
}
/* 调用 */
function
getAlldata
(){
apiqueryOA
()
apigetscts
(
$
(
"#aqscts"
))
apiCurProZtsl
(
chartTzzp
)
apisetRpcHglEchart
(
chartRpcdcsj
,
'rcl'
)
...
...
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