From 49eb43c90d04bdadb0a46142c61ecb6eba448623 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Tue, 20 Feb 2024 10:31:31 +0800
Subject: [PATCH] 手机号显示隐藏:1.交易登记2.报事报修3.维修基金申请4.合同管理5.维修基金审核6.网格管理7.场所管理8.网格员管理9.维修基金审核(共治)10.业委会及成员管理

---
 src/views/property/todo.vue                                |  427 ++++++-----
 src/views/publicSecurity/positionManage/TransactRegist.vue |   35 
 src/views/property/propertyCapitalApply.vue                |   25 
 src/views/grid/gridman.vue                                 |   33 
 src/views/grid/index.vue                                   |   34 
 src/views/gzll/todo.vue                                    |  426 ++++++-----
 src/views/gzll/owners.vue                                  | 1022 ++++++++++++++--------------
 src/views/place/index.vue                                  |   25 
 src/views/task/reportForRepairs.vue                        |   25 
 src/views/property/propertyCompanyDistrict.vue             |   34 
 10 files changed, 1,190 insertions(+), 896 deletions(-)

diff --git a/src/views/grid/gridman.vue b/src/views/grid/gridman.vue
index 14296e3..e9216df 100644
--- a/src/views/grid/gridman.vue
+++ b/src/views/grid/gridman.vue
@@ -10,6 +10,11 @@
                     除
                 </el-button>
             </template>
+            <template slot-scope="{row, size}" slot="mobile">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'mobileflag')"
+                    v-text="textDispose(row, 'mobileflag', 'mobile')">
+                </el-button>
+            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -122,6 +127,7 @@
                                 trigger: "blur",
                             },
                         ],
+                        slot: true
                     },
 
                     {
@@ -197,8 +203,25 @@
             })
             return ids.join(",")
         },
+        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]
+        },
+
         rowSave (row, done, loading) {
             if (row.picUrl) {
                 var names = row.picUrl.split("jczz/")
@@ -335,7 +358,15 @@
             }
             this.loading = true
             getList(page.currentPage, page.pageSize, values).then((res) => {
-                const data = res.data.data
+                const data = {
+                    ...res.data.data,
+                    records: res.data.data.records.map(item => {
+                        return {
+                            ...item,
+                            'mobileflag': false
+                        }
+                    })
+                }
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
diff --git a/src/views/grid/index.vue b/src/views/grid/index.vue
index 588c31a..e868f1d 100644
--- a/src/views/grid/index.vue
+++ b/src/views/grid/index.vue
@@ -9,6 +9,11 @@
                 <el-button size="small" icon="el-icon-delete" plain v-if="permission.grid_delete" @click="handleDelete">删 除
                 </el-button>
             </template>
+            <template slot-scope="{row, size}" slot="principalPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
+                    v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')">
+                </el-button>
+            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -145,6 +150,7 @@
                                 trigger: 'blur'
                             }
                         ],
+                        slot: true
                     },
                     {
                         label: "区域",
@@ -214,8 +220,26 @@
             })
             return ids.join(",")
         },
