Commit f8ba08c7 by pcc

慢病管理--数据问题

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