Quellcode durchsuchen

fix:质量大屏页面调整

luoxiao vor 3 Tagen
Ursprung
Commit
d196cb6ffc

+ 1 - 4
src/api/screens/index.ts

@@ -45,13 +45,10 @@ export function unqualifiedProductDetail(type: number) {
 }
 
 // 质量一致性检验
-export function qualityConsistentInspection(type) {
+export function qualityConsistentInspection() {
   return request({
     url: `/data/inspectionCheck`,
     method: "get",
-    params: {
-      type: type,
-    },
   });
 }
 

+ 1 - 1
src/views/screens/qualityScreen.vue

@@ -63,7 +63,7 @@ const qualityBottom03 = computed(() => {
 
 <style lang="scss" scoped>
 .top-container {
-  height: 50%;
+  height: 45%;
   width: 100%;
   display: flex;
   justify-content: center;

+ 4 - 4
src/views/screens/screen-components/QualityConsistencyInspection.vue

@@ -105,7 +105,7 @@ const updateChart = () => {
         top: 10,
         textStyle: {
           color: "#fff",
-          fontSize: 16,
+          fontSize: 14,
           fontWeight: "bold",
         },
         subtextStyle: {
@@ -138,7 +138,7 @@ const updateChart = () => {
       {
         name: "检验项目",
         type: "pie",
-        radius: ["40%", "60%"],
+        radius: ["30%", "40%"],
         center: ["50%", "50%"],
         avoidLabelOverlap: false,
         selectedMode: "multiple", // 允许多个扇区同时选中
@@ -151,14 +151,14 @@ const updateChart = () => {
         label: {
           show: true,
           formatter: "{b}",
-          fontSize: 12,
+          fontSize: 10,
           color: "#fff",
           fontWeight: "normal",
         },
         labelLine: {
           show: true,
           length: 20,
-          length2: 30,
+          length2: 20,
           smooth: 0.2,
         },
         data: currentItem.optionList.map((item, index) => ({

+ 1 - 1
src/views/screens/screen-components/QualityGoal.vue

@@ -214,7 +214,7 @@ const updateChart = () => {
       },
     },
     grid: {
-      top: "10%",
+      top: "15%",
       right: "12%",
       bottom: "15%",
       left: "8%",

+ 3 - 3
src/views/screens/screen-components/SingleProductionQuantityCompletion.vue

@@ -150,7 +150,7 @@ const updateChart = () => {
     },
     legend: {
       data: ["目标成品率", "实际成品率"],
-      bottom: 35,
+      bottom: 15,
       textStyle: {
         color: "#fff",
       },
@@ -158,9 +158,9 @@ const updateChart = () => {
       itemHeight: 10,
     },
     grid: {
-      top: "10%",
+      top: "15%",
       right: "10%",
-      bottom: "15%",
+      bottom: "11.5%",
       left: "10%",
       containLabel: true,
     },