From da614b00cc2b6721a6deadeb51f278d5a17f732e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期二, 04 三月 2025 09:56:38 +0800 Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev --- src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue index 874abfc..bd992eb 100644 --- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue @@ -20,9 +20,9 @@ </div> <div class="btn"> <el-button size="small" type="primary" @click="openAdd">鏂板</el-button> - <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' :headers="headers" - :on-change="beforeUpload" :on-error="onError" ref='upload' :on-success="handleSuccessUp" - style="display:inline-block;margin-left: 20px;"> + <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' + :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' + :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> <el-button type="primary" size="small">瀵煎叆</el-button></el-upload> <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button> @@ -133,7 +133,6 @@ import { getYearAndMonthAndDays } from '@/utils/date' -import { getToken } from "@/utils/auth"; import { selectUserCondition, } from "@/api/business/inspectionTask.js"; @@ -232,11 +231,6 @@ }, // 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭� computed: { - headers() { - return { - 'Authorization': "Bearer " + getToken() - } - }, action() { return this.javaApi + '/manageRecordIssueRecycle/exportInManageRecordIssueRecycle' }, @@ -307,7 +301,6 @@ exportOutManageRecordIssueRecycle(this.queryParams).then(res => { this.outLoading = false if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触') - this.$message.success('瀵煎嚭鎴愬姛') let url = this.javaApi + '/word/' + res.data this.$download.saveAs(url, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�') }) -- Gitblit v1.9.3