Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
diseaseControlManage
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diseaseControlManage-Develop
diseaseControlManage
Commits
1ca0aca3
Commit
1ca0aca3
authored
Sep 25, 2020
by
lihu541
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面数据核对,修改
parent
1981dfee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
6 deletions
+56
-6
src/assets/home.css
+3
-3
src/components/Index.vue
+5
-3
src/components/userJoin/screenTwoPag1.vue
+0
-0
src/utils/common.js
+48
-0
No files found.
src/assets/home.css
View file @
1ca0aca3
...
...
@@ -149,9 +149,9 @@
.table02
td
span
.sp01
{
width
:
90px
;}
.table02
td
i
{
width
:
10px
;}
.table
{
width
:
100%
;
}
.fixedThead
{
display
:
block
;
width
:
100%
;}
.scrollTbody
{
display
:
block
;
height
:
225px
;
overflow
:
auto
;
width
:
100%
;
}
.table
tr
{
display
:
inline-table
;
width
:
100%
;
}
.fixedThead
{
width
:
100%
;}
.scrollTbody
{
height
:
225px
;
overflow
:
auto
;
width
:
100%
;
}
.table
tr
{
width
:
100%
;
}
.table03
{
width
:
100%
;
color
:
#B3BFD2
;}
.table03
td
{
height
:
30px
;}
...
...
src/components/Index.vue
View file @
1ca0aca3
...
...
@@ -12,7 +12,7 @@
<img
height=
"24"
width=
"24"
src=
"../assets/1.png"
>
<p>
慢病管理
</p>
</li>
<li
@
click=
"
popUp
"
>
<li
@
click=
"
toMygh
"
>
<img
height=
"24"
width=
"24"
src=
"../assets/2.png"
>
<p>
免疫规划
</p>
</li>
...
...
@@ -502,6 +502,9 @@
//alert('测试弹窗')
this
.
ispopu
=
!
this
.
ispopu
},
toMygh
(){
location
.
href
=
'/manage-platform/index?token='
+
sessionStorage
.
getItem
(
'token'
)
},
exitFn
()
{
this
.
$router
.
push
({
path
:
'/'
...
...
@@ -590,4 +593,4 @@
.popu
img
{
margin-top
:
193px
;}
#echart2
{
width
:
560px
;
height
:
250px
;
margin-top
:
50px
;}
</
style
>
\ No newline at end of file
</
style
>
src/components/userJoin/screenTwoPag1.vue
View file @
1ca0aca3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/utils/common.js
0 → 100644
View file @
1ca0aca3
/**
* 检查传来的参数是否为空
* @param val
* @returns {Boolean}
*/
export
function
checkIsNull
(
val
)
{
if
(
"undefined"
!==
val
&&
undefined
!==
val
&&
""
!==
val
&&
"null"
!==
val
&&
null
!==
val
)
{
return
false
;
}
else
{
return
true
;
}
}
/**
* @param {string} str
* @returns {string}
*/
export
function
getActiveNum
(
str
)
{
//转化float,后面全是四舍五入
if
(
checkIsNull
(
str
)
||
str
==
"NaN"
||
str
==
"Infinity"
||
str
==
"-"
||
isNaN
(
str
))
{
return
"-"
;
}
else
{
var
num
=
parseFloat
(
str
);
if
(
Math
.
abs
(
num
)
<
0.004
)
{
//处理绝对值小于0.01的
num
=
num
.
toPrecision
(
1
);
}
else
if
(
Math
.
abs
(
num
)
<
0.1
)
{
//处理绝对值小于0.1的
num
=
num
.
toFixed
(
2
);
}
else
if
((
Math
.
abs
(
num
)
>=
0.1
)
&&
(
Math
.
abs
(
num
)
<=
0.995
))
{
//处理绝对值大于等于0.1小于等于0.995的
num
=
num
.
toPrecision
(
2
);
}
else
if
(
Math
.
abs
(
num
)
>=
999.5
)
{
//处理绝对值大于等于999.5的
num
=
num
.
toFixed
(
0
);
}
else
if
(
Math
.
abs
(
num
)
<
1
){
num
=
Math
.
floor
(
num
*
100
)
/
100
}
else
{
num
=
num
.
toPrecision
(
3
);
}
return
num
;
}
}
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