From c34fe6f588045e527bccfd4c67b9764b2a141ea2 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期三, 26 二月 2025 15:24:41 +0800
Subject: [PATCH] 设施和环境条件代码迁移

---
 src/views/structural/premises/index.vue |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/views/structural/premises/index.vue b/src/views/structural/premises/index.vue
index 8ff0e53..0cb76e1 100644
--- a/src/views/structural/premises/index.vue
+++ b/src/views/structural/premises/index.vue
@@ -22,8 +22,9 @@
       </div>
     </div>
     <div class="table">
-      <lims-table :tableData="tableData" :column="column" :height="'calc(100vh - 250px)'" @pagination="pagination"
-        :page="page" :tableLoading="tableLoading"></lims-table>
+      <lims-table :tableData="tableData" :column="column"
+                  :height="'calc(100vh - 250px)'" @pagination="pagination"
+                  :page="page" :tableLoading="tableLoading"></lims-table>
     </div>
     <!--    鏂板瀹為獙瀹�-->
     <el-dialog :title="formTitle" :visible.sync="addDia" width="450px">
@@ -67,9 +68,9 @@
             placeholder="璇烽�夋嫨" size="small" style="width:100%" collapse-tags clearable></el-cascader>
         </el-form-item>
         <el-form-item label="鍗扮珷鍥剧墖" prop="address">
-          <el-upload class="avatar-uploader" :action="action" :headers="headers" accept='image/jpg,image/jpeg,image/png'
-            :show-file-list="false" :on-success="handleSuccess" :on-change="beforeUpload" ref="upload"
-            :on-error="onError">
+          <el-upload class="avatar-uploader" :action="action" :headers="uploadHeader"
+            accept='image/jpg,image/jpeg,image/png' :show-file-list="false" :on-success="handleSuccess"
+            :on-change="beforeUpload" ref="upload" :on-error="onError">
             <img v-if="dataForm.address" :src="javaApi + '/img/' + dataForm.address" class="avatar">
             <i v-else class="el-icon-plus avatar-uploader-icon"></i>
           </el-upload>
@@ -94,18 +95,12 @@
   upParameter
 } from "@/api/structural/laboratoryScope";
 import { getCertificationDetail } from "@/api/structural/laboratory";
-import { getToken } from "@/utils/auth";
 export default {
   components: {
     limsTable
 
   },
   computed: {
-    headers() {
-      return {
-        'Authorization': "Bearer " + getToken()
-      }
-    },
     action() {
       return this.javaApi
     }

--
Gitblit v1.9.3