Commit 1981dfee by lihu541

页面数据请求参数修改

parent 66242b3e
......@@ -8,8 +8,8 @@
<p>{{areaname}}</p>
</div>
<div class="area">
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="BeginCode">返回</el-button>
<el-button size="mini" @click="changeReplay()" type="primary">重置</el-button>
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="isShowBack">返回</el-button>
<el-button size="mini" @click="resetPage()" type="primary">重置</el-button>
<el-date-picker v-model="cxsj" type="month" @change="dataSearch" align="left" size='mini' format="yyyy-MM"
value-format="yyyy-MM" :placeholder="sel"></el-date-picker>
<div class="name"><i class="el-icon-s-custom el-icon--left"></i>{{userinfo.userName}} 截止:{{cxsj}}</div>
......@@ -32,8 +32,8 @@
<div class="cmtline">
<p><span>{{(gglrs/10000).toFixed(1)}}</span>年内已管理人数</p>
<p><span>{{(ggfrs/10000).toFixed(1)}}</span>规范管理人数</p>
<p><span>{{(gxjdata.ZXZ)}}/{{(gxjdata.TBZ)}}</span>新建数(累计/本周)</p>
<p><span>{{(agsfdata.ZXZ)}}/{{(agsfdata.TBZ)}}</span>失访数(累计/本周) </p>
<p><span>{{(gxjdata.ZXZ)}}/{{(gxjdata.ZZZ)}}</span>新建数(累计/本周)</p>
<p><span>{{(agsfdata.ZXZ)}}/{{(agsfdata.ZZZ)}}</span>失访数(累计/本周) </p>
</div>
</div>
......@@ -51,8 +51,8 @@
<div class="cmtline">
<p><span>{{(qglrs/10000).toFixed(1)}}</span>年内已管理人数</p>
<p><span>{{(qgfrs/10000).toFixed(1)}}</span>规范管理人数</p>
<p><span>{{(qxjdata.ZXZ)}}/{{(qxjdata.TBZ)}}</span>新建数(累计/本周)</p>
<p><span>{{(qsfdata.ZXZ)}}/{{(qsfdata.TBZ)}}</span>失访数(累计/本周)</p>
<p><span>{{(qxjdata.ZXZ)}}/{{(qxjdata.ZZZ)}}</span>新建数(累计/本周)</p>
<p><span>{{(qsfdata.ZXZ)}}/{{(qsfdata.ZZZ)}}</span>失访数(累计/本周)</p>
</div>
</div>
<div class="card1-mod" v-show="DieaNo == 3">
......@@ -521,13 +521,17 @@
name: '签约人群',
type: 'bar',
stack: '总量',
label: {
normal: {
show: false,
fontSize: 10,
offset: [45, 0]
}
},
// label:{
// normal:{
// show: true,
// fontSize : 10,
// position:'insideLeft',
// formatter:function (param) {
// var num = param.value+'千人/'+ param.value +'千人';
// return num;
// }
// }
// },
barWidth: 10,
data: this.agedatayq
}
......@@ -723,7 +727,7 @@
)
}
},
data: this.gxyseriesA,
data: [],
barWidth: null,
},
{
......@@ -754,7 +758,7 @@
)
}
},
data: this.gxyseriesB,
data: [],
stack: "1"
},
{
......@@ -790,7 +794,7 @@
}
},
itemStyle: {},
data: this.gxyseriesE,
data: [],
},
{
name: '签·规范管理率/去年',
......@@ -810,7 +814,7 @@
}
},
z: 12,
data: this.gxyseriesF,
data: [],
},
{
name: '管·随访完成比/去年',
......@@ -825,7 +829,7 @@
}
},
itemStyle: {},
data: this.gxyseriesG,
data: [],
},
{
name: '签·随访完成比/去年',
......@@ -845,11 +849,11 @@
}
},
z: 12,
data: this.gxyseriesH,
data: [],
},
]
},
themeidnow: 13,
themeidnow: 15,
themeID: 9, // 慢病在管ID
themeID2: 15, // 慢病高血压
themeID3: 21, // 慢病管理 糖尿病
......@@ -899,23 +903,20 @@
zqlvdata: [],
gflvdata: [],
chdata: [],
BarType: "XZQH",
BarSelect: 1,
dieaName: '血压',
rightlist1: '规范管理率',
rightlist2: '随访率',
rightlist3: '随访比',
BeginCode: false,
PlaceYLGM: '',
areaclick: true,
BackCLick: true,
SheQuCode: 1,
lastStatus: {},
PlaceCode: '',
closeareaclick: true,
showtabnum:0,
pagedisname:'高血压',
isShowBack: false,
userinfo:{},
userRole:'',
cxsj:'',
......@@ -931,39 +932,30 @@
},
CityGetBack() {
if (this.SheQuCode == 2) {
// 使用 this.SheQuCode 的值来判断现在处于的区镇状态
// 此时 处于第一次点击下的状态
if (this.pageLevel === 'qj') {
this.pageLevel = 'sj'
this._xzqh = ''
this._group = 'XZQH'
this.isShowBack = false
this.areaname = ''
this.commun = "各区"
this.thname = "各区"
this.communhidden = true
this.PlaceCode = ''
this.BarType = 'XZQH'
this.BackCLick = false
this.areaclick = true
this.closeareaclick = true
this.areaname = ''
setTimeout(() => {
this.BeginCode = false
}, 800)
console.log("现在处于一级状态");
}
if (this.SheQuCode == 3) {
// 使用 this.SheQuCode 的值来判断现在处于的区镇状态
// 此时 处于第二次点击下的状态
console.log("现在处于二级状态");
this.communhidden = true
this.PlaceCode = this.lastStatus.PlaceCode
this.BarType = this.lastStatus.BarType
this.BeginCode = this.lastStatus.BeginCode
this.BackCLick = this.lastStatus.BackCLick
this.areaclick = true
this.SheQuCode = 2
else if (this.pageLevel === 'sq') {
this.pageLevel = 'qj'
this._group = 'YLJGDM'
this._yljgdm = ''
this.tablename = "社区"
this.thname = "医院"
if(this.userRole === 'area'){
this.isShowBack = false
}
}
this.homeinit()
this.reApplyCharts()
this.bottominit()
......@@ -993,103 +985,76 @@
}
}
},
changeReplay() {
resetPage() {
this.cxsj = sessionStorage.getItem("ywsj")
this.userinfo = JSON.parse(sessionStorage.getItem("userinfo"))
this.userRole = sessionStorage.getItem("userRole")
if ('city' === this.userRole) {//市角色
this._xzqh = ""
this._group = "XZQH"
this.pageLevel = 'sj'
this.themeID = 7
this.BarType = 'XZQH'
this.communhidden = true
this.PlaceCode = ''
this.BackCLick = false
this.areaclick = true
this.closeareaclick = true
this.BeginCode = false
this.areaname = ''
this.tablename = "各区"
this.thname = "各区"
this.DieaNo = 1
this.bingNo = 1
this.BarSelect = 1
if ('city' === this.userRole) {//市角色
this.PlaceCode = ""
this._group = "XZQH"
this.pageLevel = 'sj'
this.homeinit()
this.reApplyCharts()
this.bottominit()
} else if ('area' === this.userRole) {//区角色
this._yljgdm = ''
this._group = "YLJGDM"
this._group = 'YLJGDM'
this.pageLevel = 'qj'
this.commun = "社区"
console.log("此处是第一次点击");
console.log("diann");
this.areaname = sessionStorage.getItem("organizcodeName")
this.PlaceCode = sessionStorage.getItem("organizcode")
this._xzqh = sessionStorage.getItem("organizcode")
this.BackCLick = false
this.BarType = 'YLJGDM'
this.BeginCode = false
this.areaclick = false
this.lastStatus.PlaceCode = this.PlaceCode
this.lastStatus.BackCLick = this.BackCLick
this.lastStatus.BarType = this.BarType
this.lastStatus.BeginCode = this.BeginCode
this.lastStatus.areaclick = this.areaclick
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 2
this.tablename = '社区'
this.thname = '医院'
} else if ('hospital' === this.userRole) {//社区角色
this.PlaceCode = sessionStorage.getItem("porgcode")
this._xzqh = sessionStorage.getItem("porgcode")
this._yljgdm = sessionStorage.getItem("organizcode")
this._group = "YWSJ"
this.pageLevel = 'sq'
this.closeareaclick = false
// this.PlaceCode = yldm
this.areaname = sessionStorage.getItem("organizcodeName")
this.BeginCode = false
this.communhidden = false
this.BarType = 'YWSJ'
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 3
this.tablename = '时间'
this.thname = '月份'
}
this.homeinit()
this.reApplyCharts()
this.bottominit()
},
groupChange(num) {
this.groupNo = num
if (num == 1) {
this.BarType = 'XZQH'
this._group = 'XZQH'
this.tablename = "各区"
this.thname = "各区"
} else {
this.BarType = 'YWSJ'
this._group = 'YWSJ'
this.tablename = "时间"
this.thname = "月份"
}
// 切换区后 执行方法渲染数据
this.bottominit()
},
dataSearch(value) {
dataSearch(cxsj) {
sessionStorage.setItem("ywsj", value)
this.DieaChange(this.DieaNo)
sessionStorage.setItem("ywsj", cxsj)
this.homeinit()
this.reApplyCharts()
this.bottominit()
// this.DieaChange(this.DieaNo)
},
bingChange(num) {
......@@ -1204,19 +1169,15 @@
let _this = this
setTimeout(function(){_this.zhongliu()},500)
}
// if(1){
// _this.option3.yAxis[0].data = this.agedatax
// _this.option3.series[0].data = this.agedatayg
// _this.option3.series[1].data = this.agedatayq
// _this.$echarts.init(document.getElementById("rightupbar2")).setOption(this.option3, true)
// }
},
homeinit() {
this.agedatax = []
this.agedatayg = []
this.agedatayq = []
let _this = this
let wd = [{
let wd = [
{
"name": "YWSJ",
"startTime": '',
"endTime": this.cxsj,
......@@ -1224,14 +1185,18 @@
"compare": "between"
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}]
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
let param = {
"themeId": _this.themeID,
"wd": JSON.stringify(wd),
// "group": this.BarType
} //zbcode : zbcode
}
commonMethod(param).then(res => {
......@@ -1252,19 +1217,21 @@
"compare": "between",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
},{
"name": "QYBZ",
"value": "1",
"type": "1",
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramq = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdq),
// "group": this.BarType,
} //zbcode : zbcode
}
commonMethod(paramq).then(res => {
......@@ -1287,13 +1254,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxj = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxj),
// "group": this.BarType,
}
commonMethod(paramxj).then(res => {
......@@ -1320,13 +1290,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxjq = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxjq),
// "group": this.BarType,
}
commonMethod(paramxjq).then(res => {
......@@ -1348,13 +1321,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramsf = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdsf),
// "group": this.BarType,
}
commonMethod(paramsf).then(res => {
......@@ -1387,13 +1363,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramsfq = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdsfq),
// "group": this.BarType
}
commonMethod(paramsfq).then(res => {
......@@ -1413,13 +1392,16 @@
"compare": "between",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let param2 = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd2),
// "group": this.BarType
}
commonMethod(param2).then(res => {
......@@ -1450,24 +1432,27 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let param2q = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd2q),
// "group": this.BarType
}
commonMethod(param2q).then(res => {
_this.qgxydata = res.data.content[0].zbxx
_this.qgxydata.forEach((item, index) => {
if (item.ZBID == 1051 && this.areaname != '') {
if (item.ZBID == 1048) {
_this.qglrs = item.ZXZ
}
if (item.ZBID == 1054 && this.areaname != '') {
if (item.ZBID == 1054) {
_this.qgfrs = item.ZXZ
}
})
......@@ -1484,13 +1469,16 @@
"compare": "between",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramtnbg = {
"themeId": _this.themeID3,
"wd": JSON.stringify(wdtnbg),
// "group": this.BarType
}
commonMethod(paramtnbg).then(res => {
......@@ -1511,13 +1499,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramtnbq = {
"themeId": _this.themeID3,
"wd": JSON.stringify(wdtnbq),
// "group": this.BarType
}
commonMethod(paramtnbq).then(res => {
......@@ -1539,13 +1530,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxb = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxb),
// "group": this.BarType
}
commonMethod(paramxb).then(res => {
......@@ -1567,13 +1561,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxb1 = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxb1),
// "group": this.BarType
}
commonMethod(paramxb1).then(res => {
......@@ -1599,13 +1596,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxbq = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxbq),
// "group": this.BarType
}
commonMethod(paramxbq).then(res => {
......@@ -1631,13 +1631,16 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramxbq1 = {
"themeId": _this.themeID,
"wd": JSON.stringify(wdxbq1),
// "group": this.BarType
}
commonMethod(paramxbq1).then(res => {
......@@ -1656,7 +1659,11 @@
"compare": "between",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramnl = {
......@@ -1668,13 +1675,6 @@
commonMethod(paramnl).then(res => {
_this.agegl = res.data.content
_this.agegl.forEach((item, index) => {
item.NL ? _this.agedatax.push(item.NL) : ''
})
}).catch(err => {
console.log("--年龄报错--");
})
let wdnl2 = [{
"name": "YWSJ",
......@@ -1688,7 +1688,11 @@
"type": "1",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let paramnl2 = {
......@@ -1705,12 +1709,10 @@
})
_this.agegl.forEach((item, index) => {
_this.agedatayg.push(item.zbxx[0].ZXZ)
_this.agedatax.push(item.NL)
})
let temp1 = [],
temp2 = [],
temp3 = [],
Temp = []
let temp1 = [], temp2 = [],temp3 = [], Temp = []
for (var i = 0; i < this.agedatax.length; i++) {
let agestructObj = {
......@@ -1718,12 +1720,16 @@
g_age: 'v',
q_age: 'v'
}
if(this.agedatax[i]){
agestructObj.age = this.agedatax[i]
agestructObj.g_age = this.agedatayg[i]
agestructObj.q_age = this.agedatayq[i]
Temp.push(agestructObj)
}
}
Temp.sort((prev, next) => {
return parseInt(next.age.slice(0, 2)) - parseInt(prev.age.slice(0, 2))
})
......@@ -1732,15 +1738,11 @@
temp2.push(item.g_age)
temp3.push(item.q_age)
})
// _this.option3.yAxis[0].data = _this.agedatax
// _this.option3.series[0].data = this.agedatayg
// _this.option3.series[1].data = this.agedatayq
this.option3.yAxis[0].data = temp1
this.option3.series[0].data = temp2
this.option3.series[1].data = temp3
// setTimeout(function(){
// _this.$echarts.init(document.getElementById("rightupbar2")).setOption(this.option3, true)
const obj2 = setInterval(() => {
const dom = document.getElementById("rightupbar2")
if (dom) {
......@@ -1751,7 +1753,10 @@
clearInterval(obj2)
}
}, 400)
// },500)
}).catch(err => {
console.log("--年龄报错--");
})
}).catch(err => {
console.log("--年龄报错--");
})
......@@ -1770,7 +1775,11 @@
"compare": "between",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let param = {
......@@ -1820,132 +1829,44 @@
console.log("--慢病管理肿瘤报错--");
})
},
changecity(code, name, yldm) {
if (this.areaclick && this.closeareaclick) {
this.commun = "社区"
console.log("此处是第一次点击");
this.areaname = name
this.PlaceCode = code
this.BackCLick = true
this.BarType = 'YLJGDM'
this.BeginCode = 1
this.areaclick = false
this.lastStatus.PlaceCode = this.PlaceCode
this.lastStatus.BackCLick = this.BackCLick
this.lastStatus.BarType = this.BarType
this.lastStatus.BeginCode = this.BeginCode
this.lastStatus.areaclick = this.areaclick
changecity(code, name) {
if (this.pageLevel === 'sj') {
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 2
console.log("此处是第一次点击");
this.pageLevel = 'qj'
this._group = 'YLJGDM'
this._xzqh = code
this.commun = "社区"
this.tablename = '社区'
this.thname = '医院'
return false
}
this.areaname = name
this.isShowBack = true
}else if (this.pageLevel === 'qj') {
if (this.SheQuCode == 2) {
this.pageLevel = 'sq'
this._group = 'YWSJ'
this._yljgdm = code
this.closeareaclick = false
// this.PlaceCode = yldm
this.areaname = name
this.isShowBack = true
this.communhidden = false
this.BarType = 'YWSJ'
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 3
this.tablename = '时间'
this.thname = '月份'
}else if (this.pageLevel === 'sq') {
return false
}
this.homeinit()
this.reApplyCharts()
this.bottominit()
},
bottominit() {
let _this = this
let wd, param,wdq, paramq
if (this.areaclick && this.closeareaclick) {
wd = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}]
param = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
"group": this.BarType,
},
wdq = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
},{
"name":"QYBZ",
"value":"1",
"type":"1",
}]
paramq = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
"group": this.BarType,
}
console.log("this.BarType :" + this.BarType);
} else if (this.SheQuCode == 2) {
console.log('第一次点击:展示三级镇');
wd = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
},
{
"name": "XZQH",
"value": this.PlaceCode,
"type": "1",
}
]
param = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
"group": this.BarType,
}
wdq = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
},
{
"name": "XZQH",
"value": this.PlaceCode,
"type": "1",
},
{
"name":"QYBZ",
"value":"1",
"type":"1",
}
]
paramq = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
"group": this.BarType,
}
console.log("this.BarType :" + this.BarType);
} else if (this.SheQuCode = 3) {
console.log('第二次点击:展示区镇 时间数据');
console.log("this.BarType :" + this.BarType);
this.closeareaclick = true
wd = [{
"name": "YWSJ",
"startTime": '',
......@@ -1954,13 +1875,17 @@
"type": "2",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1",
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
param = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
"group": this.BarType,
"group": this._group,
}
wdq = [{
"name": "YWSJ",
......@@ -1970,18 +1895,21 @@
"type": "2",
}, {
"name": "XZQH",
"value": this.PlaceCode,
"value": this._xzqh,
"type": "1",
},{
"name":"QYBZ",
"value":"1",
"type":"1",
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
paramq = {
"themeId": this.themeidnow,
"wd": JSON.stringify(wd),
// "group": this.BarType,
}
"group": this._group
}
commonMethod(param).then(res => {
......@@ -2026,14 +1954,14 @@
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.code = item.XZQH
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.code = item.YLJGDM
} else {
obj.name = '数据缺失'
}
}
obj.code = item.XZQH
obj.YLDM = item.YLJGDM
let NameTemp
if (_this.groupNo == 1) {
......@@ -2045,8 +1973,9 @@
_this.data_x.push(NameTemp)
}
if (!this.PlaceCode) {
if (!this._xzqh) {
item.zbxx.forEach((item2, index2) => {
//qwer
if (item2.ZBID == '1058' || item2.ZBID == '1050') {
_this.gxyseriesA.push(parseFloat(item2.ZXZ / 10000))
......@@ -2075,7 +2004,7 @@
_this.tableAll.push(obj)
} else {
// if (this.PlaceCode == item.YLJGDM) {
// if (this._xzqh == item.YLJGDM) {
item.zbxx.forEach((item2, index2) => {
if (item2.ZBID == '1058' || item2.ZBID == '1050') {
......@@ -2395,66 +2324,7 @@
}
},
mounted() {
this.cxsj = sessionStorage.getItem("ywsj")
this.userinfo = JSON.parse(sessionStorage.getItem("userinfo"))
this.userRole = sessionStorage.getItem("userRole")
if ('city' === this.userRole) {//市角色
this.PlaceCode = ""
this._group = "XZQH"
this.pageLevel = 'sj'
this.homeinit()
this.reApplyCharts()
this.bottominit()
} else if ('area' === this.userRole) {//区角色
this._yljgdm = ''
this._group = "YLJGDM"
this.pageLevel = 'qj'
this.commun = "社区"
console.log("此处是第一次点击");
console.log("diann");
this.areaname = sessionStorage.getItem("organizcodeName")
this.PlaceCode = sessionStorage.getItem("organizcode")
this.BackCLick = false
this.BarType = 'YLJGDM'
this.BeginCode = false
this.areaclick = false
this.lastStatus.PlaceCode = this.PlaceCode
this.lastStatus.BackCLick = this.BackCLick
this.lastStatus.BarType = this.BarType
this.lastStatus.BeginCode = this.BeginCode
this.lastStatus.areaclick = this.areaclick
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 2
this.tablename = '社区'
this.thname = '医院'
} else if ('hospital' === this.userRole) {//社区角色
this.PlaceCode = sessionStorage.getItem("porgcode")
this._yljgdm = sessionStorage.getItem("organizcode")
this._group = "YWSJ"
this.pageLevel = 'sq'
this.closeareaclick = false
// this.PlaceCode = yldm
this.areaname = sessionStorage.getItem("organizcodeName")
this.BeginCode = false
this.communhidden = false
this.BarType = 'YWSJ'
this.homeinit()
this.reApplyCharts()
this.bottominit()
this.SheQuCode = 3
this.tablename = '时间'
this.thname = '月份'
}
this.resetPage()
sessionStorage.setItem("ScreenPage", 1)
},
components: {}
......
......@@ -7,7 +7,7 @@
<p>{{areaname}}</p>
</div>
<div class="area">
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="this.isShowBack">返回</el-button>
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="isShowBack">返回</el-button>
<el-button size="mini" @click="changeReplay()" type="primary">重置</el-button>
<el-date-picker v-model="cxsj" type="month" @change="dataSearch" align="left" size='mini' format="yyyy-MM"
value-format="yyyy-MM" :placeholder="sel"></el-date-picker>
......
......@@ -7,7 +7,7 @@
<p>{{areaname}}</p>
</div>
<div class="area">
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="this.isShowBack">返回</el-button>
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="isShowBack">返回</el-button>
<el-button size="mini" @click="changeReplay()" type="primary">重置</el-button>
<el-date-picker v-model="cxsj" type="month" @change="dataSearch" align="left" size='mini' format="yyyy-MM"
value-format="yyyy-MM" :placeholder="sel"></el-date-picker>
......
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