-
@@ -50,64 +50,67 @@ export default {
await this.$nextTick();
const { rows } = await selectBatchInfo(this.baseId);
let product = [
- { name: '旱地', value: 3.5 },
+ { name: '旱地', value: 3.2 },
{ name: '果园', value: 1.2 },
- { name: '水浇地', value: 3.0 },
- { name: '沟渠', value: 0.4 },
- { name: '田坎', value: 0.4},
- { name: '茶园', value: 3.8 },
- { name: '设施农用地', value: 0.9 },
+ { name: '水浇地', value: 3.5 },
+ { name: '灌溉水田', value: 1.6 },
+ { name: '茶园', value: 3.5 },
+ { name: '菜地', value: 1.2 },
];
let option = {
- tooltip: {
- trigger: 'axis',
- showContent: false,
- axisPointer: {
- type: 'shadow',
- crossStyle: {
- color: '#999',
- },
- },
- },
+ // tooltip: {
+ // trigger: 'axis',
+ // showContent: false,
+ // axisPointer: {
+ // type: 'shadow',
+ // crossStyle: {
+ // color: '#999',
+ // },
+ // },
+ // },
grid: {
left: 30,
top: 20,
right: 20,
bottom: 20,
},
- xAxis: {
- type: 'category',
- // data: rows.map((item) => item.name),
- data: product.map((item) => item.name),
- axisLabel: {
- color: '#fff',
- },
- splitLine: {
- show: false, // 显示分割线
- lineStyle: {
- type: 'dashed', // 设置为虚线
- width: 0.5, // 分割线宽度
- },
- },
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- color: '#fff',
- },
- splitLine: {
- show: false, // 显示分割线
- lineStyle: {
- type: 'dashed', // 设置为虚线
- width: 0.5, // 分割线宽度
- },
- },
- },
+ // xAxis: {
+ // // show:false,
+ // type: 'category',
+ // // data: rows.map((item) => item.name),
+ // data: product.map((item) => item.name),
+ // axisLabel: {
+ // color: '#fff',
+ // },
+ // splitLine: {
+ // show: false, // 显示分割线
+ // lineStyle: {
+ // type: 'dashed', // 设置为虚线
+ // width: 0.5, // 分割线宽度
+ // },
+ // },
+ // },
+ // yAxis: {
+ // type: 'value',
+ // axisLabel: {
+ // color: '#fff',
+ // },
+ // splitLine: {
+ // show: false, // 显示分割线
+ // lineStyle: {
+ // type: 'dashed', // 设置为虚线
+ // width: 0.5, // 分割线宽度
+ // },
+ // },
+ // },
series: [
{
// data: rows.map((item) => item.value),
- data: product.map((item) => item.value),
- type: 'bar',
+ data:product,
+ type: 'pie',
+ roseType: 'area',
+ center: ['50%', '50%'],
+ radius: ['20%', '80%'],
emphasis: {
label: {
show: true,
@@ -121,22 +124,23 @@ export default {
barWidth: 20,
itemStyle: {
normal: {
- borderRadius: [20, 20, 0, 0],
- // color: (params) => {
- // return this.$colorList[params.dataIndex];
- // },
- color: {
- type: 'linear', // 线性渐变
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- { offset: 0, color: '#adf5a1' },
- { offset: 1, color: '#198905' },
- ],
- global: false, // 默认为 false
+ borderRadius: 8,
+ // borderRadius: [20, 20, 0, 0],
+ color: (params) => {
+ return this.$colorList[params.dataIndex];
},
+ // color: {
+ // type: 'linear', // 线性渐变
+ // x: 0,
+ // y: 0,
+ // x2: 0,
+ // y2: 1,
+ // colorStops: [
+ // { offset: 0, color: '#adf5a1' },
+ // { offset: 1, color: '#198905' },
+ // ],
+ // global: false, // 默认为 false
+ // },
},
},
},
@@ -151,7 +155,7 @@ export default {
},
},
mounted() {},
- methods:{
+ methods: {
handleCommand(data) {
console.info('handleCommand', data);
this.currentType = data;
@@ -179,7 +183,8 @@ export default {
}
}
.charts-content {
- width: calc(100% - 100px);
+ // width: calc(100% - 100px);
+ width: calc(100% - 0px);
height: 100%;
}
}
diff --git a/src/views/dataV/pageLand/plantArea.vue b/src/views/dataV/pageLand/plantArea.vue
deleted file mode 100644
index 96ca7f3..0000000
--- a/src/views/dataV/pageLand/plantArea.vue
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
-
-
-
-