Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
server
Overview
Overview
Details
Activity
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
changsanjiao
server
Commits
7c5c18c9
Commit
7c5c18c9
authored
Nov 12, 2021
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3558d5ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
qyehPage.ts
src/biz/qyehPage.ts
+1
-1
tools.ts
src/util/tools.ts
+1
-0
No files found.
src/biz/qyehPage.ts
View file @
7c5c18c9
...
...
@@ -85,7 +85,7 @@ export function getData(req, res) {
ret
[
"api22"
]
=
{
title
:
"图片"
,
data
:{
"img1"
:
"img/qyrh1.png"
,
"img2"
:
"img/qyrh2.
png
"
"img2"
:
"img/qyrh2.
gif
"
}
};
ret
[
"api23"
]
=
getListData
(
"检修计划"
,
excelData
.
调度日志
_
检修计划
,
[
"序号"
,
"区域"
,
"工作内容"
,
"日期"
],{
"序号"
:
"number"
,
"区域"
:
"area"
,
"工作内容"
:
"info"
,
"日期"
:
"time"
});
...
...
src/util/tools.ts
View file @
7c5c18c9
...
...
@@ -133,6 +133,7 @@ export function getKeyValue(title, dataMap, unit, total, percent ) {
count
+=
value
;
if
(
total
)
data
.
total
+=
value
;
}
data
.
total
=
parseInt
(
`
${
data
.
total
}
`
)
for
(
let
key
in
dataMap
)
{
let
thisUnit
=
""
;
if
(
unit
)
{
...
...
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