From 790221ce9c7cba9fe455493c7a0e84695c021c3d Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 26 一月 2024 15:03:33 +0800
Subject: [PATCH] Mr.Shi

---
 company/src/views/business/company.vue |   36 ++++++++++++++++++++++++++++++++++--
 1 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/company/src/views/business/company.vue b/company/src/views/business/company.vue
index e0a2098..51341f7 100644
--- a/company/src/views/business/company.vue
+++ b/company/src/views/business/company.vue
@@ -50,7 +50,7 @@
                 >
                     <template slot-scope="{row}">
                         <el-button type="text" @click="$refs.OperaCompanyDescWindow.open('浼佷笟璇︽儏', row)"  v-permissions="['business:company:update']">鏌ョ湅璇︽儏</el-button>
-                        <el-button type="text" @click="$refs.operaCompanyWindow.open('缂栬緫浼佷笟淇℃伅琛�', row)" v-permissions="['business:company:update']">淇敼</el-button>
+                        <el-button type="text" @click="edit(row)" v-permissions="['business:company:update']">淇敼</el-button>
                         <el-button type="text" @click="$refs.operaCompanyWindow.open('缂栬緫浼佷笟淇℃伅琛�', row)" v-permissions="['business:company:update']">鐢靛瓙绛捐璇�</el-button>
                     </template>
                 </el-table-column>
@@ -75,7 +75,7 @@
     import Pagination from '@/components/common/Pagination'
     import OperaCompanyWindow from '@/components/business/OperaCompanyWindow'
     import OperaCompanyDescWindow from '@/components/business/OperaCompanyDescWindow'
-    import { updateStatus } from '@/api/business/company'
+    import { updateStatus, getById } from '@/api/business/company'
     export default {
         name: 'Company',
         extends: BaseTable,
@@ -99,6 +99,38 @@
             this.search()
         },
         methods: {
+            edit(row) {
+                getById(row.id)
+                    .then(res => {
+                        let form = res;
+                        form.type = 1
+                        form.file = {
+                            imgurl: '',
+                            imgurlfull: ''
+                        }
+                        form.file1 = {
+                            imgurl: '',
+                            imgurlfull: ''
+                        }
+                        form.file2 = {
+                            imgurl: '',
+                            imgurlfull: ''
+                        }
+                        form.file3 = {
+                            imgurl: '',
+                            imgurlfull: ''
+                        }
+                        form.file.imgurl = res.businessImg.fileurl
+                        form.file.imgurlfull = res.businessImg.fileurlFull
+                        form.file1.imgurl = res.idcardImgList[0].fileurl
+                        form.file1.imgurlfull = res.idcardImgList[0].fileurlFull
+                        form.file2.imgurl = res.idcardImgList[1].fileurl
+                        form.file2.imgurlfull = res.idcardImgList[1].fileurlFull
+                        form.file3.imgurl = res.signImg.fileurl
+                        form.file3.imgurlfull = res.signImg.fileurlFull
+                        this.$refs.operaCompanyWindow.open('缂栬緫浼佷笟', form)
+                    })
+            },
             // 淇敼鐘舵��
             changeStatus(status, row) {
                 updateStatus({ id: row.id, status })

--
Gitblit v1.9.3