From bd54d5d5f292fe398599199b8ca2658b2549777d Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 21 七月 2022 11:07:49 +0800
Subject: [PATCH] 1.工序检验开发完成

---
 src/components/ImportPicker/index.vue |   59 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/src/components/ImportPicker/index.vue b/src/components/ImportPicker/index.vue
index d4f3bb9..1b42c4b 100644
--- a/src/components/ImportPicker/index.vue
+++ b/src/components/ImportPicker/index.vue
@@ -47,7 +47,7 @@
           <el-button class="but_style" icon="el-icon-upload2" size="small">{{ button_name }}</el-button>
         </el-upload>
         璇风偣鍑�
-        <el-button type="text" icon="el-icon-download" @click="clickDown(code)">涓嬭浇鏁版嵁妯$増</el-button>
+        <el-button type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">涓嬭浇鏁版嵁妯$増</el-button>
         , 骞舵寜鐓фā鐗堢紪杈戝鍏ユ暟鎹�
       </div>
       <p v-if="div1">{{ file_name }}</p>
@@ -124,7 +124,8 @@
   </el-dialog>
 </template>
 <script>
-import all from '@/api/all'
+
+import { DownLoadExcel, ExcelModelCheck } from '@/api/Excel'
 
 export default {
   props: {
@@ -231,31 +232,34 @@
       }
     },
     ExcelImportSubmit(data) {
-      all.ExcelImportSubmit(data).then((res) => {
-        if (res.statusCode === '200') {
-          this.div3 = true
-          this.num += 2
-          this.button_text = '瀹屾垚'
-          this.disState = false
-        } else {
-          this.num += 1
-          this.div3_sb = true
-          this.disState = true
-          this.error_message = res.message
-        }
-      })
+      // all.ExcelImportSubmit(data).then((res) => {
+      //   if (res.statusCode === '200') {
+      //     this.div3 = true
+      //     this.num += 2
+      //     this.button_text = '瀹屾垚'
+      //     this.disState = false
+      //   } else {
+      //     this.num += 1
+      //     this.div3_sb = true
+      //     this.disState = true
+      //     this.error_message = res.message
+      //   }
+      // })
     },
     ExcelCheckData(data) {
-      all.ExcelCheckData(data).then((res) => {
-        this.div2_state = res.StuCode
-        setTimeout(() => {
-          this.cg4 = true
-        }, 2000)
-        this.error_list = res.list
-        this.total_num = res.Count
-        if (res.StuCode === '200') {
-          this.disState = false
-        }
+      // all.ExcelCheckData(data).then((res) => {
+      //   this.div2_state = res.StuCode
+      //   setTimeout(() => {
+      //     this.cg4 = true
+      //   }, 2000)
+      //   this.error_list = res.list
+      //   this.total_num = res.Count
+      //   if (res.StuCode === '200') {
+      //     this.disState = false
+      //   }
+      // })
+      ExcelModelCheck(data).then(res => {
+
       })
     },
     beforeUpload(file) {
@@ -334,7 +338,10 @@
       const data = {
         FileCode: code
       }
-      all.DownLoadExcel(data).then((res) => {
+      // all.DownLoadExcel(data).then((res) => {
+      //   window.location.href = res
+      // })
+      DownLoadExcel(data).then(res => {
         window.location.href = res
       })
     }

--
Gitblit v1.9.3