Commit 630f0b7d by lihu541

不同角色登录,显示内容修改

parent f5f885f4
...@@ -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>
...@@ -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',
......
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',
......
...@@ -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;}
......
...@@ -48,7 +48,21 @@ ...@@ -48,7 +48,21 @@
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));
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'}); this.$router.push({path: './Index'});
}else{ }else{
_this.$message.error(res.msg); _this.$message.error(res.msg);
......
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment