|
|
|
@ -97,18 +97,18 @@ export default {
|
|
|
|
|
getData() {
|
|
|
|
|
let newRouter = this.$route.query;
|
|
|
|
|
getCPCJ({ name: newRouter.code }).then((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;
|
|
|
|
|
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);
|
|
|
|
@ -192,13 +192,13 @@ export default {
|
|
|
|
|
// 各分区样式: value值,name表示各分区的标识、itemStyle模块样式
|
|
|
|
|
// 注意: name与上面的legend-data中必须保持一致,才可展示按钮组
|
|
|
|
|
{
|
|
|
|
|
value: 39,
|
|
|
|
|
value: "1",
|
|
|
|
|
name: "生产抽样环节",
|
|
|
|
|
// percent: "39",
|
|
|
|
|
// itemStyle: { color: "#007EFF" },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 21,
|
|
|
|
|
value: "1",
|
|
|
|
|
name: "流通环节抽样",
|
|
|
|
|
// percent: "21",
|
|
|
|
|
// itemStyle: { color: "#2CD8EC" },
|
|
|
|
|