diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue
index 7563fdc..42aaa3f 100644
--- a/src/views/copilot/efficiency/components/StdRate.vue
+++ b/src/views/copilot/efficiency/components/StdRate.vue
@@ -8,21 +8,13 @@
@@ -36,13 +28,13 @@ export default {
data() {
return {
cities: [
- { name: "A", target: 100, total: 200 },
- { name: "B", target: 200, total: 300 },
- { name: "C", target: 300, total: 400 },
- { name: "D", target: 400, total: 500 },
- { name: "E", target: 500, total: 600 },
- { name: "F", target: 400, total: 500 },
- { name: "G", target: 500, total: 600 },
+ { name: "瑞昌", target: 100, total: 200, thisYear: 20 },
+ { name: "邯郸", target: 200, total: 300, thisYear: 20 },
+ { name: "株洲", target: 300, total: 400, thisYear: 20 },
+ { name: "佳木斯", target: 400, total: 500, thisYear: 20 },
+ { name: "成都", target: 500, total: 600, thisYear: 20 },
+ { name: "凯盛光伏", target: 400, total: 500, thisYear: 20 },
+ { name: "蚌埠", target: 500, total: 600, thisYear: 20 },
],
};
},
diff --git a/src/views/copilot/efficiency/components/sub/CityName.vue b/src/views/copilot/efficiency/components/sub/CityName.vue
index 6483fce..f157336 100644
--- a/src/views/copilot/efficiency/components/sub/CityName.vue
+++ b/src/views/copilot/efficiency/components/sub/CityName.vue
@@ -46,11 +46,9 @@ export default {
position: absolute;
top: 50%;
right: 0;
- width: 0;
- height: 0;
- border-top: 8px solid transparent;
- border-bottom: 8px solid transparent;
- border-left: 8px solid #002f6b;
+ width: 2px;
+ background: linear-gradient(to top, transparent, #0b5be1ee, transparent);
+ height: 100%;
transform: translateY(-50%);
}
diff --git a/src/views/copilot/efficiency/components/sub/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/ProgressBar.vue
index b0c16be..4ae66f0 100644
--- a/src/views/copilot/efficiency/components/sub/ProgressBar.vue
+++ b/src/views/copilot/efficiency/components/sub/ProgressBar.vue
@@ -37,7 +37,9 @@ export default {
},
computed: {
dataRate() {
- return this.total == 0 ? "-" : `${parseInt(this.value / this.total)}%`;
+ return this.total == 0
+ ? "-"
+ : `${(parseFloat(this.value / this.total) * 100).toFixed(0)}%`;
},
},
methods: {},
@@ -46,10 +48,10 @@ export default {
diff --git a/src/views/copilot/efficiency/components/sub/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/StdRateItem.vue
index 6b3ed7c..e9422c1 100644
--- a/src/views/copilot/efficiency/components/sub/StdRateItem.vue
+++ b/src/views/copilot/efficiency/components/sub/StdRateItem.vue
@@ -7,10 +7,14 @@
@@ -24,23 +28,13 @@ export default {
components: { CityName, ProgressBar },
props: {
city: {
- type: String,
- default: "",
- },
- target: {
- type: Number,
- default: 0,
- },
- total: {
- type: Number,
- default: 0,
+ type: Object,
+ required: true,
},
},
data() {
return {};
},
- computed: {},
- methods: {},
};
@@ -58,7 +52,8 @@ export default {
flex: 1;
margin: 6px;
display: flex;
- gap: 2px;
+ gap: 12px;
+ height: 60px;
flex-direction: column;
justify-content: center;
}