From c43faa47954d820d3b92eb1db113197e4bea67a4 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 24 二月 2025 11:42:00 +0800
Subject: [PATCH] 纠正措施搬迁

---
 src/views/business/inspectionTask/inspection.vue |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue
index 9b70b4e..bf4b3d9 100644
--- a/src/views/business/inspectionTask/inspection.vue
+++ b/src/views/business/inspectionTask/inspection.vue
@@ -291,7 +291,7 @@
                       state == 1
                     "><span :style="`font-family:${n.v.ff} !important;`">{{
                       toFixed(n.v.v, n.v.ct)
-                    }}</span></template>
+                        }}</span></template>
                     <template v-else-if="
                       n.v.ps != undefined &&
                       n.v.ps.value === '鏈�缁堝��' &&
@@ -338,7 +338,7 @@
       </div>
       <el-upload v-if="state == 1" ref="upload" :action="action" :before-upload="beforeUpload" :data="{
         orderId: id,
-      }" :headers="headers" :on-error="onError" :on-success="handleSuccessUp" :show-file-list="false"
+      }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp" :show-file-list="false"
         accept=".jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar"
         style="width: 80px !important;margin-top: 10px;">
         <el-button v-if="state == 1" size="small" type="primary">闄勪欢涓婁紶</el-button></el-upload>
@@ -546,7 +546,6 @@
 import DataWorker from '../../../DataWorker.worker';
 import html2canvas from "html2canvas";
 import { mapGetters } from "vuex";
-import { getToken } from "@/utils/auth";
 export default {
   name: 'inspection',
   components: {
@@ -770,11 +769,6 @@
   // 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭�
   computed: {
     ...mapGetters(["userId"]),
-    headers() {
-      return {
-        'Authorization': "Bearer " + getToken()
-      };
-    },
     action() {
       return this.javaApi + "/insOrderPlan/uploadFile";
     },

--
Gitblit v1.9.3