Commit 1ca0aca3 by lihu541

页面数据核对,修改

parent 1981dfee
......@@ -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;}
......
......@@ -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>
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* 检查传来的参数是否为空
* @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;
}
}
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