+
+        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]
+        },
+
         rowSave (row, done, loading) {
             add(row).then(
                 () => {
@@ -326,7 +350,15 @@
             this.loading = true
 
             getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
-                const data = res.data.data
+                const data = {
+                    ...res.data.data,
+                    records: res.data.data.records.map(item => {
+                        return {
+                            ...item,
+                            'principalPhoneflag': false
+                        }
+                    })
+                }
                 this.page.total = data.total
                 this.data = data.records
                 this.loading = false
diff --git a/src/views/gzll/owners.vue b/src/views/gzll/owners.vue
index 914b8fb..57b36b0 100644
--- a/src/views/gzll/owners.vue
+++ b/src/views/gzll/owners.vue
@@ -1,545 +1,571 @@
 <!-- 走访日志 -->
 <template>
-  <basic-container>
-    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="form"
-      :permission="permissionList" @search-change="searchChange" @row-save="rowSave" @row-update="rowUpdate"
-      @row-del="rowDel" :before-open="beforeOpen" @search-reset="searchReset" @selection-change="selectionChange"
-      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
-      <template slot-scope="scope" slot="menu">
-        <el-button type="text" icon="el-icon-circle-plus-outline" size="small" @click="manageMember(scope.row)">业委会成员
-        </el-button>
-      </template>
+    <basic-container>
+        <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="form"
+            :permission="permissionList" @search-change="searchChange" @row-save="rowSave" @row-update="rowUpdate"
+            @row-del="rowDel" :before-open="beforeOpen" @search-reset="searchReset" @selection-change="selectionChange"
+            @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+            <template slot-scope="scope" slot="menu">
+                <el-button type="text" icon="el-icon-circle-plus-outline" size="small"
+                    @click="manageMember(scope.row)">业委会成员
+                </el-button>
+            </template>
 
-      <template slot-scope="{ row, size }" slot="status">
-        <el-tag :size="size" :type="showStatus(row.status).type" v-text="showStatus(row.status).text">
-        </el-tag>
-      </template>
-    </avue-crud>
+            <template slot-scope="{ row, size }" slot="status">
+                <el-tag :size="size" :type="showStatus(row.status).type" v-text="showStatus(row.status).text">
+                </el-tag>
+            </template>
+            <template slot-scope="{row, size}" slot="mobile">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'mobileflag')"
+                    v-text="textDispose(row, 'mobileflag', 'mobile')">
+                </el-button>
+            </template>
+        </avue-crud>
 
-    <el-drawer title="业委会成员" size="40%" append-to-body :visible.sync="memberFlag" :direction="'rtl'">
-      <ownersMemberManager ref="ownersMemberManager" />
-    </el-drawer>
-  </basic-container>
+        <el-drawer title="业委会成员" size="40%" append-to-body :visible.sync="memberFlag" :direction="'rtl'">
+            <ownersMemberManager ref="ownersMemberManager" />
+        </el-drawer>
+    </basic-container>
 </template>
 
 <script>
-  import {
+import {
     getList,
     add,
     update,
     remove,
     getDetatil
-  } from "@/api/owners_committee"
-  import {
+} from "@/api/owners_committee"
+import {
     mapGetters
-  } from "vuex"
-  import website from '@/config/website'
-  import func from "@/util/func"
-  import ownersMemberManager from "./components/ownersMemberManager"
+} from "vuex"
+import website from '@/config/website'
+import func from "@/util/func"
+import ownersMemberManager from "./components/ownersMemberManager"
 
-  export default {
+export default {
     components: {
-      ownersMemberManager
+        ownersMemberManager
     },
-    data() {
-      return {
-        form: {},
-        query: {},
-        loading: true,
-        page: {
-          pageSize: 10,
-          currentPage: 1,
-          total: 0,
-        },
-        datetime: "",
-        selectionList: [],
-        memberFlag: false,
-        option: {
-          labelWidth: 120,
-          searchLabelWidth: 96,
-          searchShow: true,
-          searchMenuSpan: 3,
-          menuWidth: 300,
-
-          // menu: false,
-          // addBtn: false,
-          border: true,
-          index: true,
-          selection: false,
-          height: "auto",
-          calcHeight: 54,
-          dialogWidth: 950,
-          tip: false,
-          //stripe:true,
-          viewBtn: true,
-          excelBtn: true,
-          dialogClickModal: false,
-          column: [{
-              hide: true,
-              label: "小区",
-              prop: "areaId",
-              searchSpan: 5,
-              type: 'tree',
-              dicUrl: `/api/blade-district/district/getDistrictTree`,
-              props: {
-                label: "name",
-                value: "id"
-              },
-              defaultExpandedKeys: ["361102003"],
-              cascader: ['principalId'],
-              overHidden: true,
-              change: ({
-                value,
-                column,
-                item,
-                dic
-              }) => {
-                this.form.areaName = ''
-
-                if (value) {
-                  this.form.areaName = item.name
-                }
-              },
-              rules: [{
-                required: true,
-                message: "请选择小区",
-                trigger: "blur",
-              }, ],
+    data () {
+        return {
+            form: {},
+            query: {},
+            loading: true,
+            page: {
+                pageSize: 10,
+                currentPage: 1,
+                total: 0,
             },
+            datetime: "",
+            selectionList: [],
+            memberFlag: false,
+            option: {
+                labelWidth: 120,
+                searchLabelWidth: 96,
+                searchShow: true,
+                searchMenuSpan: 3,
+                menuWidth: 300,
 
-            {
-              overHidden: true,
-              width: 120,
-              label: "业委会名称",
-              prop: "name",
-              search: true,
-              searchLabelWidth: 90,
-              rules: [{
-                required: true,
-                message: "请输入业委会名称",
-                trigger: "blur",
-              }, ],
-            },
+                // menu: false,
+                // addBtn: false,
+                border: true,
+                index: true,
+                selection: false,
+                height: "auto",
+                calcHeight: 54,
+                dialogWidth: 950,
+                tip: false,
+                //stripe:true,
+                viewBtn: true,
+                excelBtn: true,
+                dialogClickModal: false,
+                column: [{
+                    hide: true,
+                    label: "小区",
+                    prop: "areaId",
+                    searchSpan: 5,
+                    type: 'tree',
+                    dicUrl: `/api/blade-district/district/getDistrictTree`,
+                    props: {
+                        label: "name",
+                        value: "id"
+                    },
+                    defaultExpandedKeys: ["361102003"],
+                    cascader: ['principalId'],
+                    overHidden: true,
+                    change: ({
+                        value,
+                        column,
+                        item,
+                        dic
+                    }) => {
+                        this.form.areaName = ''
 
-            {
-              overHidden: true,
-              width: 220,
-              label: '小区名称',
-              addDisplay: false,
-              editDisplay: false,
-              viewDisplay: false,
-              prop: "areaName"
-            },
+                        if (value) {
+                            this.form.areaName = item.name
+                        }
+                    },
+                    rules: [{
+                        required: true,
+                        message: "请选择小区",
+                        trigger: "blur",
+                    },],
+                },
 
-            {
-              label: "总人数",
-              prop: "peopleTotal",
-              display: false,
-            },
-            {
-              label: "业委会负责人",
-              prop: "principalId",
-              type: "tree",
-              remote: true,
-              props: {
-                label: 'name',
-                value: 'id'
-              },
-              hide: true,
-              dicUrl: `/api/blade-system/user/searchUserByDistrictId?districtId={{key}}`,
-              defaultExpandedKeys: [],
-              change: ({
-                value,
-                column,
-                item,
-                dic
-              }) => {
-                this.form.mobile = ''
-                this.form.principalName = ''
+                {
+                    overHidden: true,
+                    width: 120,
+                    label: "业委会名称",
+                    prop: "name",
+                    search: true,
+                    searchLabelWidth: 90,
+                    rules: [{
+                        required: true,
+                        message: "请输入业委会名称",
+                        trigger: "blur",
+                    },],
+                },
 
-                if (value) {
-                  this.form.mobile = item.phone
-                  this.form.principalName = item.name
-                }
-              },
-              rules: [{
-                required: true,
-                message: "请选择业委会负责人",
-                trigger: "blur",
-              }, ],
-            },
-            {
-              width: 120,
-              label: "负责人名称",
-              prop: "principalName",
-              display: false,
-              rules: [{
-                required: true,
-                message: "请输入负责人名称",
-                trigger: "blur",
-              }, ],
-            },
-            {
-              width: 120,
-              label: "负责人手机号",
-              prop: "mobile",
-              rules: [{
-                required: true,
-                message: "请输入负责人手机号",
-                trigger: "blur",
-              }, ],
-            },
+                {
+                    overHidden: true,
+                    width: 220,
+                    label: '小区名称',
+                    addDisplay: false,
+                    editDisplay: false,
+                    viewDisplay: false,
+                    prop: "areaName"
+                },
 
-            {
-              width: 120,
-              label: "业委会届别",
-              prop: "session",
-              type: "number",
-              rules: [{
-                required: true,
-                message: "请输入业委会届别",
-                trigger: "blur",
-              }, ],
-              value: 1
-            },
-
-            {
-              width: 100,
-              label: "成立时间",
-              prop: "establishTime",
-              type: "date",
-              format: "yyyy-MM-dd",
-              valueFormat: "yyyy-MM-dd",
-            },
-
-            {
-              span: 24,
-              label: "所在地址",
-              prop: "location",
-            },
-
-            {
-              width: 124,
-              label: "任期开始时间",
-              prop: "startTime",
-              type: "date",
-              format: "yyyy-MM-dd",
-              valueFormat: "yyyy-MM-dd",
-              rules: [{
-                required: true,
-                message: "请输入任期开始时间",
-                trigger: "blur",
-              }, ],
-            },
-
-            {
-              width: 124,
-              label: "任期结束时间",
-              prop: "endTime",
-              type: "date",
-              format: "yyyy-MM-dd",
-              valueFormat: "yyyy-MM-dd",
-              rules: [{
-                required: true,
-                message: "请输入任期结束时间",
-                trigger: "blur",
-              }, ],
-            },
-
-            {
-              width: 110,
-              label: "图片",
-              prop: "imageUrl",
-              type: "upload",
-              listType: "picture-img",
-              action: "/api/blade-resource/oss/endpoint/put-file",
-              propsHttp: {
-                res: "data",
-                name: 'name',
-                url: "link",
-              },
-              viewDisplay: false,
-              span: 24,
-            },
-
-            {
-              span: 12,
-              label: "排序",
-              prop: "sort",
-              type: 'number',
-              rules: [{
-                required: true,
-                message: "请输入排序",
-                trigger: "blur",
-              }, ],
-              value: 1
-            },
-
-            {
-              width: 100,
-              span: 12,
-              label: "状态",
-              slot: true,
-              prop: "status",
-              type: 'switch',
-              activeColor: "#13ce66",
-              inactiveColor: "#ccc",
-              dicData: [{
-                  label: "关闭",
-                  value: 1
+                {
+                    label: "总人数",
+                    prop: "peopleTotal",
+                    display: false,
                 },
                 {
-                  label: "正常",
-                  value: 0
+                    label: "业委会负责人",
+                    prop: "principalId",
+                    type: "tree",
+                    remote: true,
+                    props: {
+                        label: 'name',
+                        value: 'id'
+                    },
+                    hide: true,
+                    dicUrl: `/api/blade-system/user/searchUserByDistrictId?districtId={{key}}`,
+                    defaultExpandedKeys: [],
+                    change: ({
+                        value,
+                        column,
+                        item,
+                        dic
+                    }) => {
+                        this.form.mobile = ''
+                        this.form.principalName = ''
+
+                        if (value) {
+                            this.form.mobile = item.phone
+                            this.form.principalName = item.name
+                        }
+                    },
+                    rules: [{
+                        required: true,
+                        message: "请选择业委会负责人",
+                        trigger: "blur",
+                    },],
                 },
-              ],
-              value: 0,
-              rules: [{
-                required: true,
-                message: "请输入排序",
-                trigger: "blur",
-              }, ],
-            },
-
-            {
-              span: 20,
-              label: "简介",
-              prop: "profile",
-              component: "AvueUeditor",
-              options: {
-                action: "/api/blade-resource/oss/endpoint/put-file",
-                props: {
-                  res: "data",
-                  url: "link",
+                {
+                    width: 120,
+                    label: "负责人名称",
+                    prop: "principalName",
+                    display: false,
+                    rules: [{
+                        required: true,
+                        message: "请输入负责人名称",
+                        trigger: "blur",
+                    },],
                 },
-              },
-              hide: true,
-              minRows: 6,
+                {
+                    width: 120,
+                    label: "负责人手机号",
+                    prop: "mobile",
+                    rules: [{
+                        required: true,
+                        message: "请输入负责人手机号",
+                        trigger: "blur",
+                    },],
+                    slot: true
+                },
+
+                {
+                    width: 120,
+                    label: "业委会届别",
+                    prop: "session",
+                    type: "number",
+                    rules: [{
+                        required: true,
+                        message: "请输入业委会届别",
+                        trigger: "blur",
+                    },],
+                    value: 1
+                },
+
+                {
+                    width: 100,
+                    label: "成立时间",
+                    prop: "establishTime",
+                    type: "date",
+                    format: "yyyy-MM-dd",
+                    valueFormat: "yyyy-MM-dd",
+                },
+
+                {
+                    span: 24,
+                    label: "所在地址",
+                    prop: "location",
+                },
+
+                {
+                    width: 124,
+                    label: "任期开始时间",
+                    prop: "startTime",
+                    type: "date",
+                    format: "yyyy-MM-dd",
+                    valueFormat: "yyyy-MM-dd",
+                    rules: [{
+                        required: true,
+                        message: "请输入任期开始时间",
+                        trigger: "blur",
+                    },],
+                },
+
+                {
+                    width: 124,
+                    label: "任期结束时间",
+                    prop: "endTime",
+                    type: "date",
+                    format: "yyyy-MM-dd",
+                    valueFormat: "yyyy-MM-dd",
+                    rules: [{
+                        required: true,
+                        message: "请输入任期结束时间",
+                        trigger: "blur",
+                    },],
+                },
+
+                {
+                    width: 110,
+                    label: "图片",
+                    prop: "imageUrl",
+                    type: "upload",
+                    listType: "picture-img",
+                    action: "/api/blade-resource/oss/endpoint/put-file",
+                    propsHttp: {
+                        res: "data",
+                        name: 'name',
+                        url: "link",
+                    },
+                    viewDisplay: false,
+                    span: 24,
+                },
+
+                {
+                    span: 12,
+                    label: "排序",
+                    prop: "sort",
+                    type: 'number',
+                    rules: [{
+                        required: true,
+                        message: "请输入排序",
+                        trigger: "blur",
+                    },],
+                    value: 1
+                },
+
+                {
+                    width: 100,
+                    span: 12,
+                    label: "状态",
+                    slot: true,
+                    prop: "status",
+                    type: 'switch',
+                    activeColor: "#13ce66",
+                    inactiveColor: "#ccc",
+                    dicData: [{
+                        label: "关闭",
+                        value: 1
+                    },
+                    {
+                        label: "正常",
+                        value: 0
+                    },
+                    ],
+                    value: 0,
+                    rules: [{
+                        required: true,
+                        message: "请输入排序",
+                        trigger: "blur",
+                    },],
+                },
+
+                {
+                    span: 20,
+                    label: "简介",
+                    prop: "profile",
+                    component: "AvueUeditor",
+                    options: {
+                        action: "/api/blade-resource/oss/endpoint/put-file",
+                        props: {
+                            res: "data",
+                            url: "link",
+                        },
+                    },
+                    hide: true,
+                    minRows: 6,
+                },
+
+                    // {
+                    //   label: "简介",
+                    //   prop: "profile",
+                    //   viewDisplay: false,
+                    //   type: "textarea"
+                    // },
+
+                ],
             },
-
-            // {
-            //   label: "简介",
-            //   prop: "profile",
-            //   viewDisplay: false,
-            //   type: "textarea"
-            // },
-
-          ],
-        },
-        data: [],
-      }
+            data: [],
+        }
     },
     watch: {},
     computed: {
-      ...mapGetters(["permission", "userInfo"]),
-      permissionList() {
-        return {
-          addBtn: this.vaildData(this.permission.gridWorkLog_add, true),
-          viewBtn: this.vaildData(this.permission.gridWorkLog_view, true),
-          delBtn: this.vaildData(this.permission.gridWorkLog_delete, true),
-          editBtn: this.vaildData(this.permission.gridWorkLog_edit, true),
-        }
-      },
-      ids() {
-        let ids = []
-        this.selectionList.forEach((ele) => {
-          ids.push(ele.id)
-        })
-        return ids.join(",")
-      },
-      showStatus() {
-        return (data) => {
-          if (data == 0) {
+        ...mapGetters(["permission", "userInfo"]),
+        permissionList () {
             return {
-              text: '正常',
-              type: 'success'
+                addBtn: this.vaildData(this.permission.gridWorkLog_add, true),
+                viewBtn: this.vaildData(this.permission.gridWorkLog_view, true),
+                delBtn: this.vaildData(this.permission.gridWorkLog_delete, true),
+                editBtn: this.vaildData(this.permission.gridWorkLog_edit, true),
             }
-          } else {
-            return {
-              text: '关闭',
-              type: 'info'
+        },
+        ids () {
+            let ids = []
+            this.selectionList.forEach((ele) => {
+                ids.push(ele.id)
+            })
+            return ids.join(",")
+        },
+        showStatus () {
+            return (data) => {
+                if (data == 0) {
+                    return {
+                        text: '正常',
+                        type: 'success'
+                    }
+                } else {
+                    return {
+                        text: '关闭',
+                        type: 'info'
+                    }
+                }
             }
-          }
+        },
+
+        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: {
-      manageMember(row) {
-        this.memberFlag = true
-        var that = this
-        this.$nextTick(() => {
-          that.$refs.ownersMemberManager.init(row)
-        })
-      },
-      rowSave(row, done, loading) {
-        row.imageUrl = func.join(row.imageUrl)
-        if (row.imageUrl.length > 0) {
-          var urls = []
-          var split = row.imageUrl.split(",")
-          split.forEach(url => {
-            var names = url.split("jczz/")
-            urls.push(names[1])
-          })
-          row.imageUrl = urls.join(",")
-        }
-        row.propertyFlag = 1
-        add(row).then(
-          () => {
-            this.onLoad(this.page)
-            this.$message({
-              type: "success",
-              message: "操作成功!",
+        showStringDispose (row, type) {
+            row[type] = !row[type]
+        },
+
+        manageMember (row) {
+            this.memberFlag = true
+            var that = this
+            this.$nextTick(() => {
+                that.$refs.ownersMemberManager.init(row)
             })
-            done()
-          },
-          (error) => {
-            window.console.log(error)
-            loading()
-          }
-        )
-      },
-      rowUpdate(row, index, done, loading) {
-        if (row.imageUrl.length > 0) {
-          var urls = []
-          var split = row.imageUrl.split(",")
-          split.forEach(url => {
-            var names = url.split("jczz/")
-            urls.push(names[1])
-          })
-          row.imageUrl = urls.join(",")
-        }
-        update(row).then(
-          () => {
-            this.onLoad(this.page)
-            this.$message({
-              type: "success",
-              message: "操作成功!",
-            })
-            done()
-          },
-          (error) => {
-            window.console.log(error)
-            loading()
-          }
-        )
-      },
-      rowDel(row) {
-        this.$confirm("确定将选择数据删除?", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning",
-          })
-          .then(() => {
-            return remove(row.id)
-          })
-          .then(() => {
-            this.onLoad(this.page)
-            this.$message({
-              type: "success",
-              message: "操作成功!",
-            })
-          })
-      },
-      // handleDelete() {
-      //   if (this.selectionList.length === 0) {
-      //     this.$message.warning("请选择至少一条数据");
-      //     return;
-      //   }
-      //   this.$confirm("确定将选择数据删除?", {
-      //       confirmButtonText: "确定",
-      //       cancelButtonText: "取消",
-      //       type: "warning",
-      //     })
-      //     .then(() => {
-      //       return remove(this.ids);
-      //     })
-      //     .then(() => {
-      //       this.onLoad(this.page);
-      //       this.$message({
-      //         type: "success",
-      //         message: "操作成功!",
-      //       });
-      //       this.$refs.crud.toggleSelection();
-      //     });
-      // },
-      beforeOpen(done, type) {
-        if (["edit", "view"].includes(type)) {
-          getDetatil(this.form.id).then((res) => {
-            this.form = res.data.data
-            this.form.propertyFlag = 1
-            if (this.form.constructionSchemeUrls.length > 0) {
-              var urls = []
-              var names = this.form.constructionSchemeUrls.split(",")
-              names.forEach(name => {
-                urls.push(website.minioUrl + name)
-              })
-              this.form.constructionSchemeUrls = urls.join(",")
-              const column = this.findObject(this.option.column, "principalId")
-              let arr = []
-              arr.push(this.form.areaId)
-              column.defaultExpandedKeys = arr
+        },
+        rowSave (row, done, loading) {
+            row.imageUrl = func.join(row.imageUrl)
+            if (row.imageUrl.length > 0) {
+                var urls = []
+                var split = row.imageUrl.split(",")
+                split.forEach(url => {
+                    var names = url.split("jczz/")
+                    urls.push(names[1])
+                })
+                row.imageUrl = urls.join(",")
             }
-          })
-        }
-        // con
-        done()
-      },
-      searchReset() {
-        this.query = {}
-        this.onLoad(this.page)
-      },
-      searchChange(params, done) {
-        this.query = params
-        this.page.currentPage = 1
-        this.onLoad(this.page, params)
-        done()
-      },
-      selectionChange(list) {
-        this.selectionList = list
-      },
-      selectionClear() {
-        this.selectionList = []
-        this.$refs.crud.toggleSelection()
-      },
-
-      currentChange(currentPage) {
-        this.page.currentPage = currentPage
-      },
-      sizeChange(pageSize) {
-        this.page.pageSize = pageSize
-      },
-      refreshChange() {
-        this.onLoad(this.page, this.query)
-      },
-      onLoad(page, params = {}) {
-        this.loading = true
-
-        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
-          const data = res.data.data
-          this.page.total = data.total
-          this.data = data.records.map(item => {
-            if (item.imageUrl && item.imageUrl.length > 0) {
-              var urls = []
-              var names = item.imageUrl.split(",")
-              names.forEach(name => {
-                urls.push(website.minioUrl + name)
-              })
-              item.imageUrl = urls.join(",")
+            row.propertyFlag = 1
+            add(row).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    window.console.log(error)
+                    loading()
+                }
+            )
+        },
+        rowUpdate (row, index, done, loading) {
+            if (row.imageUrl.length > 0) {
+                var urls = []
+                var split = row.imageUrl.split(",")
+                split.forEach(url => {
+                    var names = url.split("jczz/")
+                    urls.push(names[1])
+                })
+                row.imageUrl = urls.join(",")
             }
+            update(row).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    window.console.log(error)
+                    loading()
+                }
+            )
+        },
+        rowDel (row) {
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning",
+            })
+                .then(() => {
+                    return remove(row.id)
+                })
+                .then(() => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                })
+        },
+        // handleDelete() {
+        //   if (this.selectionList.length === 0) {
+        //     this.$message.warning("请选择至少一条数据");
+        //     return;
+        //   }
+        //   this.$confirm("确定将选择数据删除?", {
+        //       confirmButtonText: "确定",
+        //       cancelButtonText: "取消",
+        //       type: "warning",
+        //     })
+        //     .then(() => {
+        //       return remove(this.ids);
+        //     })
+        //     .then(() => {
+        //       this.onLoad(this.page);
+        //       this.$message({
+        //         type: "success",
+        //         message: "操作成功!",
+        //       });
+        //       this.$refs.crud.toggleSelection();
+        //     });
+        // },
+        beforeOpen (done, type) {
+            if (["edit", "view"].includes(type)) {
+                getDetatil(this.form.id).then((res) => {
+                    this.form = res.data.data
+                    this.form.propertyFlag = 1
+                    if (this.form.constructionSchemeUrls.length > 0) {
+                        var urls = []
+                        var names = this.form.constructionSchemeUrls.split(",")
+                        names.forEach(name => {
+                            urls.push(website.minioUrl + name)
+                        })
+                        this.form.constructionSchemeUrls = urls.join(",")
+                        const column = this.findObject(this.option.column, "principalId")
+                        let arr = []
+                        arr.push(this.form.areaId)
+                        column.defaultExpandedKeys = arr
+                    }
+                })
+            }
+            // con
+            done()
+        },
+        searchReset () {
+            this.query = {}
+            this.onLoad(this.page)
+        },
+        searchChange (params, done) {
+            this.query = params
+            this.page.currentPage = 1
+            this.onLoad(this.page, params)
+            done()
+        },
+        selectionChange (list) {
+            this.selectionList = list
+        },
+        selectionClear () {
+            this.selectionList = []
+            this.$refs.crud.toggleSelection()
+        },
 
-            return item
-          })
+        currentChange (currentPage) {
+            this.page.currentPage = currentPage
+        },
+        sizeChange (pageSize) {
+            this.page.pageSize = pageSize
+        },
+        refreshChange () {
+            this.onLoad(this.page, this.query)
+        },
+        onLoad (page, params = {}) {
+            this.loading = true
 
-          this.loading = false
-          this.selectionClear()
-        })
-      }
+            getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+                const data = res.data.data
+                this.page.total = data.total
+                this.data = data.records.map(item => {
+                    this.$set(item, 'mobileflag', false)
+                    if (item.imageUrl && item.imageUrl.length > 0) {
+                        var urls = []
+                        var names = item.imageUrl.split(",")
+                        names.forEach(name => {
+                            urls.push(website.minioUrl + name)
+                        })
+                        item.imageUrl = urls.join(",")
+                    }
+
+                    return item
+                })
+
+                this.loading = false
+                this.selectionClear()
+            })
+        }
     },
-  }
+}
 </script>
 
 <style scoped>
-  .avue-upload__icon {
+.avue-upload__icon {
     line-height: 6;
-  }
+}
 </style>
\ No newline at end of file
diff --git a/src/views/gzll/todo.vue b/src/views/gzll/todo.vue
index 0651969..7c8d446 100644
--- a/src/views/gzll/todo.vue
+++ b/src/views/gzll/todo.vue
@@ -1,215 +1,247 @@
 <template>
-  <basic-container>
-    <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
-      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
-      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
-      <template slot-scope="{row, size, index}" slot="menu">
-        <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.gzll_todo_handle"
-          @click.stop="handleWork(row)">处理
-        </el-button>
-        <el-button type="text" :size="size" icon="el-icon-info" v-if="permission.gzll_todo_detail"
-          @click.stop="handleDetail(row)">详情
-        </el-button>
-        <el-button type="text" :size="size" icon="el-icon-search" v-if="permission.gzll_todo_follow"
-          @click.stop="handleImage(row, index)">流程图
-        </el-button>
-      </template>
-      <template slot-scope="{row, size}" slot="processDefinitionVersion">
-        <el-tag :size="size">v{{ row.processDefinitionVersion }}</el-tag>
-      </template>
-    </avue-crud>
-    <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design>
-  </basic-container>
+    <basic-container>
+        <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
+            @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
+            @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+            <template slot-scope="{row, size, index}" slot="menu">
+                <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.gzll_todo_handle"
+                    @click.stop="handleWork(row)">处理
+                </el-button>
+                <el-button type="text" :size="size" icon="el-icon-info" v-if="permission.gzll_todo_detail"
+                    @click.stop="handleDetail(row)">详情
+                </el-button>
+                <el-button type="text" :size="size" icon="el-icon-search" v-if="permission.gzll_todo_follow"
+                    @click.stop="handleImage(row, index)">流程图
+                </el-button>
+            </template>
+            <template slot-scope="{row, size}" slot="processDefinitionVersion">
+                <el-tag :size="size">v{{ row.processDefinitionVersion }}</el-tag>
+            </template>
+            <template slot-scope="{row, size}" slot="linkPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'linkPhoneflag')"
+                    v-text="textDispose(row, 'linkPhoneflag', 'linkPhone')">
+                </el-button>
+            </template>
+        </avue-crud>
+        <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design>
+    </basic-container>
 </template>
 
 <script>
-  import {
+import {
     mapGetters
-  } from "vuex"
-  import {
+} from "vuex"
+import {
     todoList
-  } from "@/api/work/work"
-  import {
+} from "@/api/work/work"
+import {
     flowCategory,
     flowRoute
-  } from "@/util/flow"
+} from "@/util/flow"
 
-  export default {
-    data() {
-      return {
-        form: {},
-        selectionId: '',
-        selectionList: [],
-        query: {},
-        loading: true,
-        page: {
-          pageSize: 10,
-          currentPage: 1,
-          total: 0
-        },
-        processInstanceId: '',
-        flowBox: false,
-        workBox: false,
-        option: {
-          labelWidth: 120,
-          searchLabelWidth: 96,
-          searchShow: true,
-          searchMenuSpan: 3,
-          menuWidth: 210,
+export default {
+    data () {
+        return {
+            form: {},
+            selectionId: '',
+            selectionList: [],
+            query: {},
+            loading: true,
+            page: {
+                pageSize: 10,
+                currentPage: 1,
+                total: 0
+            },
+            processInstanceId: '',
+            flowBox: false,
+            workBox: false,
+            option: {
+                labelWidth: 120,
+                searchLabelWidth: 96,
+                searchShow: true,
+                searchMenuSpan: 3,
+                menuWidth: 210,
 
-          height: 'auto',
-          calcHeight: 30,
-          tip: false,
-          simplePage: true,
-          border: true,
-          index: true,
-          // selection: true,
-          editBtn: false,
-          addBtn: false,
-          viewBtn: false,
-          delBtn: false,
-          dialogWidth: 900,
-          dialogClickModal: false,
-          column: [{
-              label: "流程分类",
-              type: "select",
-              row: true,
-              dicUrl: "/api/blade-system/dict/dictionary?code=flow",
-              props: {
-                label: "dictValue",
-                value: "dictKey"
-              },
-              dataType: "number",
-              slot: true,
-              prop: "category",
-              // search: true,
-              hide: true,
-              width: 100,
+                height: 'auto',
+                calcHeight: 30,
+                tip: false,
+                simplePage: true,
+                border: true,
+                index: true,
+                // selection: true,
+                editBtn: false,
+                addBtn: false,
+                viewBtn: false,
+                delBtn: false,
+                dialogWidth: 900,
+                dialogClickModal: false,
+                column: [{
+                    label: "流程分类",
+                    type: "select",
+                    row: true,
+                    dicUrl: "/api/blade-system/dict/dictionary?code=flow",
+                    props: {
+                        label: "dictValue",
+                        value: "dictKey"
+                    },
+                    dataType: "number",
+                    slot: true,
+                    prop: "category",
+                    // search: true,
+                    hide: true,
+                    width: 100,
+                },
+                {
+                    width: 100,
+                    label: '申请类型',
+                    prop: 'categoryName',
+                    // search: true,
+                },
+                {
+                    width: 220,
+                    overHidden: true,
+                    label: "小区",
+                    prop: "districtId",
+                    // search: true,
+                    type: 'tree',
+                    dicUrl: `/api/blade-district/district/getDistrictTree`,
+                    props: {
+                        label: "name",
+                        value: "id"
+                    },
+                    defaultExpandedKeys: ["361102003"],
+                    searchSpan: 5,
+                    span: 12,
+                },
+                {
+                    width: 110,
+                    label: '联系人',
+                    prop: 'linkman',
+                    // search: true,
+                },
+                {
+                    width: 120,
+                    label: '联系电话',
+                    prop: 'linkPhone',
+                    // search: true,
+                    slot: true
+                },
+                {
+                    label: '项目名称',
+                    prop: 'name',
+                    // search: true,
+                },
+                {
+                    label: '当前步骤',
+                    prop: 'taskName',
+                },
+                // {
+                //   label: '流程版本',
+                //   prop: 'processDefinitionVersion',
+                //   // slot: true,
+                //   width: 80,
+                // },
+                {
+                    width: 144,
+                    label: '申请时间',
+                    prop: 'createTime',
+                },
+                ]
             },
-            {
-              width: 100,
-              label: '申请类型',
-              prop: 'categoryName',
-              // search: true,
-            },
-            {
-              width: 220,
-              overHidden: true,
-              label: "小区",
-              prop: "districtId",
-              // search: true,
-              type: 'tree',
-              dicUrl: `/api/blade-district/district/getDistrictTree`,
-              props: {
-                label: "name",
-                value: "id"
-              },
-              defaultExpandedKeys: ["361102003"],
-              searchSpan: 5,
-              span: 12,
-            },
-            {
-              width: 110,
-              label: '联系人',
-              prop: 'linkman',
-              // search: true,
-            },
-            {
-              width: 120,
-              label: '联系电话',
-              prop: 'linkPhone',
-              // search: true,
-            },
-            {
-              label: '项目名称',
-              prop: 'name',
-              // search: true,
-            },
-            {
-              label: '当前步骤',
-              prop: 'taskName',
-            },
-            // {
-            //   label: '流程版本',
-            //   prop: 'processDefinitionVersion',
-            //   // slot: true,
-            //   width: 80,
-            // },
-            {
-              width: 144,
-              label: '申请时间',
-              prop: 'createTime',
-            },
-          ]
-        },
-        data: []
-      }
+            data: []
+        }
     },
     computed: {
-      ...mapGetters(["permission", "flowRoutes"]),
-      ids() {
-        let ids = []
-        this.selectionList.forEach(ele => {
-          ids.push(ele.id)
-        })
-        return ids.join(",")
-      },
+        ...mapGetters(["permission", "flowRoutes"]),
+        ids () {
+            let ids = []
+            this.selectionList.forEach(ele => {
+                ids.push(ele.id)
+            })
+            return ids.join(",")
+        },
+
+        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: {
-      searchReset() {
-        this.query = {}
-        this.onLoad(this.page)
-      },
-      searchChange(params, done) {
-        this.query = params
-        this.page.currentPage = 1
-        this.onLoad(this.page, params)
-        done()
-      },
-      selectionChange(list) {
-        this.selectionList = list
-      },
-      selectionClear() {
-        this.selectionList = []
-        this.$refs.crud.toggleSelection()
-      },
-      handleWork(row) {
-        this.$router.push({
-          path: `/gzll/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}`
-        })
-      },
-      handleDetail(row) {
-        this.$router.push({
-          path: `/gzll/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`
-        })
-      },
-      handleImage(row) {
-        this.processInstanceId = row.processInstanceId
-        this.flowBox = true
-      },
-      currentChange(currentPage) {
-        this.page.currentPage = currentPage
-      },
-      sizeChange(pageSize) {
-        this.page.pageSize = pageSize
-      },
-      refreshChange() {
-        this.onLoad(this.page, this.query)
-      },
-      onLoad(page, params = {}) {
-        const query = {
-          ...this.query,
-          category: (params.category) ? flowCategory(params.category) : null
+        showStringDispose (row, type) {
+            row[type] = !row[type]
+        },
+
+        searchReset () {
+            this.query = {}
+            this.onLoad(this.page)
+        },
+        searchChange (params, done) {
+            this.query = params
+            this.page.currentPage = 1
+            this.onLoad(this.page, params)
+            done()
+        },
+        selectionChange (list) {
+            this.selectionList = list
+        },
+        selectionClear () {
+            this.selectionList = []
+            this.$refs.crud.toggleSelection()
+        },
+        handleWork (row) {
+            this.$router.push({
+                path: `/gzll/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}`
+            })
+        },
+        handleDetail (row) {
+            this.$router.push({
+                path: `/gzll/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`
+            })
+        },
+        handleImage (row) {
+            this.processInstanceId = row.processInstanceId
+            this.flowBox = true
+        },
+        currentChange (currentPage) {
+            this.page.currentPage = currentPage
+        },
+        sizeChange (pageSize) {
+            this.page.pageSize = pageSize
+        },
+        refreshChange () {
+            this.onLoad(this.page, this.query)
+        },
+        onLoad (page, params = {}) {
+            const query = {
+                ...this.query,
+                category: (params.category) ? flowCategory(params.category) : null
+            }
+            this.loading = true
+            todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
+                const data = {
+                    ...res.data.data,
+                    records: res.data.data.records.map(item => {
+                        return {
+                            ...item,
+                            'linkPhoneflag': false
+                        }
+                    })
+                }
+                this.page.total = data.total
+                this.data = data.records
+                this.loading = false
+                this.selectionClear()
+            })
         }
-        this.loading = true
-        todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
-          const data = res.data.data
-          this.page.total = data.total
-          this.data = data.records
-          this.loading = false
-          this.selectionClear()
-        })
-      }
     }
-  }
+}
 </script>
\ No newline at end of file
diff --git a/src/views/place/index.vue b/src/views/place/index.vue
index f543cbf..428e24f 100644
--- a/src/views/place/index.vue
+++ b/src/views/place/index.vue
@@ -41,6 +41,12 @@
                     @click="ManageTenants(row)">场所维护
                 </el-button>
             </template>
+
+            <template slot-scope="{row, size}" slot="principalPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
+                    v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')">
+                </el-button>
+            </template>
         </avue-crud>
 
         <baseAllInfo ref="BaseAllInfo"></baseAllInfo>
@@ -649,9 +655,27 @@
                     return ''
                 }
             }
+        },
+
+        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]
+        },
+
         locationDispose (data) {
             data = data.split(',')
 
@@ -862,6 +886,7 @@
                 this.data = data.records
 
                 this.data.forEach(item => {
+                    this.$set(item, 'principalPhoneflag', false)
                     if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) {
                         var urls = []
                         var names = item.imageUrls.split(",").filter(item => item != '')
diff --git a/src/views/property/propertyCapitalApply.vue b/src/views/property/propertyCapitalApply.vue
index af374f2..03087bd 100644
--- a/src/views/property/propertyCapitalApply.vue
+++ b/src/views/property/propertyCapitalApply.vue
@@ -23,6 +23,12 @@
             <!-- <template slot="constructionSchemeUrlsType" slot-scope="{file}">
         <span>{{ file }}</span>
       </template> -->
+
+            <template slot-scope="{row, size}" slot="linkPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'linkPhoneflag')"
+                    v-text="textDispose(row, 'linkPhoneflag', 'linkPhone')">
+                </el-button>
+            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -336,8 +342,26 @@
             })
             return ids.join(",")
         },
