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/task/reportForRepairs.vue |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/src/views/task/reportForRepairs.vue b/src/views/task/reportForRepairs.vue
index 2609458..d7d24fb 100644
--- a/src/views/task/reportForRepairs.vue
+++ b/src/views/task/reportForRepairs.vue
@@ -97,13 +97,19 @@
                     除
                 </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>
 
         <el-dialog title="回复" append-to-body :visible.sync="replyPopup" center @close="popupClose">
             <avue-form ref="replyForm" :option="replyOption" v-model="replyForm" @submit="handleSubmit"
                 @reset-change="handleReset">
                 <template slot-scope="{row}" slot="videoList">
-                    <el-upload class="video-uploader" action="/api/blade-resource/oss/endpoint/put-file"
+                    <el-upload class="video-uploader" action="/ssoapi/blade-resource/oss/endpoint/put-file"
                         :file-list="fileList" :headers="updateHeader" :show-file-list="true" :limit="1" :on-change="getFile"
                         :on-exceed="handleExceed" :on-success="uploadVideoProcess" :before-upload="beforeUploadVideo"
                         :before-remove="beforeRemove">
@@ -130,7 +136,7 @@
     add,
     getReportForRepairs,
     saveReply
-} from "@/api/task/reportForRepairs"
+} from "@/ssoapi/task/reportForRepairs"
 import {
     mapGetters
 } from "vuex"
@@ -200,7 +206,7 @@
                         search: true,
                         dataType: "number",
                         type: "select",
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=reportForRepairsType",
+                        dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=reportForRepairsType",
                         props: {
                             label: "dictValue",
                             value: "dictKey",
@@ -237,7 +243,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',
@@ -364,7 +370,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',
@@ -423,7 +429,7 @@
                         label: "指定人员",
                         prop: "transferUserId",
                         type: 'select',
-                        dicUrl: `/api/blade-system/user/getUserInfoByCode?houseCode={{addressCode}}&type={{peopleType}}`,
+                        dicUrl: `/ssoapi/blade-system/user/getUserInfoByCode?houseCode={{addressCode}}&type={{peopleType}}`,
                         props: {
                             label: "name",
                             value: "id",
@@ -595,9 +601,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]
+        },
+
         rowExpansion (row) {
             this.$refs.crud.toggleRowExpansion(row)
         },
@@ -885,6 +909,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'phoneflag', false)
                     if (item.imageUrls) {
                         if (item.imageUrls.length > 0) {
                             var urls = []

--
Gitblit v1.9.3