Commit f8ba08c7 by pcc

慢病管理--数据问题

parent a86e564b
......@@ -648,11 +648,8 @@
this.showtabnum = num
},
dataSearch(cxsj) {
sessionStorage.setItem("ywsj", cxsj)
this.homeinit()
this.homebot()
},
pageChage(page) {
this.$emit('screenTwoPagefunc', page)
......@@ -699,7 +696,6 @@
}
this.homeinit()
this.homebot()
},
groupChange(num) {
this.groupNo = num
......@@ -716,13 +712,13 @@
this.thname = '医院'
}
}
this.homebot()
this.homeinit()
} else {
this.showTab = false
this._group = "YWSJ"
this.tablename = '时间'
this.thname = '月份'
this.homebot()
this.homeinit()
}
},
bingChange(num) {
......@@ -732,7 +728,7 @@
} else {
this.showtime = false
}
this.homebot()
this.homeinit()
},
exitFn() {
this.$router.push({
......@@ -776,7 +772,6 @@
}
this.homeinit()
this.homebot()
this.groupChange(1)
this.bingChange(1)
},
......@@ -811,8 +806,7 @@
_this.option.series[3].data[1].value = 100 - parseInt(_this.topqzdldata.ZXZ)
this.showTab = false
}
this.homebot()
this.homeinit()
_this.$echarts.init(document.getElementById("charts1")).setOption(this.option, true)
},
changecity(code, name) {
......@@ -831,7 +825,6 @@
this.thname = '医院'
sessionStorage.setItem("xzqh",code)
this.homeinit()
this.homebot()
}else if (this.pageLevel === 'qj') {
this._group = 'YWSJ'
this._yljgdm = code
......@@ -845,13 +838,15 @@
this.tablename = '时间'
this.thname = '月份'
this.homeinit()
this.homebot()
}else if (this.pageLevel === 'sq') {
return false
}
},
homeinit() {
this.pageHeadData()
this.pageBottomData()
},
pageHeadData() {
let _this = this
//{\"name\":\"QYBZ\",\"value\":\"1\",\"type\":\"1\"}不加这个管
let wd = [{
......@@ -1032,7 +1027,7 @@
console.log("--早发现上部分签报错--");
})
},
homebot() {
pageBottomData() {
let _this = this
_this.dataY01 = []
_this.dataY02 = []
......@@ -1063,17 +1058,6 @@
"type": "1"
}
]
let param3 = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd3),
"group": this._group
}
commonMethod(param3).then(res => {
// 用于在下文 对管数据进行赋值 可搜索 tableg
this.tableg = res.data.content
}).catch(err => {
console.log("--测试定义接口报错--");
})
/******************下半部分**签*******************/
let wd4 = [{
......@@ -1099,6 +1083,13 @@
"type": "1"
}
]
let param3 = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd3),
"group": this._group
}
//var zbcode="MBZFX_016";单独读取
let param4 = {
"themeId": _this.themeID2,
......@@ -1106,9 +1097,14 @@
"group": this._group
}
commonMethod(param3).then(res => {
// 用于在下文 对管数据进行赋值 可搜索 tableg
this.tableg = res.data.content
commonMethod(param4).then(res => {
// console.log('早发现---底部签')
this.tableq = res.data.content
if (this._group == 'YWSJ') {
this.tableq.sort(function(prev, next) {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
......@@ -2042,6 +2038,13 @@
}).catch(err => {
console.log("--2底部报错签--");
})
}).catch(err => {
console.log("--测试定义接口报错--");
})
}
},
mounted() {
......@@ -2053,7 +2056,6 @@
this._group = "XZQH"
this.pageLevel = 'sj'
this.homeinit()
this.homebot()
} else if ('area' === this.userRole) {//区角色
this._xzqh = sessionStorage.getItem("organizcode")
......@@ -2067,7 +2069,6 @@
this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit()
this.homebot()
} else if ('hospital' === this.userRole) {//社区角色
this._xzqh = sessionStorage.getItem("organizcode")
this._group = "YWSJ"
......@@ -2078,7 +2079,6 @@
this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit()
this.homebot()
}
const obj = setInterval(() => {
......
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