From 45792b3776cda2e1ada31755ffc226a663f90b48 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 19 三月 2025 15:32:23 +0800
Subject: [PATCH] 锁屏功能

---
 src/views/structural/capabilityAndLaboratory/capability/index.vue |   34 ++++++----------------------------
 1 files changed, 6 insertions(+), 28 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue
index 273644e..f130807 100644
--- a/src/views/structural/capabilityAndLaboratory/capability/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -10,7 +10,7 @@
         </el-col>
         <el-col :span="12" style="text-align: right;">
           <el-upload v-if="radio === 0" ref='upload1' style="display: inline;margin-right: 8px" :action="uploadAction1"
-            :before-upload="beforeUpload1" :headers="token" :on-error="onError1" :on-success="handleSuccessUp1"
+            :before-upload="beforeUpload1" :headers="uploadHeader" :on-error="onError1" :on-success="handleSuccessUp1"
             :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'>
             <el-button size="small" type="primary">瀵煎叆</el-button>
           </el-upload>
@@ -31,8 +31,8 @@
             @keyup.enter.native="refreshTable()">
           </el-input>
         </el-form-item>
-        <el-form-item label="妫�楠屽璞�" prop="specimenName">
-          <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="itemParameterForm.specimenName"
+        <el-form-item label="妫�楠屽璞�" prop="sample">
+          <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="itemParameterForm.sample"
             @keyup.enter.native="refreshTable()">
           </el-input>
         </el-form-item>
@@ -81,9 +81,9 @@
     </el-dialog>
     <el-dialog :visible.sync="uploadDia" title="鏁版嵁瀵煎叆" width="500px">
       <div style="margin: 0 auto;">
-        <el-upload ref="upload" :action="uploadAction" :auto-upload="false" :file-list="fileList" :headers="token"
-          :limit="1" :on-change="beforeUpload" :on-error="onError" :on-success="onSuccess" accept=".xlsx" drag
-          name="file">
+        <el-upload ref="upload" :action="uploadAction" :auto-upload="false" :file-list="fileList"
+          :headers="uploadHeader" :limit="1" :on-change="beforeUpload" :on-error="onError" :on-success="onSuccess"
+          accept=".xlsx" drag name="file">
           <i class="el-icon-upload"></i>
           <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
         </el-upload>
@@ -210,28 +210,6 @@
         { label: '妫�楠屽璞N', prop: 'specimenNameEn' },
         { label: '浜у搧', prop: 'product' },
         { label: '瀵硅薄浠e彿', prop: 'code' },
-        {
-          label: '瀵硅薄绫诲瀷', prop: 'objectType',
-          dataType: 'tag',
-          formatData: (params) => {
-            if (params == 1) {
-              return '鍘熸潗鏂�'
-            } else if (params == 2) {
-              return '鎴愬搧'
-            } else {
-              return '杈呮潗'
-            }
-          },
-          formatType: (params) => {
-            if (params == 1) {
-              return 'success'
-            } else if (params == 2) {
-              return 'info'
-            } else {
-              return 'warning'
-            }
-          }
-        },
         { label: '鍒涘缓浜�', prop: 'createUserName' },
         { label: '鏇存柊浜�', prop: 'updateUserName' },
         { label: '鍒涘缓鏃堕棿', prop: 'createTime' },

--
Gitblit v1.9.3