Commit 3b755015 by lihu541

样式调整,数据bug修改

parent 22e15f58
......@@ -43,27 +43,28 @@
</div>
</div>
</div>
<div class="model3">
<div class="model3" style="width:320px;">
<div class="m3title">慢病管理</div>
<div class="m3title2">
<i></i>
<span>在管人数</span>|
<span>同期</span>
<span>高血压在管人数</span>|
<span>糖尿病在管人数</span>
</div>
<div class="m3number">
<span class="m3number-font">{{mbzgrsZXZ}}</span>/
<span class="m3number-font">{{mbzgrsTBZ}}</span>
<span class="m3number-font">{{mbzgrsZXZ_g}}</span><strong></strong>
<span class="tag-blue"></span>
<span>{{mbzgrsTBL}}%</span><arrow-class :rawData="mbzgrsTBL"></arrow-class>/
<span class="m3number-font">{{mbzgrsZXZ_t}}</span>
<strong></strong>
<span class="tag-blue"></span>
<span>{{mbzgrsTBL}} %</span>
<arrow-class :rawData="mbzgrsTBL"></arrow-class>
<span>{{mbzgrsTBL}}%</span><arrow-class :rawData="mbzgrsTBL"></arrow-class>
</div>
<div class="m3message">
<div class="m3messagefont">年内已管理人数<span>{{mbyglrs}}</span></div>
<div class="m3messagefont">规范管理人数<span>{{mbgfglrs}}</span></div>
<div class="m3messagefont">年内已管理人数·万(高血压/糖尿病)<span>{{mbyglrs_g}} / {{mbyglrs_t}}</span></div>
<div class="m3messagefont">规范管理人数·万(高血压/糖尿病)<span>{{mbgfglrs_g}} / {{mbgfglrs_t}}</span></div>
</div>
</div>
<div class="model3 model3m">
<div class="model3 model3m" style="width:260px;">
<div class="m3title">免疫规划</div>
<div class="m3title2">
<i></i>
......@@ -83,7 +84,7 @@
<div class="m3messagefont">规范管理人数<span>102.5</span></div>
</div>
</div>
<div class="model3">
<div class="model3" style="width:260px;">
<div class="m3title">传染病监测</div>
<div id="echartsperson"></div>
</div>
......@@ -471,10 +472,16 @@
]
},
mbzgrsZXZ_g:0,
mbzgrsZXZ_t:0,
mbzgrsZXZ:0,
mbzgrsTBZ:0,
mbzgrsTBL:0,
mbyglrs_g:0,
mbyglrs_t:0,
mbyglrs:0,
mbgfglrs_g:0,
mbgfglrs_t:0,
mbgfglrs:0,
mbglData:{},
userinfo: {},
......@@ -497,8 +504,8 @@
this.ispopu = !this.ispopu
},
toMygh(){
window.location.href = 'http://195.1.3.38:9001/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
// window.location.href = 'https://192.168.30.51/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
// window.location.href = 'http://195.1.3.38:9001/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
window.location.href = 'https://192.168.30.51/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
},
exitFn() {
this.$router.push({
......@@ -529,6 +536,8 @@
"group": 'XB'
}
commonMethod(param1).then(res => {
_this.mbzgrsZXZ_g = 0
_this.mbzgrsZXZ_t = 0
_this.mbzgrsZXZ = 0
_this.mbzgrsTBZ = 0
_this.mbzgrsTBL = 0
......@@ -536,12 +545,19 @@
_this.mbglData.forEach(item1=>{
if(!checkIsNull(item1.XB)){
item1.zbxx.forEach(item=>{
if(item.ZBID==1045){
_this.mbzgrsZXZ_g += parseInt(item.ZXZ)
}else if(item.ZBID==1046){
_this.mbzgrsZXZ_t += parseInt(item.ZXZ)
}
_this.mbzgrsZXZ += parseInt(item.ZXZ)
_this.mbzgrsTBZ += parseInt(item.TBZ)
})
}
})
_this.mbzgrsZXZ_g = getActiveNum(_this.mbzgrsZXZ_g / 10000)
_this.mbzgrsZXZ_t = getActiveNum(_this.mbzgrsZXZ_t / 10000)
_this.mbzgrsZXZ = getActiveNum(_this.mbzgrsZXZ / 10000)
_this.mbzgrsTBZ = getActiveNum(_this.mbzgrsTBZ / 10000)
_this.mbzgrsTBL = getActiveNum((_this.mbzgrsZXZ - _this.mbzgrsTBZ) / _this.mbzgrsTBZ * 100)
......@@ -553,18 +569,29 @@
"wd": JSON.stringify(wd1)
}
commonMethod(param2).then(res => {
_this.mbyglrs_g = 0
_this.mbyglrs_t = 0
_this.mbyglrs = 0
_this.mbgfglrs_g = 0
_this.mbgfglrs_t = 0
_this.mbgfglrs = 0
_this.mbglrsData = res.data.content[0]
_this.mbglrsData.zbxx.forEach(item => {
if(item.ZBID === '1048' || item.ZBID === '1051'){
_this.mbyglrs += parseInt(item.ZXZ)
}
if(item.ZBID === '1054' || item.ZBID === '1056'){
_this.mbgfglrs += parseInt(item.ZXZ)
if(item.ZBID === '1048'){
_this.mbyglrs_g += parseInt(item.ZXZ)
}else if(item.ZBID === '1051'){
_this.mbyglrs_t += parseInt(item.ZXZ)
}else if(item.ZBID === '1054'){
_this.mbgfglrs_g += parseInt(item.ZXZ)
}else if(item.ZBID === '1056'){
_this.mbgfglrs_t += parseInt(item.ZXZ)
}
})
_this.mbyglrs_g = getActiveNum(_this.mbyglrs_g / 10000)
_this.mbyglrs_t = getActiveNum(_this.mbyglrs_t / 10000)
_this.mbgfglrs_g = getActiveNum(_this.mbgfglrs_g / 10000)
_this.mbgfglrs_t = getActiveNum(_this.mbgfglrs_t / 10000)
}).catch(err => {
console.log("--慢病管理2报错--");
......@@ -626,7 +653,7 @@
.inputdiv input{ width: 150px;height:26px;background:rgba(151,184,213,0.9);border-radius:8px;opacity:0.15; border: 0;}
.imgdiv{ width: 250px; float: left; padding-top: 17px; position: relative; padding-left: 20px; text-align: right; line-height: 20px;color:rgba(151,184,213,1);}
.imgdiv img{ vertical-align: middle; margin: 0 5px;}
.model3{width:280px;height:185px;background:rgba(0,47,106,0.1);box-shadow:0px 1px 6px 0px rgba(14,88,176,1); float: left; position: relative; margin-bottom: 30px;}
.model3{height:185px;background:rgba(0,47,106,0.1);box-shadow:0px 1px 6px 0px rgba(14,88,176,1); float: left; position: relative; margin-bottom: 30px;}
.model3m{ margin: 0 10px;}
.m3title{ position: absolute; left: 10px; line-height: 30px; font-size: 14px; color: #fff;}
......@@ -636,7 +663,7 @@
.m3title2 i{ width: 3px; height: 12px; background: #007AFF; color: #0097FD;display: inline-block;}
.m3title2 span{ padding: 0 5px; color: #97B8D5;}
.m3number{ position: absolute; left: 30px; top: 65px; line-height: 65px; font-size: 12px; color: #fff; color: #97B8D5;}
.m3number{ position: absolute; left: 15px; top: 65px; line-height: 65px; font-size: 12px; color: #fff; color: #97B8D5;}
.m3number span{ padding: 0 3px; color: #97B8D5;}
.m3number-font{font-size:28px;color: #4FD9FF !important;}
.tag-blue{ background: #05296a;border-radius: 20%;padding:0 2px; border: 1px #1158c3 solid;font-size: 12px;color: #4da0c7;}
......
......@@ -1745,7 +1745,7 @@
dataSearch(cxsj) {
sessionStorage.setItem("ywsj", cxsj)
this.zhongliu()
this.pageDataInit()
this.reApplyCharts()
this.bottominit()
......
......@@ -225,6 +225,7 @@
otherMethod
} from '@/api/home.js'
import {
getValueByMaxMin,
getActiveNum,
checkIsNull
} from '@/utils/common.js'
......@@ -801,6 +802,7 @@
changeReplay() {
this.mbType = 'gxy'
this.rqType = 'gfgl'
this.isShowBack = false
if ('city' === this.userRole) {//市角色
this._xzqh = ""
this._yljgdm = ''
......@@ -1362,13 +1364,13 @@
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
line1.push(getValueByMaxMin(item2.ZXZ))
line1_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·手工采集上传血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
line3.push(getValueByMaxMin(item2.ZXZ))
line3_qn.push(getValueByMaxMin(item2.TBZ))
}
} else {
......@@ -1379,18 +1381,18 @@
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
line1.push(getValueByMaxMin(item2.ZXZ))
line1_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·手工采集上传血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
line3.push(getValueByMaxMin(item2.ZXZ))
line3_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 高血压患者BMI异常比例
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
line5.push(getValueByMaxMin(item2.ZXZ))
line5_qn.push(getValueByMaxMin(item2.TBZ))
}
}
}
......@@ -1405,18 +1407,18 @@
}
if (item2.ZBID == "1145" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
line1.push(getValueByMaxMin(item2.ZXZ))
line1_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1142" ) {
// 管·手工采集上传血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
line3.push(getValueByMaxMin(item2.ZXZ))
line3_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·手工采集上传血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
line5.push(getValueByMaxMin(item2.ZXZ))
line5_qn.push(getValueByMaxMin(item2.TBZ))
}
} else {
......@@ -1427,18 +1429,18 @@
}
if (item2.ZBID == "1151" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
line1.push(getValueByMaxMin(item2.ZXZ))
line1_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1148" ) {
// 管·手工采集上传血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
line3.push(getValueByMaxMin(item2.ZXZ))
line3_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·手工采集上传血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
line5.push(getValueByMaxMin(item2.ZXZ))
line5_qn.push(getValueByMaxMin(item2.TBZ))
}
}
}
......@@ -1468,13 +1470,13 @@
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
line2.push(getValueByMaxMin(item2.ZXZ))
line2_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·手工采集上传血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
line4.push(getValueByMaxMin(item2.ZXZ))
line4_qn.push(getValueByMaxMin(item2.TBZ))
}
}else{
if (item2.ZBID == "1176") {
......@@ -1484,18 +1486,18 @@
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
line2.push(getValueByMaxMin(item2.ZXZ))
line2_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·手工采集上传血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
line4.push(getValueByMaxMin(item2.ZXZ))
line4_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·手工采集上传血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
line6.push(getValueByMaxMin(item2.ZXZ))
line6_qn.push(getValueByMaxMin(item2.TBZ))
}
}
}else if(this.mbType === 'tnb'){
......@@ -1508,13 +1510,13 @@
} else
if (item2.ZBID == "1145" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
line2.push(getValueByMaxMin(item2.ZXZ))
line2_qn.push(getValueByMaxMin(item2.TBZ))
} else
if (item2.ZBID == "1142" ) {
// 管·手工采集上传血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
line4.push(getValueByMaxMin(item2.ZXZ))
line4_qn.push(getValueByMaxMin(item2.TBZ))
}
}else{
if (item2.ZBID == "1152") {
......@@ -1524,18 +1526,18 @@
}
if (item2.ZBID == "1151" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
line2.push(getValueByMaxMin(item2.ZXZ))
line2_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1148" ) {
// 管·手工采集上传血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
line4.push(getValueByMaxMin(item2.ZXZ))
line4_qn.push(getValueByMaxMin(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·手工采集上传血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
line6.push(getValueByMaxMin(item2.ZXZ))
line6_qn.push(getValueByMaxMin(item2.TBZ))
}
}
}
......@@ -2134,4 +2136,9 @@
padding: 10px;
text-align: left;
}
.hb-icon{
display: inline-block;
transform: scale(0.8);
}
</style>
......@@ -50,8 +50,8 @@
<p>签·血压零偏好占比:{{parseFloat(finalPerq.ZXZ?finalPerq.ZXZ:0).toFixed(1)}}%</p>
</div>
<div class="datalist" v-show="DieaNo==2">
<p>管·糖尿零偏好占比:{{parseFloat(finalPerg.ZXZ?finalPerg.ZXZ:0).toFixed(1)}}%</p>
<p>签·糖尿零偏好占比:{{parseFloat(finalPerq.ZXZ?finalPerq.ZXZ:0).toFixed(1)}}%</p>
<p>管·血糖零偏好占比:{{parseFloat(finalPerg.ZXZ?finalPerg.ZXZ:0).toFixed(1)}}%</p>
<p>签·血糖零偏好占比:{{parseFloat(finalPerq.ZXZ?finalPerq.ZXZ:0).toFixed(1)}}%</p>
<p>管·糖化零偏好占比:{{parseFloat(finalPerg2.ZXZ?finalPerg2.ZXZ:0).toFixed(1)}}%</p>
<p>签·糖化零偏好占比:{{parseFloat(finalPerq2.ZXZ?finalPerq2.ZXZ:0).toFixed(1)}}%</p>
</div>
......@@ -226,6 +226,7 @@
otherMethod
} from '@/api/home.js'
import {
getValueByMaxMin,
getActiveNum,
checkIsNull
} from '@/utils/common.js'
......@@ -899,7 +900,7 @@
}
// 年总死亡人数随访比例
if (item.CODE == 'FWZL_010') {
_this.topgyeardiepredata = res.data.content[0].zbxx[index]
_this.topgyeardiepredata = getValueByMaxMin(res.data.content[0].zbxx[index])
}
//首诊测压血压异常者诊断为高血压的人数
// 血压零偏好
......@@ -923,7 +924,7 @@
}
// 年总死亡人数随访比例
if (item.CODE == 'FWZL_013') {
_this.topgyeardiepredata = res.data.content[0].zbxx[index]
_this.topgyeardiepredata = getValueByMaxMin(res.data.content[0].zbxx[index])
}
//首诊测压血压异常者诊断为高血压的人数
// 血压零偏好
......@@ -994,11 +995,11 @@
// 年总死亡人数随访比例
if (item.CODE == 'FWZL_010') {
_this.topqyeardiepredata = res.data.content[0].zbxx[index]
_this.topqyeardiepredata = getValueByMaxMin(res.data.content[0].zbxx[index])
}
// 高血压零偏好占比 签
if (item.CODE == 'FWZL_018') {
_this.finalPerq = res.data.content[0].zbxx[index]
_this.finalPerq = getValueByMaxMin(res.data.content[0].zbxx[index])
}
})
......@@ -1015,7 +1016,7 @@
}
// 年总死亡人数随访比例
if (item.CODE == 'FWZL_013') {
_this.topqyeardiepredata = res.data.content[0].zbxx[index]
_this.topqyeardiepredata = getValueByMaxMin(res.data.content[0].zbxx[index])
}
if (item.CODE == 'FWZL_021') {
_this.finalPerq = res.data.content[0].zbxx[index]
......@@ -1137,16 +1138,7 @@
_this.data108 = []
if (_this.bingNo == 1) {
tempList.forEach((item, index) => {
let obj = {
name: '',
code: '',
tag1: '0',
tag2: '0',
tag3: '0',
tag4: '0',
tag5: '0',
tag6: '0'
}
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
} else {
......@@ -1192,10 +1184,10 @@
if (item2.ZBID == sfbl_zbid) {
var g_sfb = _this.Gbotdata.content[index].zbxx[index2].ZXZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].ZXZ).toFixed(1) : 0
var g_sfb_qn = _this.Gbotdata.content[index].zbxx[index2].TZB ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].TZB).toFixed(1) : 0
_this.data105.push(g_sfb)
_this.data106.push(g_sfb_qn)
_this.data107.push(item2.ZXZ)
_this.data108.push(item2.TBZ)
_this.data105.push(getValueByMaxMin(g_sfb))
_this.data106.push(getValueByMaxMin(g_sfb_qn))
_this.data107.push(getValueByMaxMin(item2.ZXZ))
_this.data108.push(getValueByMaxMin(item2.TBZ))
obj.tag5 = _this.Gbotdata.content[index].zbxx[index2].ZXZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].ZXZ).toFixed(1) : 0
obj.tag6 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
......@@ -1508,35 +1500,35 @@
//管签未标记率
if (item2.ZBID == '1127') {
_this.data201.push(item2.ZXZ)
_this.data203.push(item2.TBZ)
_this.data201.push(getValueByMaxMin(item2.ZXZ))
_this.data203.push(getValueByMaxMin(item2.TBZ))
//管未标记率
var g_wbjl = _this.Gbotdata.content[index].zbxx[index2].ZXZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].ZXZ).toFixed(1) : 0
var q_wbjl = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0;
var g_wbjl_qn = _this.Gbotdata.content[index].zbxx[index2].TBZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].TBZ).toFixed(1) : 0
var q_wbjl_qn = item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0;
obj.tag1= g_wbjl;
obj.tag2 = q_wbjl
_this.data205.push(g_wbjl)
_this.data206.push(q_wbjl)
_this.data207.push(g_wbjl_qn)
_this.data208.push(q_wbjl_qn)
obj.tag1= getValueByMaxMin(g_wbjl)
obj.tag2 = getValueByMaxMin(q_wbjl)
_this.data205.push(getValueByMaxMin(g_wbjl))
_this.data206.push(getValueByMaxMin(q_wbjl))
_this.data207.push(getValueByMaxMin(g_wbjl_qn))
_this.data208.push(getValueByMaxMin(q_wbjl_qn))
}
//管签批量异常随访比
if (item2.ZBID == '1136') {
_this.data205.push(item2.ZXZ)
_this.data206.push(item2.TBZ)
_this.data205.push(getValueByMaxMin(item2.ZXZ))
_this.data206.push(getValueByMaxMin(item2.TBZ))
var g_ycsfb = _this.Gbotdata.content[index].zbxx[index2].ZXZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].ZXZ).toFixed(1) : 0
var q_ycsfb = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0;
var g_ycsfb_qn = _this.Gbotdata.content[index].zbxx[index2].TBZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].TBZ).toFixed(1) : 0
var q_ycsfb_qn = item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0;
obj.tag3 = g_ycsfb
obj.tag4 = q_ycsfb
_this.data209.push(g_ycsfb)
_this.data210.push(q_ycsfb)
_this.data211.push(g_ycsfb_qn)
_this.data212.push(q_ycsfb_qn)
obj.tag3 = getValueByMaxMin(g_ycsfb)
obj.tag4 = getValueByMaxMin(q_ycsfb)
_this.data209.push(getValueByMaxMin(g_ycsfb))
_this.data210.push(getValueByMaxMin(q_ycsfb))
_this.data211.push(getValueByMaxMin(g_ycsfb_qn))
_this.data212.push(getValueByMaxMin(q_ycsfb_qn))
}
//不一致率
......@@ -1547,12 +1539,12 @@
var g_byzl_qn = _this.Gbotdata.content[index].zbxx[index2].TBZ ? parseFloat(_this.Gbotdata.content[index].zbxx[index2].TBZ).toFixed(1) : 0
var q_byzl_qn = item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0;
obj.tag5 = g_byzl
obj.tag6 = q_byzl
_this.data213.push(g_byzl)
_this.data214.push(q_byzl)
_this.data215.push(g_byzl_qn)
_this.data216.push(q_byzl_qn)
obj.tag5 = getValueByMaxMin(g_byzl)
obj.tag6 = getValueByMaxMin(q_byzl)
_this.data213.push(getValueByMaxMin(g_byzl))
_this.data214.push(getValueByMaxMin(q_byzl))
_this.data215.push(getValueByMaxMin(g_byzl_qn))
_this.data216.push(getValueByMaxMin(q_byzl_qn))
}
......@@ -2056,8 +2048,8 @@
tempList.forEach((item, index) => {
let obj = {
name: '',
tag1: '0',
code: '',
tag1: '0',
tag2: '0',
tag3: '0',
tag4: '0',
......
......@@ -46,3 +46,16 @@ export function getActiveNum(str) {
return Math.abs(num);
}
}
//值处理,超过最大值,小于最小值
export function getValueByMaxMin(value,max,min){
var num1 = 100;
var num2 = -100;
num1 = max ? max : num1;
num2 = min ? min : num2;
if(value>num1) return num1;
if(value<num2) return num2;
return getActiveNum(value);
}
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