|
|
|
@ -132,7 +132,23 @@ export default {
|
|
|
|
|
this.chartDatatow = []
|
|
|
|
|
this.chartData = []
|
|
|
|
|
if (this.echartstitle == "医疗器械") {
|
|
|
|
|
let msg1 = await this.$api.apparatus.typecount({ area: this.mystortTow });
|
|
|
|
|
let cities = {
|
|
|
|
|
'沈阳市': 210100000000,
|
|
|
|
|
'大连市': 210200000000,
|
|
|
|
|
'鞍山市': 210300000000,
|
|
|
|
|
'抚顺市': 210400000000,
|
|
|
|
|
'本溪市': 210500000000,
|
|
|
|
|
'丹东市': 210600000000,
|
|
|
|
|
'锦州市': 210700000000,
|
|
|
|
|
'营口市': 210800000000,
|
|
|
|
|
'阜新市': 210900000000,
|
|
|
|
|
'辽阳市': 211000000000,
|
|
|
|
|
'盘锦市': 211100000000,
|
|
|
|
|
'铁岭市': 211200000000,
|
|
|
|
|
'朝阳市': 211300000000,
|
|
|
|
|
'葫芦岛市': 211400000000
|
|
|
|
|
}
|
|
|
|
|
let msg1 = await this.$api.apparatus.typecount({ area:cities[this.mystortTow] });
|
|
|
|
|
if (msg1.code == 200) {
|
|
|
|
|
msg1.data.forEach(item => {
|
|
|
|
|
this.chartDatatow.push(item.count)
|
|
|
|
@ -237,7 +253,46 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
let _this = this
|
|
|
|
|
if (this.echartstitle == "医疗器械") {
|
|
|
|
|
jiekou("ylqxJnyelcpareacount")
|
|
|
|
|
// jiekou("ylqxJnyelcpareacount")
|
|
|
|
|
let cities = {
|
|
|
|
|
210100000000: '沈阳市',
|
|
|
|
|
210200000000: '大连市',
|
|
|
|
|
210300000000: '鞍山市',
|
|
|
|
|
210400000000: '抚顺市',
|
|
|
|
|
210500000000: '本溪市',
|
|
|
|
|
210600000000: '丹东市',
|
|
|
|
|
210700000000: '锦州市',
|
|
|
|
|
210800000000: '营口市',
|
|
|
|
|
210900000000: '阜新市',
|
|
|
|
|
211000000000: '辽阳市',
|
|
|
|
|
211100000000: '盘锦市',
|
|
|
|
|
211200000000: '铁岭市',
|
|
|
|
|
211300000000: '朝阳市',
|
|
|
|
|
211400000000: '葫芦岛市'
|
|
|
|
|
}
|
|
|
|
|
let msg2 = await _this.$api.apparatus["ylqxJnyelcpareacount"](_this.form)
|
|
|
|
|
if (msg2.code == 200) {
|
|
|
|
|
msg2.data.forEach(item => {
|
|
|
|
|
_this.cityData[cities[item.area]] = item.count || item.countOne
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
if (_this.mytype == "healtson") {
|
|
|
|
|
_this.cartData.forEach((item) => {
|
|
|
|
|
var foundItem = msg2.data.find(data => data.area == item);
|
|
|
|
|
if (foundItem) {
|
|
|
|
|
_this.chartDatatow.push(foundItem.count || foundItem.countOne)
|
|
|
|
|
_this.chartData.push(foundItem.area)
|
|
|
|
|
} else {
|
|
|
|
|
_this.chartDatatow.push(0)
|
|
|
|
|
_this.chartData.push(item)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_this.initPoitCenter(_this.cityData);
|
|
|
|
|
if (_this.mytype == "healtson") {
|
|
|
|
|
_this.mycharts()
|
|
|
|
|
}
|
|
|
|
|
} else if (this.echartstitle == "药品") {
|
|
|
|
|
jiekou("vRdgYpwhGxwztareacount")
|
|
|
|
|
} else if (this.echartstitle == "传统中药") {
|
|
|
|
@ -321,7 +376,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
ops(chartData, chartDatatow,bzc) {
|
|
|
|
|
ops(chartData, chartDatatow, bzc) {
|
|
|
|
|
return {
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: 'axis',
|
|
|
|
@ -392,8 +447,8 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
Yaotongyi(data) {
|
|
|
|
|
this.myChart2.setOption(this.ops(this.chartDataYao1, this.chartDatatowYao1,15), true);
|
|
|
|
|
this.myChart3.setOption(this.ops(this.chartDataYao2, this.chartDatatowYao2,2), true);
|
|
|
|
|
this.myChart2.setOption(this.ops(this.chartDataYao1, this.chartDatatowYao1, 15), true);
|
|
|
|
|
this.myChart3.setOption(this.ops(this.chartDataYao2, this.chartDatatowYao2, 2), true);
|
|
|
|
|
},
|
|
|
|
|
initMap() {
|
|
|
|
|
this.globalMap = L.map("leafletMap", {
|
|
|
|
|