Commit 9b568615 by duyaqian

管理效果 上右高血压单位 echarts图富文本、管理人群趋势图 标题位置移动

parent 2e226db9
...@@ -2,8 +2,8 @@ import request from '@/utils/request' ...@@ -2,8 +2,8 @@ import request from '@/utils/request'
/**** /****
*首页接口 *首页接口
******/ ******/
const webUrl = 'http://localhost:168/fyglAPP/'; //const webUrl = 'http://localhost:168/fyglAPP/';
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/'; const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/'; // const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/';
//公用接口 //公用接口
......
import request from '@/utils/request' import request from '@/utils/request'
//登录、修改密码 //登录、修改密码
const webUrl = 'http://localhost:168/fyglAPP/'; //const webUrl = 'http://localhost:168/fyglAPP/';
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/'; const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38: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({
......
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
} }
let _this = this let _this = this
// 用户登录 // 用户登录
login(this.loginID, this.$md5(this.loginPas)).then( res=>{ //login(this.loginID, this.$md5(this.loginPas)).then( res=>{
login(this.loginID,this.loginPas).then( res=>{
console.log(res) console.log(res)
if(res.code==1){ if(res.code==1){
sessionStorage.setItem('token', res.data.token); sessionStorage.setItem('token', res.data.token);
......
...@@ -109,45 +109,45 @@ ...@@ -109,45 +109,45 @@
<div class="page-left-top2"> <div class="page-left-top2">
<table class="table02" width="100%" border="0"> <table class="table02" width="100%" border="0">
<tr> <tr>
<td width="55%">&nbsp;</td> <td width="60%">&nbsp;</td>
<td width="40%" style="text-align: center;">管理/签约</td> <td width="35%" style="text-align: center;">管理/签约</td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<!-- @click="change_age(1)" --> <!-- @click="change_age(1)" -->
<tr v-if="mbType === 'gxy'" @click="change_age(1)" :class="age_index==1?'myclk':''"> <tr v-if="mbType === 'gxy'" @click="change_age(1)" :class="age_index==1?'myclk':''">
<td width="55%" class="tdleft">脑卒中粗发病率</td> <td width="60%" class="tdleft">脑卒中粗发病率·/10万</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper1_g).toFixed(2)}}/{{parseFloat(hyper1_q).toFixed(2)}}%</span> <td width="35%"><span class="sp01">{{parseFloat(hyper1_g).toFixed(2)}}/{{parseFloat(hyper1_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<tr v-if="mbType === 'gxy'" @click="change_age(2)" :class="age_index==2?'myclk':''"> <tr v-if="mbType === 'gxy'" @click="change_age(2)" :class="age_index==2?'myclk':''">
<td width="55%" class="tdleft">脑卒中粗死亡率</td> <td width="60%" class="tdleft">脑卒中粗死亡率·/10万</td>
<td width="40%"><span class="span22">{{parseFloat(hyper2_g).toFixed(2)}}%/{{parseFloat(hyper2_q).toFixed(2)}}%</span> <td width="35%"><span class="span22">{{parseFloat(hyper2_g).toFixed(2)}}/{{parseFloat(hyper2_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<tr v-if="mbType === 'gxy'" @click="change_age(3)" :class="age_index==3?'myclk':''"> <tr v-if="mbType === 'gxy'" @click="change_age(3)" :class="age_index==3?'myclk':''">
<td width="55%" class="tdleft">心脑血管粗死亡率</td> <td width="60%" class="tdleft">心脑血管粗死亡率·/10万</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper3_g).toFixed(2)}}%/{{parseFloat(hyper3_q).toFixed(2)}}%</span> <td width="35%"><span class="sp01">{{parseFloat(hyper3_g).toFixed(2)}}/{{parseFloat(hyper3_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<tr v-if="mbType === 'gxy'" @click="change_age(4)" :class="age_index==4?'myclk':''"> <tr v-if="mbType === 'gxy'" @click="change_age(4)" :class="age_index==4?'myclk':''">
<td width="55%" class="tdleft">粗死亡率</td> <td width="60%" class="tdleft">粗死亡率·/10万</td>
<td width="40%"><span class="span22">{{parseFloat(hyper4_g).toFixed(2)}}%/{{parseFloat(hyper4_q).toFixed(2)}}%</span> <td width="35%"><span class="span22">{{parseFloat(hyper4_g).toFixed(2)}}/{{parseFloat(hyper4_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<tr v-if="mbType === 'gxy'" @click="change_age(5)" :class="age_index==5?'myclk':''"> <tr v-if="mbType === 'gxy'" @click="change_age(5)" :class="age_index==5?'myclk':''">
<td width="55%" class="tdleft">并发症发生率</td> <td width="60%" class="tdleft">并发症发生率·/%</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper5_g).toFixed(2)}}%/{{parseFloat(hyper5_q).toFixed(2)}}%</span> <td width="35%"><span class="sp01">{{parseFloat(hyper5_g).toFixed(2)}}/{{parseFloat(hyper5_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<tr v-if="mbType === 'tnb'" class="myclk" @click="change_age(6)"> <tr v-if="mbType === 'tnb'" class="myclk" @click="change_age(6)">
<td width="55%" class="tdleft">粗死亡率</td> <td width="60%" class="tdleft">粗死亡率·/10万</td>
<td width="40%"><span class="span22">{{parseFloat(sweet_g).toFixed(2)}}%/{{parseFloat(sweet_q).toFixed(2)}}%</span> <td width="35%"><span class="span22">{{parseFloat(sweet_g).toFixed(2)}}/{{parseFloat(sweet_q).toFixed(2)}}</span>
</td> </td>
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
...@@ -313,6 +313,13 @@ ...@@ -313,6 +313,13 @@
lastStatus: {}, lastStatus: {},
PlaceCode: '', PlaceCode: '',
option: { option: {
tooltip: {
/*返回需要的信息*/
formatter: function (param) {
return '<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 13px;padding-bottom: 7px;margin-bottom: 7px;"> ' + param.seriesName + '(' + param.name + ')' + ':' + param.value + '人</div>';
}
},
color: ["#4F95A1", "#E5896D"], color: ["#4F95A1", "#E5896D"],
legend: { legend: {
top: 0, top: 0,
...@@ -429,10 +436,10 @@ ...@@ -429,10 +436,10 @@
}, },
left: 30, left: 30,
width: 420, width: 420,
top: '0', top: '-3',
itemHeight: 10, itemHeight: 10,
itemWidth: 14, itemWidth: 14,
itemGap: 5, itemGap: 3,
height: 50, height: 50,
data: [], data: [],
align: 'left', align: 'left',
...@@ -1749,7 +1756,7 @@ ...@@ -1749,7 +1756,7 @@
} }
// //
commonMethod(paramnl2).then(res => { commonMethod(paramnl2).then(res => {
console.log(res)
ageData_q = res.data.content ageData_q = res.data.content
// this.age_index 代表 脑卒中粗发死亡率 // this.age_index 代表 脑卒中粗发死亡率
...@@ -1878,13 +1885,16 @@ ...@@ -1878,13 +1885,16 @@
.table02 td { .table02 td {
text-align: left; text-align: left;
box-sizing: border-box; box-sizing: border-box;
padding-left: 10px; padding-left: 3px;
} }
.table02 td span.sp01 { .table02 td span.sp01 {
text-align: center; text-align: center;
width:70px;
} }
.table02 td span.span22{
width:70px;
}
#pag2bar { #pag2bar {
width: 465px; width: 465px;
height: 320px; height: 320px;
......
++ "b/\347\226\276\346\216\247.txt"
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