瀏覽代碼

设备提交

dengrui 1 周之前
父節點
當前提交
3a1a15f29d
共有 6 個文件被更改,包括 6725 次插入5396 次删除
  1. 6724 5390
      pnpm-lock.yaml
  2. 0 0
      public/device/CZSB.png
  3. 0 0
      public/device/JCY.png
  4. 0 0
      public/device/PAC.png
  5. 0 0
      public/device/TS.png
  6. 1 6
      src/views/report/statistics/screens/line/index.vue

文件差異過大導致無法顯示
+ 6724 - 5390
pnpm-lock.yaml


public/images/b.png → public/device/CZSB.png


public/images/d.png → public/device/JCY.png


public/images/c.png → public/device/PAC.png


public/images/a.png → public/device/TS.png


+ 1 - 6
src/views/report/statistics/screens/line/index.vue

@@ -85,7 +85,7 @@
                 >
                   <div class="img">
                     <el-image
-                      :src="`/images/${getRandomLetter()}.png`"
+                      :src="`/device/${item.deviceType}.png`"
                       class="img"
                     />
                     <div
@@ -246,11 +246,6 @@ const setFontSize = () => {
 };
 const charts2 = shallowRef(null);
 const chartsData2 = ref([]);
-const getRandomLetter = () => {
-  const letters = ["a", "b", "c", "d"];
-  const randomIndex = Math.floor(Math.random() * letters.length);
-  return letters[randomIndex];
-};
 const getData4 = async () => {
   //不合格品统计
   const { data } = await getFaultCount();