调用接口

main
李劲龙 1 year ago
parent 60811e4003
commit 265677dbef

@ -27,9 +27,10 @@
<span></span> <span></span>
</div> </div>
<div class="topbox-item-right"> <div class="topbox-item-right">
<div class="redStyle">较去年</div> <!-- <div class="redStyle">较去年</div> -->
<span class="spanxia"></span> <div >较去年</div>
<!-- <span class="spanshang"></span> --> <!-- <span class="spanxia"></span> -->
<span class="spanshang"></span>
</div> </div>
</div> </div>
<div class="topbox-item"> <div class="topbox-item">
@ -42,9 +43,10 @@
<span></span> <span></span>
</div> </div>
<div class="topbox-item-right"> <div class="topbox-item-right">
<div class="redStyle">较去年</div> <!-- <div class="redStyle">较去年</div> -->
<span class="spanxia"></span> <div >较去年</div>
<!-- <span class="spanshang"></span> --> <!-- <span class="spanxia"></span> -->
<span class="spanshang"></span>
</div> </div>
</div> </div>
</div> </div>

@ -97,18 +97,18 @@ export default {
getData() { getData() {
let newRouter = this.$route.query; let newRouter = this.$route.query;
getCPCJ({ name: newRouter.code }).then((res) => { getCPCJ({ name: newRouter.code }).then((res) => {
// res.data.result.forEach((value, index) => { res.data.result.forEach((value, index) => {
// if (value.sampleType == 1) { if (value.sampleType == 1) {
// this.provinceC += 1; this.provinceC += 1;
// } else if (value.sampleType == 2) { } else if (value.sampleType == 2) {
// this.countryC += 1; this.countryC += 1;
// } }
// }); });
this.countryC = 12; // this.countryC = 12;
this.provinceC = 12; // this.provinceC = 12;
this.pt = 67; // this.pt = 67;
this.sccy = 60; // this.sccy = 60;
this.ltcy = 40; // this.ltcy = 40;
this.$nextTick(() => { this.$nextTick(() => {
let chartDom = this.$refs["left-echart"]; let chartDom = this.$refs["left-echart"];
this.myChart1 = echarts.init(chartDom); this.myChart1 = echarts.init(chartDom);
@ -192,13 +192,13 @@ export default {
// : valuenameitemStyle // : valuenameitemStyle
// : namelegend-data // : namelegend-data
{ {
value: 39, value: "1",
name: "生产抽样环节", name: "生产抽样环节",
// percent: "39", // percent: "39",
// itemStyle: { color: "#007EFF" }, // itemStyle: { color: "#007EFF" },
}, },
{ {
value: 21, value: "1",
name: "流通环节抽样", name: "流通环节抽样",
// percent: "21", // percent: "21",
// itemStyle: { color: "#2CD8EC" }, // itemStyle: { color: "#2CD8EC" },

@ -346,6 +346,8 @@ export default {
font-weight: 400; font-weight: 400;
color: #9CB4E2; color: #9CB4E2;
line-height: 18px; line-height: 18px;
overflow: hidden;
padding-right: 30px;
} }
} }
} }
@ -418,5 +420,6 @@ export default {
// //
// ::v-deep .el-loading-spinner .el-loading-text{ // ::v-deep .el-loading-spinner .el-loading-text{
// color: #005432; // color: #005432;
// }</style> // }
</style>
Loading…
Cancel
Save