From 5578f0d1faf6ff1c5fb10f9eea805fd0411d3c1b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 06 十二月 2023 17:42:16 +0800
Subject: [PATCH] 整合代码

---
 Source/UBCS-WEB/src/components/Master/MasterTransfer.vue |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
index 6c7c8d5..00d593e 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
@@ -10,7 +10,8 @@
           <el-radio :label="1">鍏ㄩ儴</el-radio>
           <el-radio :label="2">椤电爜</el-radio>
         </el-radio-group>
-        <span v-if="radio === 2" style="margin-left: 20px;"><el-input v-model="pageExport" style="width: 150px"></el-input> 锛堣緭鍏ラ〉鐮佹垨鑰呴〉闈㈣寖鍥达紝濡傦細1-10锛�</span>
+        <span v-if="radio === 2" style="margin-left: 20px;"><el-input v-model="pageExport"
+                                                                      style="width: 150px"></el-input> 锛堣緭鍏ラ〉鐮佹垨鑰呴〉闈㈣寖鍥达紝濡傦細1-10锛�</span>
       </div>
     </div>
     <div style="text-align: center">
@@ -120,10 +121,10 @@
   mounted() {
   },
   methods: {
-    handlerFile(res){
+    handlerFile(res) {
       let reader = new FileReader();
       reader.readAsText(res.data);
-      reader.onload =  (result) =>{
+      reader.onload = (result) => {
         try {
           let resData = JSON.parse(result.target.result);  // 瑙f瀽瀵硅薄鎴愬姛
           if (resData.code != 200) {
@@ -173,8 +174,8 @@
               'conditionMap[oid]': this.ids, ...this.exportArrTwo,
               limit: -1
             }).then(res => {
-                this.handlerFile(res);
-                this.escHandler();
+              this.handlerFile(res);
+              this.escHandler();
             })
           } else {
 
@@ -183,8 +184,8 @@
               'conditionMap[oid]': this.ids, ...this.exportArr
             }).then(res => {
               // console.log('res',res)
-                this.handlerFile(res);
-                this.escHandler();
+              this.handlerFile(res);
+              this.escHandler();
 
             })
 
@@ -204,8 +205,8 @@
           })
         } else {
           exportCode({codeClassifyOid: this.codeClassifyOid, ...this.exportArr, limit: -1}).then(res => {
-              this.handlerFile(res);
-              this.escHandler();
+            this.handlerFile(res);
+            this.escHandler();
           })
         }
       } else if (this.radio === 2) {
@@ -241,8 +242,8 @@
             endPage: end
           }).then((res) => {
             // console.log('res',res)
-              this.handlerFile(res);
-              this.escHandler();
+            this.handlerFile(res);
+            this.escHandler();
 
           });
         } else {
@@ -256,9 +257,9 @@
             page: start,
             endPage: end
           }).then(res => {
-            console.log('res',res)
-              this.handlerFile(res);
-              this.escHandler();
+            console.log('res', res)
+            this.handlerFile(res);
+            this.escHandler();
           })
         }
       }

--
Gitblit v1.9.3