|
@@ -440,7 +440,13 @@ function drawPie(type) {
|
|
|
chartDom.value = document.getElementById("pie");
|
|
chartDom.value = document.getElementById("pie");
|
|
|
myChart.value = echarts.init(chartDom.value);
|
|
myChart.value = echarts.init(chartDom.value);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ indexData.value.finshDiscTons == 0 &&
|
|
|
|
|
+ indexData.value.unfinshDiscTons == 0
|
|
|
|
|
+ ) {
|
|
|
|
|
+ myChart.value.clear();
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
let option;
|
|
let option;
|
|
|
option = {
|
|
option = {
|
|
|
grid: {
|
|
grid: {
|
|
@@ -456,8 +462,8 @@ function drawPie(type) {
|
|
|
type: "pie",
|
|
type: "pie",
|
|
|
radius: ["60%", "85%"],
|
|
radius: ["60%", "85%"],
|
|
|
data: [
|
|
data: [
|
|
|
- { value: indexData.value.finshDiscTons || 0, name: "已卸货吨位" },
|
|
|
|
|
- { value: indexData.value.unfinshDiscTons || 0, name: "剩余卸货吨位" },
|
|
|
|
|
|
|
+ { value: indexData.value.finshDiscTons, name: "已卸货吨位" },
|
|
|
|
|
+ { value: indexData.value.unfinshDiscTons, name: "剩余卸货吨位" },
|
|
|
],
|
|
],
|
|
|
emphasis: {
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
itemStyle: {
|