diff --git a/src/api/largeScreen/index.js b/src/api/largeScreen/index.js index ec2f433..0026c13 100644 --- a/src/api/largeScreen/index.js +++ b/src/api/largeScreen/index.js @@ -55,4 +55,4 @@ export function getXXMSG(query) { method: 'get', params: query }) -} \ No newline at end of file +} diff --git a/src/views/bigpage/bigcomponents/AdverseBox.vue b/src/views/bigpage/bigcomponents/AdverseBox.vue index 4b91dcd..1c80574 100644 --- a/src/views/bigpage/bigcomponents/AdverseBox.vue +++ b/src/views/bigpage/bigcomponents/AdverseBox.vue @@ -143,87 +143,126 @@ export default { let newRouter = this.$route.query; if (newRouter.type == 1) { //药品 - getDrugBL({ name: newRouter.code }).then((res) => { - res.data.result.forEach((value, index) => { - this.pieData.forEach((value1, index1) => { - if (value.reportType == "一般" && value1.name == "一般不良反应") { - this.pieData[index1].value = value.reportCount; - } - if (value.reportType == "严重" && value1.name == "严重不良反应") { - this.pieData[index1].value = value.reportCount; - } - if ( - value.reportType != "一般" && - value.reportType != "严重" && - value1.name == "发生死亡不良反应" - ) { - this.pieData[index1].value = value.reportCount; - } + getDrugBL({ name: newRouter.code }) + .then((res) => { + res.data.result.forEach((value, index) => { + this.pieData.forEach((value1, index1) => { + if ( + value.reportType == "一般" && + value1.name == "一般不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType == "严重" && + value1.name == "严重不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType != "一般" && + value.reportType != "严重" && + value1.name == "发生死亡不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + }); + }); + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); + }); + }) + .catch(() => { + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); }); }); - this.$nextTick(() => { - let chartDom = this.$refs["bottom-box"]; - this.myChart1 = echarts.init(chartDom); - this.initEcharts(); - }); - }); } if (newRouter.type != 1 && newRouter.type != 2) { //化妆品 - getCosmeticsBL({ name: newRouter.code }).then((res) => { - res.data.result.forEach((value, index) => { - this.pieData.forEach((value1, index1) => { - if (value.reportType == "一般" && value1.name == "一般不良反应") { - this.pieData[index1].value = value.reportCount; - } - if (value.reportType == "严重" && value1.name == "严重不良反应") { - this.pieData[index1].value = value.reportCount; - } - if ( - value.reportType != "一般" && - value.reportType != "严重" && - value1.name == "发生死亡不良反应" - ) { - this.pieData[index1].value = value.reportCount; - } + getCosmeticsBL({ name: newRouter.code }) + .then((res) => { + res.data.result.forEach((value, index) => { + this.pieData.forEach((value1, index1) => { + if ( + value.reportType == "一般" && + value1.name == "一般不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType == "严重" && + value1.name == "严重不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType != "一般" && + value.reportType != "严重" && + value1.name == "发生死亡不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + }); + }); + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); + }); + }) + .catch(() => { + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); }); }); - this.$nextTick(() => { - let chartDom = this.$refs["bottom-box"]; - this.myChart1 = echarts.init(chartDom); - this.initEcharts(); - }); - }); } if (newRouter.type == 2) { //医疗器械 - getMedicalDevicesBL({ name: newRouter.code }).then((res) => { - res.data.result.forEach((value, index) => { - this.pieData.forEach((value1, index1) => { - if ( - value.reportType == "严重伤害" && - value1.name == "严重不良反应" - ) { - this.pieData[index1].value = value.reportCount; - } - if (value.reportType == "其他" && value1.name == "一般不良反应") { - this.pieData[index1].value = value.reportCount; - } - if ( - value.reportType != "严重伤害" && - value.reportType != "其他" && - value1.name == "发生死亡不良反应" - ) { - this.pieData[index1].value = value.reportCount; - } + getMedicalDevicesBL({ name: newRouter.code }) + .then((res) => { + res.data.result.forEach((value, index) => { + this.pieData.forEach((value1, index1) => { + if ( + value.reportType == "严重伤害" && + value1.name == "严重不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType == "其他" && + value1.name == "一般不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + if ( + value.reportType != "严重伤害" && + value.reportType != "其他" && + value1.name == "发生死亡不良反应" + ) { + this.pieData[index1].value = value.reportCount; + } + }); + }); + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); + }); + }) + .catch(() => { + this.$nextTick(() => { + let chartDom = this.$refs["bottom-box"]; + this.myChart1 = echarts.init(chartDom); + this.initEcharts(); }); }); - this.$nextTick(() => { - let chartDom = this.$refs["bottom-box"]; - this.myChart1 = echarts.init(chartDom); - this.initEcharts(); - }); - }); } }, initEcharts() { diff --git a/src/views/bigpage/bigcomponents/informationBox.vue b/src/views/bigpage/bigcomponents/informationBox.vue index 28dbe11..0f8eef0 100644 --- a/src/views/bigpage/bigcomponents/informationBox.vue +++ b/src/views/bigpage/bigcomponents/informationBox.vue @@ -4,32 +4,32 @@
- + > -->
{{ countryC || 0 }}
-
+
国家检测次数
- + > -->
{{ provinceC || 0 }}
-
+
省级抽检次数
diff --git a/src/views/bigpage/index.vue b/src/views/bigpage/index.vue index bf4fa02..e3f44ad 100644 --- a/src/views/bigpage/index.vue +++ b/src/views/bigpage/index.vue @@ -27,7 +27,6 @@
-
@@ -40,10 +39,23 @@
-
复方枸杞子胶囊
+
{{ query.name }}
- 保健药 - OTC +
+ {{ query.type }} + {{ query.jx }} +
+
+ {{ query.type }} + {{ query.gllb }} + {{ query.jgtz }} +
+
+ {{ query.type }} +
@@ -74,7 +86,7 @@