From 8a5b59a9adeef9e0a65890956885fd43ed678216 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 25 二月 2025 17:52:56 +0800
Subject: [PATCH] 质量监控计划

---
 src/views/CNAS/process/ensureResultsValidity/index.vue |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/views/CNAS/process/ensureResultsValidity/index.vue b/src/views/CNAS/process/ensureResultsValidity/index.vue
index 04828cc..7630d0b 100644
--- a/src/views/CNAS/process/ensureResultsValidity/index.vue
+++ b/src/views/CNAS/process/ensureResultsValidity/index.vue
@@ -132,7 +132,7 @@
       </div>
       <div style="margin: 0 auto;">
         <el-upload ref="upload" :action="action" :auto-upload="false" :file-list="fileList"
-                   :headers="headers" :limit="1"
+                   :headers="uploadHeader" :limit="1"
                    accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar'
                    :on-change="beforeUpload" :on-error="onError" :on-success="handleSuccessUp" drag
                    :data="{planYear: planYear, examineUserId: examineUserId}"
@@ -153,8 +153,7 @@
         <el-input v-model="approvalRemarks" :disabled="this.ratifyStatus === 1" type="textarea"></el-input>
       </div>
       <div style="margin: 0 auto;">
-        <el-upload ref="upload1" :action="action1" :auto-upload="false"
-                   :data="{qualityMonitorDetailsId: qualityMonitorDetailsId}" :file-list="fileList1" :headers="headers"
+        <el-upload ref="upload1" :action="action1" :auto-upload="false" :data="{qualityMonitorDetailsId: qualityMonitorDetailsId}" :file-list="fileList1" :headers="uploadHeader"
                    :limit="1"
                    :on-change="beforeUpload1" :on-error="onError1" :on-success="onSuccess1" accept='.doc,.docx'
                    drag
@@ -185,7 +184,7 @@
   ratifyQualityMonitor
 } from "@/api/cnas/process/ensureResultsValidity/qualityMonitor";
 import {selectUserCondition} from "@/api/performance/class";
-import {getToken} from "@/utils/auth";
+import {mapGetters} from "vuex";
 
 export default {
   name: 'a7-Ensure-results-validity',
@@ -297,7 +296,7 @@
               name: '瀹℃牳',
               type: 'text',
               disabled: (row) => {
-                if (row.examineStatus === 1 || JSON.parse(localStorage.getItem("user")).userId != row.examineUserId) {
+                if (row.examineStatus === 1 || this.userId != row.examineUserId) {
                   return true
                 } else {
                   return false
@@ -311,7 +310,7 @@
               name: '鎵瑰噯',
               type: 'text',
               disabled: (row) => {
-                if (row.ratifyStatus === 1 || row.examineStatus !== 1 || JSON.parse(localStorage.getItem("user")).userId != row.ratifyUserId) {
+                if (row.ratifyStatus === 1 || row.examineStatus !== 1 || this.userId != row.ratifyUserId) {
                   return true
                 } else {
                   return false
@@ -472,10 +471,7 @@
       approvalRemarks: '',
       downloadDialog: false,
       download: {},
-      planYear: '',
-      headers: {
-        Authorization: "Bearer " + getToken(),
-      },
+      planYear: ''
     };
   },
   mounted() {
@@ -819,6 +815,7 @@
   },
   // 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭�
   computed: {
+    ...mapGetters(["userId"]),
     action() {
       return this.javaApi + '/qualityMonitor/importQualityMonitor'
     },

--
Gitblit v1.9.3