+
+
+
+
+ {{ collapsechange ? '收起' : ' 展开' }}
+
+
+
+
+
+
{{ echartstitle }}类型统计
+
+
-
-
-
-
{{ echartstitle }}类型统计
-
+
@@ -76,6 +87,8 @@ export default {
},
mylayer: null,
myChart: null,
+ myChart2: null,
+ myChart3: null,
mygeojson: null,
mystort: null,
mystortTow: null,
@@ -93,8 +106,6 @@ export default {
type: String,
default: '档案'
},
-
-
},
created() { },
@@ -104,6 +115,8 @@ export default {
this.mystortTow = this.$store.getters.usersort
this.$nextTick(() => {
this.myChart = echarts.init(document.getElementById("echarts"));
+ this.myChart2 = echarts.init(document.getElementById("echarts2"));
+ this.myChart3 = echarts.init(document.getElementById("echarts3"));
this.isEcharts()
this.initMap()
});
@@ -266,7 +279,7 @@ export default {
},
},
}],
-
+
yAxis: [{
type: 'value'
}],
@@ -283,6 +296,8 @@ export default {
};
this.myChart.setOption(option, true);
+ this.myChart2.setOption(option, true);
+ this.myChart3.setOption(option, true);
},
@@ -348,6 +363,8 @@ export default {
let that = this;
erd.listenTo(document.getElementById("echarts"), function (element) {
that.myChart.resize();
+ that.myChart2.resize();
+ that.myChart3.resize();
that.globalMap.fitBounds(that.mygeojson.getBounds());
})
@@ -513,6 +530,14 @@ export default {
width: 45vw;
height: 60vh;
}
+ .echarts2 {
+ width: 45vw;
+ height: 60vh;
+ }
+ .echarts3 {
+ width: 45vw;
+ height: 60vh;
+ }
.box1 {
width: 45vw;
diff --git a/src/views/components/MapCarsLog.vue b/src/views/components/MapCarsLog.vue
index 481285d..325bce3 100644
--- a/src/views/components/MapCarsLog.vue
+++ b/src/views/components/MapCarsLog.vue
@@ -97,6 +97,10 @@ export default {
type: String,
default: ''
},
+ Leixtypes: {
+ type: String,
+ default: '1'
+ },
},
created() { },
@@ -116,7 +120,10 @@ export default {
async isEcharts() {
this.chartDatatow = []
this.chartData = []
- if (this.echartstitle == "医疗器械" && this.mytype != "healtson") {
+ if (this.mytype == "healtson") {
+ return
+ }
+ if (this.echartstitle == "医疗器械") {
let msg1 = await this.$api.apparatus.typecount({ area: this.mystortTow });
if (msg1.code == 200) {
msg1.data.forEach(item => {
@@ -202,6 +209,7 @@ export default {
this.mycharts()
},
async isLefleat(data = '1') {
+ console.log(data);
this.cityData = {
沈阳市: 0,
大连市: 0,
@@ -228,13 +236,19 @@ export default {
jiekou("deasCorpTcmpFilingChangeHis")
} else if (this.echartstitle == "化妆品/注册备案品种") {
let msg2 = await this.$api.apparatus["gccpareacount"]({ area: data })
-
if (msg2.code == 200) {
msg2.data.forEach(item => {
-
this.cityData[item.area] = item.count
+ if (item.area == "自由贸易试验区沈阳片区") {
+ this.chartDatatow.unshift(item.count)
+ this.chartData.unshift(item.area)
+ }else{
+ this.chartDatatow.push(item.count)
+ this.chartData.push(item.area)
+ }
})
+ this.mycharts()
}
this.initPoitCenter(this.cityData);
@@ -353,7 +367,7 @@ export default {
this.globalMap.on('click', () => {
this.globalMap.fitBounds(this.mygeojson.getBounds());
})
- this.isLefleat('1')
+ this.isLefleat(this.Leixtypes)
},
diff --git a/src/views/index.vue b/src/views/index.vue
index 6b4fc2d..555f2fc 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -26,7 +26,7 @@
{{
- itemb.meta.title }}
+ itemb.meta.title }}
@@ -40,13 +40,22 @@
+
{{
+ $router.currentRoute.meta.topTitle ||
+ $router.currentRoute.meta.title }}
+