From 2d55ed180fddd028bf4f839345bf0ef4d2f032e7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 07 三月 2025 13:34:31 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
index 432faea..60eafd1 100644
--- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
@@ -345,9 +345,7 @@
       this.outLoading = true
       exportOutManageRecordIntervals(this.queryParams).then(res => {
         this.outLoading = false
-        if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触')
-        let url = this.javaApi + 'word/' + res.message
-        this.$download.saveAs(url, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
+        this.$download.downloadFileFromUrl(res.message, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
       })
     },
     getList() {
@@ -476,9 +474,6 @@
       if (this.title == '鏂板') {
         addManageRecordIntervals(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -489,9 +484,6 @@
       } else {
         doManageRecordIntervals(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -518,9 +510,6 @@
         ratifyState: state
       }).then(res => {
         this.checkLoading = false
-        if (res.code == 201) {
-          return
-        }
         this.noCheckLoading = false
         this.$message({
           type: 'success',
@@ -543,8 +532,7 @@
       }
     },
     handleDown0(row) {
-      let url = this.javaApi + '/word/' + row.url
-      this.$download.saveAs(url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
+      this.$download.downloadFileFromUrl(row.url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
     },
     // 鎻愪氦
     handleSubmit(row) {
@@ -556,7 +544,6 @@
         submitManageRecordIntervalsTotal({
           id: row.id
         }).then(res => {
-          if (res.code === 201) return
           this.$message({
             type: 'success',
             message: '鎻愪氦鎴愬姛!'
@@ -578,7 +565,6 @@
       })
         .then(() => {
           delManageRecordIntervals({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refreshTable();
           });

--
Gitblit v1.9.3