From fa0fc3195858a592d2ad1bdad0fa6126602ebf55 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 07 Jun 2024 14:17:10 +0800
Subject: [PATCH] 路径配置修改

---
 src/views/cGovernance/gridWorkLog.vue |   44 +++++++++++++++++++++++++++++++++++---------
 1 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/src/views/cGovernance/gridWorkLog.vue b/src/views/cGovernance/gridWorkLog.vue
index cbfbe05..abf4076 100644
--- a/src/views/cGovernance/gridWorkLog.vue
+++ b/src/views/cGovernance/gridWorkLog.vue
@@ -15,15 +15,21 @@
                     @click="handleDelete">删 除
                 </el-button>
             </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>
     </basic-container>
 </template>
 
 <script>
-import { getPersonPublicSelect } from "@/api/public"
-import { getDetatils as householdDetail } from "@/api/userHouse/list/houseHold"
-import { getList, remove, update, add, getGridWorkLog } from "@/api/grid/gridWorkLog"
-import { getList as getHouseholdList, getDetatils as getHouseholdDetail } from "@/api/userHouse/list/houseHold"
+import { getPersonPublicSelect } from "@/ssoapi/public"
+import { getDetatils as householdDetail } from "@/ssoapi/userHouse/list/houseHold"
+import { getList, remove, update, add, getGridWorkLog } from "@/ssoapi/grid/gridWorkLog"
+import { getList as getHouseholdList, getDetatils as getHouseholdDetail } from "@/ssoapi/userHouse/list/houseHold"
 import { mapGetters } from "vuex"
 import website from '@/config/website'
 
@@ -51,7 +57,7 @@
                 calcHeight: 54,
                 dialogWidth: 950,
                 tip: false,
-                border: false,
+                border: true,
                 //stripe:true,
                 index: true,
                 viewBtn: true,
@@ -68,7 +74,7 @@
                         search: true,
                         searchLabelWidth: 76,
                         type: "select",
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=haveType",
+                        dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=haveType",
                         dataType: "number",
                         props: {
                             label: "dictValue",
@@ -89,7 +95,7 @@
                         prop: "personType",
                         span: 12,
                         type: "tree",
-                        dicUrl: "/api/blade-label/label/getLabelList?parentId=100",
+                        dicUrl: "/ssoapi/blade-label/label/getLabelList?parentId=100",
                         props: {
                             label: "name",
                             value: "id"
@@ -148,6 +154,7 @@
                         disabled: true,
                         searchSpan: 4,
                         search: true,
+                        slot: true
                     },
 
                     {
@@ -224,7 +231,7 @@
                         listType: "picture-card",
                         dataType: "string",
                         multiple: true,
-                        action: "/api/blade-resource/oss/endpoint/put-file",
+                        action: "/ssoapi/blade-resource/oss/endpoint/put-file",
                         propsHttp: {
                             res: "data",
                             name: 'name',
@@ -345,6 +352,20 @@
 
                 return data.name
             }
+        },
+
+        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")
+                    }
+                }
+            }
         }
     },
 
@@ -353,8 +374,12 @@
     },
 
     methods: {
+        showStringDispose (row, type) {
+            row[type] = !row[type]
+        },
+
         getUserList (param = '') {
-            let dicUrl = `/api/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
+            let dicUrl = `/ssoapi/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
             const column = this.findObject(this.option.column, "householdId")
             column.dicUrl = dicUrl
         },
@@ -519,6 +544,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'phoneflag', false)
                     if (item.url) {
                         if (item.url.length > 0) {
                             var urls = []

--
Gitblit v1.9.3