+
@@ -22,12 +22,14 @@
>
-
+
@@ -73,10 +75,15 @@ export default {
},
total: 0,
load1: false,
+ height: 0,
};
},
created() {},
mounted() {
+ this.$nextTick(() => {
+ this.height =
+ this.$refs.basic.offsetHeight - this.$refs.pagination.offsetHeight;
+ });
this.getList();
},
methods: {
@@ -103,7 +110,7 @@ export default {
.Basic-box {
margin-top: 10px;
width: 100%;
- height: 300px;
+ height: calc(100% - 41px - 10px);
// padding: 0 11px 11px 11px;
overflow-y: auto;
background-color: transparent;
diff --git a/src/views/bigpage/bigcomponents/informationBox.vue b/src/views/bigpage/bigcomponents/informationBox.vue
index 3ef268a..28dbe11 100644
--- a/src/views/bigpage/bigcomponents/informationBox.vue
+++ b/src/views/bigpage/bigcomponents/informationBox.vue
@@ -4,7 +4,17 @@
-
12 次
+
+
+ {{ countryC || 0 }} 次
+
+
+
国家检测次数
@@ -13,11 +23,11 @@
- 1221111121212121 次
+ {{ provinceC || 0 }} 次
@@ -26,8 +36,9 @@
-
12%
-
+
+ {{ pt }}%
+
抽检合格率
@@ -69,6 +80,13 @@ export default {
// echarts
myChart2: {},
//==============
+ provinceC: 0,
+ countryC: 0,
+ //合格率
+ pt: 0,
+ //抽样类型
+ sccy: 0,
+ ltcy: 0,
};
},
created() {},
@@ -79,7 +97,18 @@ export default {
getData() {
let newRouter = this.$route.query;
getCPCJ({ name: newRouter.code }).then((res) => {
- console.log(res);
+ // res.data.result.forEach((value, index) => {
+ // if (value.sampleType == 1) {
+ // this.provinceC += 1;
+ // } else if (value.sampleType == 2) {
+ // this.countryC += 1;
+ // }
+ // });
+ this.countryC = 12;
+ this.provinceC = 12;
+ this.pt = 67;
+ this.sccy = 60;
+ this.ltcy = 40;
this.$nextTick(() => {
let chartDom = this.$refs["left-echart"];
this.myChart1 = echarts.init(chartDom);
@@ -92,6 +121,7 @@ export default {
},
initEcharts() {
this.option1 = {
+ color: ["#007EFF", "#2CD8EC"],
tooltip: {
trigger: "item",
// formatter: "{a}
{b}: {c} ({d}%)", // 鼠标悬浮在各分区时的提示内容
@@ -111,20 +141,27 @@ export default {
"padding: 10px; background-color: rgba(0, 0, 0, 0.7); color: #fff;", // 设置提示框的样式
},
legend: {
+ orient: "horizontal",
bottom: 0,
- left: "center",
+ itemWidth: 10,
+ itemHeight: 10,
+ itemGap: 25,
data: ["生产抽样环节", "流通环节抽样"],
textStyle: {
color: "auto",
- fontSize: 14,
+ fontSize: 12,
},
},
series: [
{
name: "",
type: "pie",
- radius: ["50%", "70%"],
+ radius: ["45%", "70%"],
center: ["50%", "40%"], // 调整 y 值为 '40%',使饼图向上位移
+ // itemStyle:{
+ // borderWidth:1, //设置border的宽度有多大
+ // borderColor:'#fff',
+ // },
labelLine: {
normal: {
length: 15, // 指示线宽度
@@ -157,14 +194,14 @@ export default {
{
value: 39,
name: "生产抽样环节",
- percent: "39",
- itemStyle: { color: "#007EFF" },
+ // percent: "39",
+ // itemStyle: { color: "#007EFF" },
},
{
value: 21,
name: "流通环节抽样",
- percent: "21",
- itemStyle: { color: "#2CD8EC" },
+ // percent: "21",
+ // itemStyle: { color: "#2CD8EC" },
},
],
},
@@ -205,7 +242,7 @@ export default {
axisTick: {
show: false,
},
- data: ["辽宁", "黑龙江", "北京", "上海", "深圳", "苏州"],
+ data: ["辽宁", "江苏", "湖南", "山西", "湖北", "山东"],
},
],
yAxis: [
@@ -237,7 +274,7 @@ export default {
series: [
{
type: "bar",
- barWidth: "10",
+ barWidth: "16",
itemStyle: {
normal: {
color: {
@@ -247,13 +284,14 @@ export default {
x2: 0,
y2: 1,
colorStops: [
+ // background: linear-gradient(0deg, #21B5E1 100%);
{
offset: 0,
color: "rgba(33,181,225,1)", // 起始颜色
},
{
offset: 1,
- color: "rgba(0,0,0,0.1)", // 结束颜色
+ color: "rgba(6,31,55,0.1)", // 结束颜色
},
],
},
@@ -263,6 +301,7 @@ export default {
// }
},
},
+
data: [12, 15, 17, 20, 25, 26],
},
],
@@ -280,7 +319,7 @@ export default {
.top-box {
margin: 10px 0;
height: 85px;
- width: 100%F;
+ width: 100%;
display: flex;
justify-content: space-around;
diff --git a/src/views/bigpage/bigcomponents/riskinformationList.vue b/src/views/bigpage/bigcomponents/riskinformationList.vue
index ec4d61e..0e30dce 100644
--- a/src/views/bigpage/bigcomponents/riskinformationList.vue
+++ b/src/views/bigpage/bigcomponents/riskinformationList.vue
@@ -1,113 +1,110 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ background-color: rgba(0, 50, 150, 0.1) !important;
+}
+
\ No newline at end of file
diff --git a/src/views/bigpage/index.vue b/src/views/bigpage/index.vue
index 204188c..bf4fa02 100644
--- a/src/views/bigpage/index.vue
+++ b/src/views/bigpage/index.vue
@@ -43,9 +43,7 @@
复方枸杞子胶囊
保健药
- 保健药
- 保健药
- 保健药
+ OTC
@@ -58,7 +56,10 @@