From e79907270604b30c9699e1c53987d25287ae29a7 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期二, 04 三月 2025 17:09:54 +0800 Subject: [PATCH] 文件管理bug修改 --- src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue | 26 +++++++------------------- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue index f0ec6cd..9bb9cdb 100644 --- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue @@ -22,18 +22,15 @@ </div> <div class="btns"> <el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</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' v-if="upPower" :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' v-if="upPower" + :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> <el-button type="primary" size="small">瀵煎叆</el-button></el-upload> </div> </div> <div class="table"> <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" :height="'calc(100vh - 290px)'" @pagination="pagination"></lims-table> - <!-- <ValueTable ref="ValueTable" :url="$api.manageRecordIntervals.pageManageRecordIntervals" - :delUrl="$api.manageRecordIntervals.delManageRecordIntervals" :componentData="componentData" - :upUrl="$api.manageRecordIssueRecycle.doManageRecordIssueRecycle" :key="upIndex" /> --> </div> </el-tab-pane> <el-tab-pane label="鍘嗗彶璁板綍" name="鍘嗗彶璁板綍" style="height: 100%;"> @@ -54,8 +51,6 @@ <div class="table"> <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading" :height="'calc(100vh - 290px)'" @pagination="pagination0"></lims-table> - <!-- <ValueTable ref="ValueTable0" :url="$api.manageRecordIntervals.pageManageRecordIntervalsTotal" - :componentData="componentData0" :key="upIndex" /> --> </div> </el-tab-pane> </el-tabs> @@ -134,7 +129,6 @@ <script> import limsTable from "@/components/Table/lims-table.vue"; import filePreview from '@/components/Preview/filePreview.vue' -import { getToken } from "@/utils/auth"; import { exportOutManageRecordIntervals, addManageRecordIntervals, @@ -230,7 +224,7 @@ font: '鏌ョ湅', type: 'text', method: 'handleLook', - disabFun: (row, index) => { + disabled: (row, index) => { return !row.url } }, { @@ -238,7 +232,7 @@ font: '涓嬭浇', type: 'text', method: 'handleDown0', - disabFun: (row, index) => { + disabled: (row, index) => { return !row.url } }, @@ -247,7 +241,7 @@ font: '鎻愪氦', type: 'text', method: 'handleSubmit', - disabFun: (row, index) => { + disabled: (row, index) => { return !!row.submitUserName } }, { @@ -255,7 +249,7 @@ font: '鎵瑰噯', type: 'text', method: 'handleApproval', - disabFun: (row, index) => { + disabled: (row, index) => { return !row.submitUserName || !!row.ratifyUserName } }], @@ -386,11 +380,6 @@ }, // 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭� computed: { - headers() { - return { - 'Authorization': "Bearer " + getToken() - } - }, action() { return this.javaApi + '/manageRecordIntervals/exportInManageRecordIntervals' } @@ -461,7 +450,6 @@ exportOutManageRecordIntervals(this.queryParams).then(res => { this.outLoading = false if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触') - this.$message.success('瀵煎嚭鎴愬姛') let url = this.javaApi + 'word/' + res.message this.$download.saveAs(url, "鏂囦欢瀹氭湡瀹℃煡璁板綍"); }) -- Gitblit v1.9.3