+
+        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]
+        },
+
         handleWork (row) {
             this.$router.push({
                 path: `/work/process/maintenanceFundApply/edit/${row.taskId}/${row.processInstanceId}/${row.id}`
@@ -505,6 +529,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'linkPhoneflag', false)
                     if (item.constructionSchemeUrls.length > 0) {
                         var urls = []
                         var names = item.constructionSchemeUrls.split(",")
diff --git a/src/views/property/propertyCompanyDistrict.vue b/src/views/property/propertyCompanyDistrict.vue
index 022f8c1..c241be9 100644
--- a/src/views/property/propertyCompanyDistrict.vue
+++ b/src/views/property/propertyCompanyDistrict.vue
@@ -11,6 +11,11 @@
                     @click="handleDelete">删 除
                 </el-button>
             </template>
+            <template slot-scope="{row, size}" slot="principalPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
+                    v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')">
+                </el-button>
+            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -197,6 +202,7 @@
                         trigger: 'blur'
                     }
                     ],
+                    slot: true
                 },
                 {
                     label: "物业成员",
@@ -298,8 +304,26 @@
             })
             return ids.join(",")
         },
+
+        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]
+        },
+
         initData () {
             getPropertyCompanyList().then(res => {
                 const column = this.findObject(this.option.column, "propertyCompanyId")
@@ -440,7 +464,15 @@
             }
             this.loading = true
             getList(page.currentPage, page.pageSize, values).then((res) => {
-                const data = res.data.data
+                const data = {
+                    ...res.data.data,
+                    records: res.data.data.records.map(item => {
+                        return {
+                            ...item,
+                            'principalPhoneflag': false
+                        }
+                    })
+                }
                 this.page.total = data.total
                 this.data = data.records
                 this.loading = false
diff --git a/src/views/property/todo.vue b/src/views/property/todo.vue
index 4cb4a06..19de4b8 100644
--- a/src/views/property/todo.vue
+++ b/src/views/property/todo.vue
@@ -1,215 +1,248 @@
 <template>
-  <basic-container>
-    <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
-      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
-      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
-      <template slot-scope="{row, size, index}" slot="menu">
-        <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.property_todo_handle"
-          @click.stop="handleWork(row)">处理
-        </el-button>
-        <el-button type="text" :size="size" icon="el-icon-info" v-if="permission.property_todo_detail"
-          @click.stop="handleDetail(row)">详情
-        </el-button>
-        <el-button type="text" :size="size" icon="el-icon-search" v-if="permission.property_todo_follow"
-          @click.stop="handleImage(row, index)">流程图
-        </el-button>
-      </template>
-      <template slot-scope="{row, size}" slot="processDefinitionVersion">
-        <el-tag :size="size">v{{ row.processDefinitionVersion }}</el-tag>
-      </template>
-    </avue-crud>
-    <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design>
-  </basic-container>
+    <basic-container>
+        <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
+            @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
+            @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+            <template slot-scope="{row, size, index}" slot="menu">
+                <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.property_todo_handle"
+                    @click.stop="handleWork(row)">处理
+                </el-button>
+                <el-button type="text" :size="size" icon="el-icon-info" v-if="permission.property_todo_detail"
+                    @click.stop="handleDetail(row)">详情
+                </el-button>
+                <el-button type="text" :size="size" icon="el-icon-search" v-if="permission.property_todo_follow"
+                    @click.stop="handleImage(row, index)">流程图
+                </el-button>
+            </template>
+            <template slot-scope="{row, size}" slot="processDefinitionVersion">
+                <el-tag :size="size">v{{ row.processDefinitionVersion }}</el-tag>
+            </template>
+
+            <template slot-scope="{row, size}" slot="linkPhone">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'linkPhoneflag')"
+                    v-text="textDispose(row, 'linkPhoneflag', 'linkPhone')">
+                </el-button>
+            </template>
+        </avue-crud>
+        <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design>
+    </basic-container>
 </template>
 
 <script>
-  import {
+import {
     mapGetters
-  } from "vuex"
-  import {
+} from "vuex"
+import {
     todoList
-  } from "@/api/work/work"
-  import {
+} from "@/api/work/work"
+import {
     flowCategory,
     flowRoute
-  } from "@/util/flow"
+} from "@/util/flow"
 
-  export default {
-    data() {
-      return {
-        form: {},
-        selectionId: '',
-        selectionList: [],
-        query: {},
-        loading: true,
-        page: {
-          pageSize: 10,
-          currentPage: 1,
-          total: 0
-        },
-        processInstanceId: '',
-        flowBox: false,
-        workBox: false,
-        option: {
-          labelWidth: 120,
-          searchLabelWidth: 96,
-          searchShow: true,
-          searchMenuSpan: 3,
-          menuWidth: 210,
+export default {
+    data () {
+        return {
+            form: {},
+            selectionId: '',
+            selectionList: [],
+            query: {},
+            loading: true,
+            page: {
+                pageSize: 10,
+                currentPage: 1,
+                total: 0
+            },
+            processInstanceId: '',
+            flowBox: false,
+            workBox: false,
+            option: {
+                labelWidth: 120,
+                searchLabelWidth: 96,
+                searchShow: true,
+                searchMenuSpan: 3,
+                menuWidth: 210,
 
-          height: 'auto',
-          calcHeight: 30,
-          tip: false,
-          simplePage: true,
-          border: true,
-          index: true,
-          // selection: true,
-          editBtn: false,
-          addBtn: false,
-          viewBtn: false,
-          delBtn: false,
-          dialogWidth: 900,
-          dialogClickModal: false,
-          column: [{
-              label: "流程分类",
-              type: "select",
-              row: true,
-              dicUrl: "/api/blade-system/dict/dictionary?code=flow",
-              props: {
-                label: "dictValue",
-                value: "dictKey"
-              },
-              dataType: "number",
-              slot: true,
-              prop: "category",
-              // search: true,
-              hide: true,
-              width: 100,
+                height: 'auto',
+                calcHeight: 30,
+                tip: false,
+                simplePage: true,
+                border: true,
+                index: true,
+                // selection: true,
+                editBtn: false,
+                addBtn: false,
+                viewBtn: false,
+                delBtn: false,
+                dialogWidth: 900,
+                dialogClickModal: false,
+                column: [{
+                    label: "流程分类",
+                    type: "select",
+                    row: true,
+                    dicUrl: "/api/blade-system/dict/dictionary?code=flow",
+                    props: {
+                        label: "dictValue",
+                        value: "dictKey"
+                    },
+                    dataType: "number",
+                    slot: true,
+                    prop: "category",
+                    // search: true,
+                    hide: true,
+                    width: 100,
+                },
+                {
+                    width: 100,
+                    label: '申请类型',
+                    prop: 'categoryName',
+                    // search: true,
+                },
+                {
+                    width: 220,
+                    overHidden: true,
+                    label: "小区",
+                    prop: "districtId",
+                    // search: true,
+                    type: 'tree',
+                    dicUrl: `/api/blade-district/district/getDistrictTree`,
+                    props: {
+                        label: "name",
+                        value: "id"
+                    },
+                    defaultExpandedKeys: ["361102003"],
+                    searchSpan: 5,
+                    span: 12,
+                },
+                {
+                    width: 110,
+                    label: '联系人',
+                    prop: 'linkman',
+                    // search: true,
+                },
+                {
+                    width: 120,
+                    label: '联系电话',
+                    prop: 'linkPhone',
+                    // search: true,
+                    slot: true
+                },
+                {
+                    label: '项目名称',
+                    prop: 'name',
+                    // search: true,
+                },
+                {
+                    label: '当前步骤',
+                    prop: 'taskName',
+                },
+                // {
+                //   label: '流程版本',
+                //   prop: 'processDefinitionVersion',
+                //   // slot: true,
+                //   width: 80,
+                // },
+                {
+                    width: 144,
+                    label: '申请时间',
+                    prop: 'createTime',
+                },
+                ]
             },
-            {
-              width: 100,
-              label: '申请类型',
-              prop: 'categoryName',
-              // search: true,
-            },
-            {
-              width: 220,
-              overHidden: true,
-              label: "小区",
-              prop: "districtId",
-              // search: true,
-              type: 'tree',
-              dicUrl: `/api/blade-district/district/getDistrictTree`,
-              props: {
-                label: "name",
-                value: "id"
-              },
-              defaultExpandedKeys: ["361102003"],
-              searchSpan: 5,
-              span: 12,
-            },
-            {
-              width: 110,
-              label: '联系人',
-              prop: 'linkman',
-              // search: true,
-            },
-            {
-              width: 120,
-              label: '联系电话',
-              prop: 'linkPhone',
-              // search: true,
-            },
-            {
-              label: '项目名称',
-              prop: 'name',
-              // search: true,
-            },
-            {
-              label: '当前步骤',
-              prop: 'taskName',
-            },
-            // {
-            //   label: '流程版本',
-            //   prop: 'processDefinitionVersion',
-            //   // slot: true,
-            //   width: 80,
-            // },
-            {
-              width: 144,
-              label: '申请时间',
-              prop: 'createTime',
-            },
-          ]
-        },
-        data: []
-      }
+            data: []
+        }
     },
     computed: {
-      ...mapGetters(["permission", "flowRoutes"]),
-      ids() {
-        let ids = []
-        this.selectionList.forEach(ele => {
-          ids.push(ele.id)
-        })
-        return ids.join(",")
-      },
+        ...mapGetters(["permission", "flowRoutes"]),
+        ids () {
+            let ids = []
+            this.selectionList.forEach(ele => {
+                ids.push(ele.id)
+            })
+            return ids.join(",")
+        },
+
+        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: {
-      searchReset() {
-        this.query = {}
-        this.onLoad(this.page)
-      },
-      searchChange(params, done) {
-        this.query = params
-        this.page.currentPage = 1
-        this.onLoad(this.page, params)
-        done()
-      },
-      selectionChange(list) {
-        this.selectionList = list
-      },
-      selectionClear() {
-        this.selectionList = []
-        this.$refs.crud.toggleSelection()
-      },
-      handleWork(row) {
-        this.$router.push({
-          path: `/property/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}`
-        })
-      },
-      handleDetail(row) {
-        this.$router.push({
-          path: `/property/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`
-        })
-      },
-      handleImage(row) {
-        this.processInstanceId = row.processInstanceId
-        this.flowBox = true
-      },
-      currentChange(currentPage) {
-        this.page.currentPage = currentPage
-      },
-      sizeChange(pageSize) {
-        this.page.pageSize = pageSize
-      },
-      refreshChange() {
-        this.onLoad(this.page, this.query)
-      },
-      onLoad(page, params = {}) {
-        const query = {
-          ...this.query,
-          category: (params.category) ? flowCategory(params.category) : null
+        showStringDispose (row, type) {
+            row[type] = !row[type]
+        },
+
+        searchReset () {
+            this.query = {}
+            this.onLoad(this.page)
+        },
+        searchChange (params, done) {
+            this.query = params
+            this.page.currentPage = 1
+            this.onLoad(this.page, params)
+            done()
+        },
+        selectionChange (list) {
+            this.selectionList = list
+        },
+        selectionClear () {
+            this.selectionList = []
+            this.$refs.crud.toggleSelection()
+        },
+        handleWork (row) {
+            this.$router.push({
+                path: `/property/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}`
+            })
+        },
+        handleDetail (row) {
+            this.$router.push({
+                path: `/property/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`
+            })
+        },
+        handleImage (row) {
+            this.processInstanceId = row.processInstanceId
+            this.flowBox = true
+        },
+        currentChange (currentPage) {
+            this.page.currentPage = currentPage
+        },
+        sizeChange (pageSize) {
+            this.page.pageSize = pageSize
+        },
+        refreshChange () {
+            this.onLoad(this.page, this.query)
+        },
+        onLoad (page, params = {}) {
+            const query = {
+                ...this.query,
+                category: (params.category) ? flowCategory(params.category) : null
+            }
+            this.loading = true
+            todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
+                const data = {
+                    ...res.data.data,
+                    records: res.data.data.records.map(item => {
+                        return {
+                            ...item,
+                            'linkPhoneflag': false
+                        }
+                    })
+                }
+                this.page.total = data.total
+                this.data = data.records
+                this.loading = false
+                this.selectionClear()
+            })
         }
-        this.loading = true
-        todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
-          const data = res.data.data
-          this.page.total = data.total
-          this.data = data.records
-          this.loading = false
-          this.selectionClear()
-        })
-      }
     }
-  }
+}
 </script>
\ No newline at end of file
diff --git a/src/views/publicSecurity/positionManage/TransactRegist.vue b/src/views/publicSecurity/positionManage/TransactRegist.vue
index f35b49b..b293891 100644
--- a/src/views/publicSecurity/positionManage/TransactRegist.vue
+++ b/src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -28,6 +28,17 @@
                 <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
                 </el-button>
             </template>
+
+            <template slot-scope="{row, size}" slot="phoneNumber">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneNumberflag')"
+                    v-text="textDispose(row, 'phoneNumberflag', 'phoneNumber')">
+                </el-button>
+            </template>
+            <template slot-scope="{row, size}" slot="transactionObjectTel">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'transactionObjectTelflag')"
+                    v-text="textDispose(row, 'transactionObjectTelflag', 'transactionObjectTel')">
+                </el-button>
+            </template>
         </avue-crud>
 
 
@@ -159,7 +170,8 @@
                             validator: validatorPhone,
                             trigger: 'blur'
                         }],
-                        align: 'center'
+                        align: 'center',
+                        slot: true,
                     },
                     {
                         width: 110,
@@ -205,6 +217,7 @@
                         search: true,
                         align: 'center',
                         labelWidth: 110,
+                        slot: true
                     },
                     {
                         width: 110,
@@ -384,9 +397,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]
+        },
+
         // 弹窗关闭回调
         handleClose () {
             this.cancelAudit()
@@ -651,6 +682,8 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'phoneNumberflag', false)
+                    this.$set(item, 'transactionObjectTelflag', false)
                     if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) {
                         var urls = []
                         var names = item.imageUrls.split(",").filter(item => item != '')
diff --git a/src/views/task/reportForRepairs.vue b/src/views/task/reportForRepairs.vue
index 2609458..3b6f7d8 100644
--- a/src/views/task/reportForRepairs.vue
+++ b/src/views/task/reportForRepairs.vue
@@ -97,6 +97,12 @@
                     除
                 </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">
@@ -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