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
630f0b7d
Commit
630f0b7d
authored
Sep 09, 2020
by
lihu541
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不同角色登录,显示内容修改
parent
f5f885f4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
26 deletions
+69
-26
src/App.vue
+3
-1
src/api/home.js
+24
-1
src/api/userlogin.js
+3
-1
src/assets/home.css
+6
-4
src/components/Home.vue
+0
-0
src/components/UserLogin.vue
+16
-2
src/components/userJoin/screenTwoPag1.vue
+17
-17
No files found.
src/App.vue
View file @
630f0b7d
...
@@ -11,5 +11,7 @@ export default {
...
@@ -11,5 +11,7 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
#app
{
background
:
-webkit-linear-gradient
(
top
,
#272e52
,
#171c30
);
}
</
style
>
</
style
>
src/api/home.js
View file @
630f0b7d
...
@@ -2,10 +2,33 @@ import request from '@/utils/request'
...
@@ -2,10 +2,33 @@ import request from '@/utils/request'
/****
/****
*首页接口
*首页接口
******/
******/
const
webUrl
=
'http://223.166.12.29:8999/diseaseControlManage/'
;
const
webUrl
=
'http://192.168.3.4:168/fyglAPP/'
;
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/';
//公用接口
//公用接口
export
function
commonMethod
(
param
)
{
export
function
commonMethod
(
param
)
{
let
_wd
=
JSON
.
parse
(
param
.
wd
);
if
(
_wd
.
length
>
0
){
for
(
var
i
=
0
;
i
<
_wd
.
length
;
i
++
){
if
(
_wd
[
i
]){
//如果是compare=eq,则不需要处理,
if
(
"YWSJ"
==
_wd
[
i
].
name
){
//如果结束时间没有,取当前年,如果开始时间没有,取年第一个月
let
endTime
=
_wd
[
i
].
endTime
?
_wd
[
i
].
endTime
:
(
new
Date
).
getFullYear
()
let
startTime
=
_wd
[
i
].
startTime
?
_wd
[
i
].
startTime
:
(
endTime
.
split
(
"-"
)[
0
]
+
"-01"
)
_wd
[
i
].
endTime
=
endTime
;
_wd
[
i
].
startTime
=
startTime
;
_wd
[
i
].
compare
=
"between"
;
}
}
}
param
.
wd
=
_wd
}
return
request
({
return
request
({
url
:
webUrl
+
'api/common/queryTheme'
,
url
:
webUrl
+
'api/common/queryTheme'
,
method
:
'post'
,
method
:
'post'
,
...
...
src/api/userlogin.js
View file @
630f0b7d
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
//登录、修改密码
//登录、修改密码
const
webUrl
=
'http://223.166.12.29:8999/diseaseControlManage/'
;
const
webUrl
=
'http://192.168.3.4:168/fyglAPP/'
;
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/';
export
function
login
(
loginID
,
loginPas
)
{
export
function
login
(
loginID
,
loginPas
)
{
return
request
({
return
request
({
url
:
webUrl
+
'api/login/doLogin'
,
url
:
webUrl
+
'api/login/doLogin'
,
...
...
src/assets/home.css
View file @
630f0b7d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
.header
.nav
img
{
width
:
30px
;
height
:
30px
;}
.header
.nav
img
{
width
:
30px
;
height
:
30px
;}
.header
.title
{
text-align
:
center
;
line-height
:
40px
;
font-size
:
22px
;
color
:
#CBEDFF
;
font-weight
:
400
;
float
:
left
;
width
:
700px
;}
.header
.title
{
text-align
:
center
;
line-height
:
40px
;
font-size
:
22px
;
color
:
#CBEDFF
;
font-weight
:
400
;
float
:
left
;
width
:
700px
;}
.header
.area
{
float
:
left
;
width
:
100px
;
position
:
relative
;}
.header
.area
{
float
:
left
;
width
:
100px
;
position
:
relative
;}
.header
.area
.areabtn
{
width
:
80px
;
height
:
30px
;
float
:
right
;
border
:
1px
solid
#0261a1
;
padding-right
:
18px
;
padding-left
:
10px
;
background
:
#01609f
;
color
:
#fff
;
text-align
:
center
;
line-height
:
28px
;
font-size
:
14px
;
border-radius
:
5px
;
background
:
#01609e
url(tipdown.png)
no-repeat
60px
center
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;}
.header
.area
.areabtn
{
width
:
80px
;
height
:
30px
;
float
:
right
;
border
:
1px
solid
#0261a1
;
background
:
#01609f
;
color
:
#fff
;
text-align
:
center
;
line-height
:
28px
;
font-size
:
14px
;
border-radius
:
5px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;}
.header
.area
.arealist
{
position
:
absolute
;
right
:
0
;
top
:
36px
;
height
:
236px
;
overflow
:
hidden
;
overflow-y
:
scroll
;
width
:
100px
;
background
:
#00609F
;
color
:
#97B8D5
;
position
:
absolute
;
z-index
:
10
;
border-radius
:
4px
;
padding
:
5px
0
5px
8px
;
}
.header
.area
.arealist
{
position
:
absolute
;
right
:
0
;
top
:
36px
;
height
:
236px
;
overflow
:
hidden
;
overflow-y
:
scroll
;
width
:
100px
;
background
:
#00609F
;
color
:
#97B8D5
;
position
:
absolute
;
z-index
:
10
;
border-radius
:
4px
;
padding
:
5px
0
5px
8px
;
}
.header
.area
.arealist
ul
{}
.header
.area
.arealist
ul
{}
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
.toplinem
.topline
i
.i6
{
background
:
#BCF8C6
}
.toplinem
.topline
i
.i6
{
background
:
#BCF8C6
}
.toplinem
.topline
i
.i7
{
background
:
#8DEDA2
}
.toplinem
.topline
i
.i7
{
background
:
#8DEDA2
}
.thrmain
{
height
:
160px
;
line-height
:
20px
;}
.thrmain
{
height
:
160px
;
line-height
:
20px
;}
.usercontainer
{
background
:
url(./login_Bg1.jpg)
no-repeat
;}
.usercontainer
{
background
:
url(./login_Bg1.jpg)
no-repeat
;
background-size
:
100%
100%
;
}
.thrmain
ul
{
height
:
160px
;
line-height
:
20px
;}
.thrmain
ul
{
height
:
160px
;
line-height
:
20px
;}
.thrmain
ul
li
{
float
:
left
;
width
:
50%
;
color
:
#97B8D5
;
text-align
:
left
;
padding-left
:
10px
;
padding-right
:
10px
;}
.thrmain
ul
li
{
float
:
left
;
width
:
50%
;
color
:
#97B8D5
;
text-align
:
left
;
padding-left
:
10px
;
padding-right
:
10px
;}
.thrmain
ul
li
span
{
float
:
right
;}
.thrmain
ul
li
span
{
float
:
right
;}
...
@@ -126,6 +126,9 @@
...
@@ -126,6 +126,9 @@
.card5main
{
margin-top
:
30px
;
height
:
260px
;
overflow
:
hidden
;
overflow-y
:
scroll
;}
.card5main
{
margin-top
:
30px
;
height
:
260px
;
overflow
:
hidden
;
overflow-y
:
scroll
;}
.card5main2
{
margin-top
:
30px
;
height
:
270px
;
overflow
:
hidden
;}
.card5main2
{
margin-top
:
30px
;
height
:
270px
;
overflow
:
hidden
;}
.table01
{
color
:
#B3BFD2
;}
.table01
{
color
:
#B3BFD2
;}
.table01
::-webkit-scrollbar
{
display
:
none
;
}
.table01
th
{
color
:
#B3BFD2
;
font-weight
:
normal
;
line-height
:
20px
;
padding-bottom
:
5px
;
border-bottom
:
1px
dashed
#3B4453
;}
.table01
th
{
color
:
#B3BFD2
;
font-weight
:
normal
;
line-height
:
20px
;
padding-bottom
:
5px
;
border-bottom
:
1px
dashed
#3B4453
;}
.table01
td
{
color
:
#B3BFD2
;
font-weight
:
normal
;
text-align
:
center
;
line-height
:
29px
;
border-bottom
:
1px
dashed
#3B4453
;}
.table01
td
{
color
:
#B3BFD2
;
font-weight
:
normal
;
text-align
:
center
;
line-height
:
29px
;
border-bottom
:
1px
dashed
#3B4453
;}
.table01
td
.underline
{
text-decoration
:
underline
;}
.table01
td
.underline
{
text-decoration
:
underline
;}
...
@@ -160,4 +163,4 @@
...
@@ -160,4 +163,4 @@
.color1
{
color
:
#42ccff
;}
.color1
{
color
:
#42ccff
;}
.color2
{
color
:
#FF7277
;}
.color2
{
color
:
#FF7277
;}
.color3
{
color
:
#15C436
;}
.color3
{
color
:
#15C436
;}
#color4
{}
#color4
{}
\ No newline at end of file
src/components/Home.vue
View file @
630f0b7d
This diff is collapsed.
Click to expand it.
src/components/UserLogin.vue
View file @
630f0b7d
...
@@ -48,8 +48,22 @@
...
@@ -48,8 +48,22 @@
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
code
==
1
){
if
(
res
.
code
==
1
){
localStorage
.
setItem
(
'token'
,
res
.
data
.
token
);
localStorage
.
setItem
(
'token'
,
res
.
data
.
token
);
localStorage
.
setItem
(
'userinfo'
,
res
.
data
.
userInfo
);
localStorage
.
setItem
(
'userinfo'
,
JSON
.
stringify
(
res
.
data
.
userInfo
));
this
.
$router
.
push
({
path
:
'./Index'
});
localStorage
.
setItem
(
'ywsj'
,
res
.
data
.
userInfo
.
jzrq
);
localStorage
.
setItem
(
'porgcode'
,
res
.
data
.
userInfo
.
porgcode
);
localStorage
.
setItem
(
'organizcode'
,
res
.
data
.
userInfo
.
organizcode
);
localStorage
.
setItem
(
'organizcodeName'
,
res
.
data
.
userInfo
.
jgjc
);
if
(
'hcms.shizhang'
===
res
.
data
.
userInfo
.
roles
[
0
]){
//市角色
localStorage
.
setItem
(
'userRole'
,
"city"
);
}
else
if
(
'hcms.App_Qu'
===
res
.
data
.
userInfo
.
roles
[
0
]){
//区角色
localStorage
.
setItem
(
'userRole'
,
"area"
);
}
else
if
(
'hcms.APP_SQYZ'
===
res
.
data
.
userInfo
.
roles
[
0
]){
//社区角色
localStorage
.
setItem
(
'userRole'
,
"hospital"
);
}
this
.
$router
.
push
({
path
:
'./Index'
});
}
else
{
}
else
{
_this
.
$message
.
error
(
res
.
msg
);
_this
.
$message
.
error
(
res
.
msg
);
}
}
...
...
src/components/userJoin/screenTwoPag1.vue
View file @
630f0b7d
...
@@ -1204,7 +1204,7 @@
...
@@ -1204,7 +1204,7 @@
this
.
agedatayq
=
[]
this
.
agedatayq
=
[]
let
_this
=
this
let
_this
=
this
let
wd
=
[{
let
wd
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1237,7 +1237,7 @@
...
@@ -1237,7 +1237,7 @@
//{\"name\":\"QYBZ\",\"value\":\"1\",\"type\":\"1\"}不加这个管
//{\"name\":\"QYBZ\",\"value\":\"1\",\"type\":\"1\"}不加这个管
let
wdq
=
[{
let
wdq
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1269,7 +1269,7 @@
...
@@ -1269,7 +1269,7 @@
})
})
let
wdxj
=
[{
let
wdxj
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1307,7 +1307,7 @@
...
@@ -1307,7 +1307,7 @@
"value"
:
"1"
,
"value"
:
"1"
,
"type"
:
"1"
,
"type"
:
"1"
,
},
{
},
{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1337,7 +1337,7 @@
...
@@ -1337,7 +1337,7 @@
// console.log(this.PlaceCode);
// console.log(this.PlaceCode);
let
wdsf
=
[{
let
wdsf
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1374,7 +1374,7 @@
...
@@ -1374,7 +1374,7 @@
})
})
let
wdsfq
=
[{
let
wdsfq
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1409,7 +1409,7 @@
...
@@ -1409,7 +1409,7 @@
//var zbcode="MBZFX_016";单独读取
//var zbcode="MBZFX_016";单独读取
let
wd2
=
[{
let
wd2
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1443,7 +1443,7 @@
...
@@ -1443,7 +1443,7 @@
})
})
let
wd2q
=
[{
let
wd2q
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1482,7 +1482,7 @@
...
@@ -1482,7 +1482,7 @@
//var zbcode="MBZFX_016";单独读取
//var zbcode="MBZFX_016";单独读取
let
wdtnbg
=
[{
let
wdtnbg
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1506,7 +1506,7 @@
...
@@ -1506,7 +1506,7 @@
})
})
let
wdtnbq
=
[{
let
wdtnbq
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1535,7 +1535,7 @@
...
@@ -1535,7 +1535,7 @@
/********************************************************************************************************************************************/
/********************************************************************************************************************************************/
let
wdxb
=
[{
let
wdxb
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1564,7 +1564,7 @@
...
@@ -1564,7 +1564,7 @@
})
})
let
wdxb1
=
[{
let
wdxb1
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1593,7 +1593,7 @@
...
@@ -1593,7 +1593,7 @@
})
})
let
wdxbq
=
[{
let
wdxbq
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1626,7 +1626,7 @@
...
@@ -1626,7 +1626,7 @@
})
})
let
wdxbq1
=
[{
let
wdxbq1
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1661,7 +1661,7 @@
...
@@ -1661,7 +1661,7 @@
/********************************************************************************************************************************************/
/********************************************************************************************************************************************/
let
wdnl
=
[{
let
wdnl
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1690,7 +1690,7 @@
...
@@ -1690,7 +1690,7 @@
})
})
let
wdnl2
=
[{
let
wdnl2
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
@@ -1785,7 +1785,7 @@
...
@@ -1785,7 +1785,7 @@
this
.
rightlist2
=
'知情同意接受随访比/偏·%'
this
.
rightlist2
=
'知情同意接受随访比/偏·%'
this
.
rightlist3
=
'规范管理率/同·%'
this
.
rightlist3
=
'规范管理率/同·%'
let
wd
=
[{
let
wd
=
[{
"name"
:
"
XZQH
"
,
"name"
:
"
YWSJ
"
,
"type"
:
"2"
,
"type"
:
"2"
,
"startTime"
:
this
.
startTime
,
"startTime"
:
this
.
startTime
,
"endTime"
:
this
.
selectStarttime
,
"endTime"
:
this
.
selectStarttime
,
...
...
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