From ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 12:44:21 +0800
Subject: [PATCH] 轮播图片

---
 src/views/publicSecurity/bailReporting.vue |   55 +++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 47 insertions(+), 8 deletions(-)

diff --git a/src/views/publicSecurity/bailReporting.vue b/src/views/publicSecurity/bailReporting.vue
index 797e4dc..437ecff 100644
--- a/src/views/publicSecurity/bailReporting.vue
+++ b/src/views/publicSecurity/bailReporting.vue
@@ -22,6 +22,11 @@
                     {{ showStatus(row.status).text }}
                 </el-tag>
             </template>
+            <template slot-scope="{row, size}" slot="phone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneflag')"
+                    v-text="textDispose(row, 'phoneflag', 'phone')">
+                </el-button>
+            </template>
         </avue-crud>
 
         <el-dialog class="place-info-box audit-info-box" title="" append-to-body :visible.sync="auditBasePopup" width="60%">
@@ -88,7 +93,7 @@
                 searchShow: true,
                 searchMenuSpan: 3,
                 menuWidth: 210,
-
+                header: false,
                 height: "auto",
                 calcHeight: 54,
                 dialogWidth: 950,
@@ -102,6 +107,7 @@
                 editBtn: false,
                 selection: true,
                 dialogClickModal: false,
+                header: false,
                 column: [{
                     span: 12,
                     label: "社区",
@@ -135,6 +141,7 @@
                     prop: "phone",
                     searchSpan: 4,
                     search: true,
+                    slot: true,
                     rules: [{
                         validator: validatorPhone,
                         trigger: 'blur'
@@ -211,12 +218,24 @@
                     display: true,
                     // hide: true,
                 },
-                // {
-                //   width: 144,
-                //   label: "创建时间",
-                //   prop: "createTime",
-                //   searchSpan: 4,
-                // },
+                {
+                    width: 144,
+                    label: "出发时间",
+                    prop: "startTimes",
+                    searchSpan: 4,
+                },
+                {
+                    width: 144,
+                    label: "到达时间",
+                    prop: "reachTime",
+                    searchSpan: 4,
+                },
+                {
+                    width: 144,
+                    label: "返程时间",
+                    prop: "returnTime",
+                    searchSpan: 4,
+                },
                 {
                     width: 100,
                     addDisplay: false,
@@ -303,9 +322,27 @@
 
                 return tags
             }
+        },
+
+        textDispose () {
+            return (row, flag, type) => {
+                if (row[flag] || row[type] == null) {
+                    return row[type]
+                } else {
+                    if (type == 'principalIdCard') {
+                        return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
+                    } else {
+                        return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
+                    }
+                }
+            }
         }
     },
     methods: {
+        showStringDispose (row, type) {
+            row[type] = !row[type]
+        },
+
         colseDetail () {
             this.auditBasePopup = false
             this.onLoad(this.page)
@@ -478,6 +515,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'phoneflag', false)
                     if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) {
                         var urls = []
                         var names = item.imageUrls.split(",").filter(item => item != '')
@@ -498,4 +536,5 @@
 <style>
 .avue-upload__icon {
     line-height: 6;
-}</style>
\ No newline at end of file
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3