From 90e8215dddc36944c2300a47e8f106791214fe7b Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 26 二月 2024 09:33:32 +0800
Subject: [PATCH] mrshi
---
 company/src/components/enterprise/renewalInsurance.vue |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 3 deletions(-)
diff --git a/company/src/components/enterprise/renewalInsurance.vue b/company/src/components/enterprise/renewalInsurance.vue
index 7021e02..ec0ad3a 100644
--- a/company/src/components/enterprise/renewalInsurance.vue
+++ b/company/src/components/enterprise/renewalInsurance.vue
@@ -34,26 +34,43 @@
             <el-table-column prop="startTime" label="鎶曚繚鐢熸晥鏃ユ湡"></el-table-column>
             <el-table-column prop="endTime" label="鎶曚繚澶辨晥鏃ユ湡"></el-table-column>
             <el-table-column
-                prop="address"
+                min-width="150"
                 label="鎿嶄綔">
+                <template slot-scope="{row}">
+                    <el-button type="text" @click="$refs.OperaInsuranceApply.open('缁繚', { id: row.id, type: 1 })">涓�浠剁画淇�</el-button>
+                    <el-button type="text" @click="dele(row)">鍒犻櫎鎻愰啋</el-button>
+                </template>
             </el-table-column>
         </el-table>
+        <div style="width: 100%; height: 10px;"></div>
+        <el-pagination
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            layout="total, prev, pager, next, jumper"
+            :total="total">
+        </el-pagination>
+        <!--    缁繚    -->
+        <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
     </GlobalWindow>
 </template>
 
 <script>
     import BaseOpera from '@/components/base/BaseOpera'
     import GlobalWindow from '@/components/common/GlobalWindow'
+    import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
+    import { fetchList } from '@/api/business/insuranceApply'
     export default {
         name: 'renewalInsurance',
         extends: BaseOpera,
-        components: { GlobalWindow },
+        components: { GlobalWindow, OperaInsuranceApply },
         data () {
             return {
                 form: {
                     id: null
                 },
-                tableData: []
+                tableData: [],
+                total: 0,
+                currentPage: 1
             }
         },
         created () {
@@ -63,7 +80,42 @@
             })
         },
         methods: {
+            open (title, target) {
+                this.title = title
+                this.visible = true
+                this.getList()
+            },
+            handleCurrentChange(page) {
+                this.currentPage = page
+                this.getList()
+            },
+            getList() {
+                fetchList({
+                    capacity: 10,
+                    page: this.currentPage,
+                    model: {
+                        loseEfficacy: 1
+                    }
+                }).then(res => {
+                    this.tableData = res.records
+                    this.total = res.total
+                })
+            },
+            dele(row) {
+                this.$confirm('纭畾鍏抽棴姝ゆ彁绀哄悧?', '鎻愮ず', {
+                    confirmButtonText: '纭畾',
+                    cancelButtonText: '鍙栨秷',
+                    type: 'warning'
+                }).then(() => {
 
+                }).catch(() => {
+
+                });
+                console.log(row)
+            },
+            successEvent(){
+                this.$emit('success')
+            }
         }
     }
 </script>
--
Gitblit v1.9.3