zouyu
2025-03-18 bc44c8e3c9d85691ce3fa73ef1300a6fae46e365
src/views/business/inspectionTask/Inspection.vue
@@ -3383,7 +3383,11 @@
import excelFunction from "@/utils/excelFountion";
import { mapGetters } from "vuex";
import { getToken } from "@/utils/auth";
import Big from "big.js";
import InspectionWorker from "../../../workers/InspectionWorker.worker";
import InspectionWorkerAsData from "../../../workers/InspectionWorkerAsData.worker";
export default {
  name: "Inspection",
  components: {
    limsTable,
  },
@@ -3785,7 +3789,6 @@
    this.getComparisonList();
    this.getAuthorizedPerson();
    this.scrollInit();
    // this.getPower();
    this.startWorker();
  },
  watch: {
@@ -5060,12 +5063,12 @@
        this.stopWorker(); // 确保之前的 Worker 已停止
      }
      // 创建 Worker 实例
      this.worker = new Worker("/static/js/worker.js");
      this.worker = new InspectionWorker();
      if (this.worker0) {
        this.stopWorker(); // 确保之前的 Worker 已停止
      }
      // 创建 Worker 实例
      this.worker0 = new Worker("/static/js/worker0.js");
      this.worker0 = new InspectionWorkerAsData();
    },
    // 停止多线程
    stopWorker() {
@@ -6844,7 +6847,7 @@
          )
        ) {
          if (parseFloat(n.v.v) >= 100000) {
            let num2 = new this.$Big(n.v.v);
            let num2 = new Big(n.v.v);
            n.v.v = num2.toExponential();
          }
        }