From f2a74b0b28b74dc29be85ec8e6328bdd262f84b9 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 24 May 2024 14:35:58 +0800
Subject: [PATCH] 地址配置修改

---
 src/views/securityMan/index.vue |  365 +--------------------------------------------------
 1 files changed, 9 insertions(+), 356 deletions(-)

diff --git a/src/views/securityMan/index.vue b/src/views/securityMan/index.vue
index 8c24f9e..f65fe16 100644
--- a/src/views/securityMan/index.vue
+++ b/src/views/securityMan/index.vue
@@ -1,19 +1,6 @@
 <template>
     <div class="dispatch">
-        <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
-    <span v-if="typeTABS.prop === 'tab1'"> -->
-        <div class="avue-page" id="avuePageEle"
-            style="width: 1000px;margin: 0 auto;padding: 0 20px;position: relative;background-color: #fff;">
-            <avue-form ref="form" v-model="form" :option="option0">
-                <template slot="menuLeft">
-                    <el-button type="primary" size="small" plain icon="el-icon-s-check" @click="printBA">打印
-                    </el-button>
-                </template>
-            </avue-form>
-        </div>
-        <div class="printBtn">
-            <el-button type="primary" @click="printBAInfo">打印</el-button>
-        </div>
+        <bAForm :form="form"></bAForm>
     </div>
 </template>
 
@@ -41,6 +28,8 @@
 import { getUser, getUserPractitionersInfo, update as updateUserInfo } from "@/api/system/user"
 
 import { mapState } from "vuex"
+
+import bAForm from '@/components/bAForm/main'
 
 export default {
     data () {
@@ -80,312 +69,6 @@
             id: "",
             form: {
                 title: "",
-            },
-            option0: {
-                emptyBtn: false,
-                editBtn: false,
-                submitBtn: false,
-                group: [
-                    {
-                        label: "基础信息",
-                        labelWidth: "110",
-                        prop: "baseInfo",
-                        icon: "el-icon-user-solid",
-                        column: [
-                            {
-                                label: "企业名称",
-                                prop: "deptId",
-                                type: "tree",
-                                disabled: true,
-                                props: {
-                                    label: "title",
-                                    value: "id"
-                                },
-                                dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
-                                labelWidth: 120,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "姓名",
-                                prop: "realName",
-                                disabled: true,
-                                labelWidth: 120,
-                                placeholder: ' '
-                            }
-                        ]
-                    },
-                    {
-                        label: "详细信息",
-                        prop: "detailInfo",
-                        labelWidth: "110",
-                        icon: "el-icon-s-order",
-                        column: [
-                            {
-                                label: "身份证号",
-                                prop: "cardid",
-                                hide: true,
-                                overHidden: true,
-                                disabled: true,
-                                labelWidth: 120,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "手机号码",
-                                prop: "phone",
-                                overHidden: true,
-                                disabled: true,
-                                labelWidth: 120,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "个人照片",
-                                type: "upload",
-                                listType: "picture-img",
-                                labelWidth: 120,
-                                disabled: true,
-                                propsHttp: {
-                                    res: "data",
-                                    url: "url"
-                                },
-                                canvasOption: {
-                                    text: " ",
-                                    ratio: 1.0
-                                },
-                                action: "/api/blade-resource/oss/endpoint/put-files",
-                                tip:
-                                    "上传近期一寸彩色正面免冠图象, (358像素(宽) × 441像素(高)、分辨率350dpi)且不小于30kb,不超过500kb",
-                                span: 12,
-                                prop: "avatar",
-                                placeholder: ' '
-                            },
-                            {
-                                label: "是否持证",
-                                prop: "hold",
-                                type: "select",
-                                disabled: true,
-                                dicData: [
-                                    {
-                                        label: "是",
-                                        value: "1"
-                                    },
-                                    {
-                                        label: "否",
-                                        value: "2"
-                                    },
-                                    {
-                                        label: "已吊销",
-                                        value: "3"
-                                    }
-                                ],
-                                placeholder: ' '
-                            },
-                            {
-                                label: "保安员证编号",
-                                prop: "securitynumber",
-                                hide: true,
-                                disabled: true,
-                                display: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "民族",
-                                disabled: true,
-                                prop: "nation",
-                                placeholder: ' '
-                            },
-                            {
-                                label: "最高学历",
-                                prop: "education1",
-                                disabled: true,
-                                type: "select",
-                                dicUrl:
-                                    "/api/blade-system/dict-biz/dictionary?code=educationType",
-                                props: {
-                                    label: "dictValue",
-                                    value: "dictKey"
-                                },
-                                dataType: "number",
-                                slot: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "政治面貌",
-                                disabled: true,
-                                prop: "politicaloutlook",
-                                placeholder: ' '
-                            },
-                            {
-                                label: "所属辖区",
-                                prop: "jurisdiction",
-                                // multiple: true,
-                                type: "tree",
-                                disabled: true,
-                                dicUrl: "/api/jurisdiction/lazy-tree",
-                                props: {
-                                    label: "title",
-                                    value: "id"
-                                },
-                                checkStrictly: true,
-                                slot: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "从业单位",
-                                disabled: true,
-                                prop: "unitName",
-                                placeholder: ' '
-                            },
-                            {
-                                label: "性别",
-                                prop: "sex",
-                                type: "select",
-                                disabled: true,
-                                slot: true,
-                                dicData: [
-                                    {
-                                        label: "男",
-                                        value: 1
-                                    },
-                                    {
-                                        label: "女",
-                                        value: 2
-                                    }
-                                ],
-                                placeholder: ' '
-                            },
-                            {
-                                label: "婚姻状态",
-                                prop: "marriageStatus",
-                                type: "select",
-                                disabled: true,
-                                dicUrl:
-                                    "/api/blade-system/dict-biz/dictionary?code=marriageStatusType",
-                                props: {
-                                    label: "dictValue",
-                                    value: "dictKey"
-                                },
-                                dataType: "number",
-                                hide: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "户籍地址",
-                                prop: "permanentResidenceAddress",
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "报考等级",
-                                prop: "signLevel",
-                                type: "select",
-                                dicUrl:
-                                    "/api/blade-system/dict-biz/dictionary?code=signLevelType",
-                                props: {
-                                    label: "dictValue",
-                                    value: "dictKey"
-                                },
-                                dataType: "number",
-                                disabled: true,
-                                hide: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "家庭主要成员及联系方式",
-                                prop: "memberOfFamily",
-                                type: "textarea",
-                                span: 24,
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "教育经历",
-                                prop: "educationExperience",
-                                type: "textarea",
-                                span: 24,
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "工作经历",
-                                prop: "workExperience",
-                                type: "textarea",
-                                span: 24,
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "受理机关",
-                                prop: "acceptancePoliceUnit",
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "受理人",
-                                prop: "acceptancePerson",
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "受理时间",
-                                prop: "acceptanceTime",
-                                type: "date",
-                                format: "yyyy-MM-dd",
-                                valueFormat: "yyyy-MM-dd",
-                                span: 12,
-                                row: true,
-                                hide: true,
-                                disabled: true,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "健康状况图片(健康证)",
-                                prop: "healthCertificateUrl",
-                                type: "upload",
-                                disabled: true,
-                                listType: "picture-img",
-                                propsHttp: {
-                                    res: "data",
-                                    url: "url"
-                                },
-                                canvasOption: {
-                                    text: " ",
-                                    ratio: 1.0
-                                },
-                                action: "/api/blade-resource/oss/endpoint/put-files",
-                                span: 12,
-                                hide: true,
-                                labelWidth: 120,
-                                placeholder: ' '
-                            },
-                            {
-                                label: "无犯罪记录图片",
-                                prop: "noCriminalRecordProveUrl",
-                                type: "upload",
-                                disabled: true,
-                                listType: "picture-img",
-                                propsHttp: {
-                                    res: "data",
-                                    url: "url"
-                                },
-                                canvasOption: {
-                                    text: " ",
-                                    ratio: 1.0
-                                },
-                                action: "/api/blade-resource/oss/endpoint/put-files",
-                                span: 12,
-                                hide: true,
-                                labelWidth: 120,
-                                placeholder: ' '
-                            }
-                        ]
-                    }
-                ]
             },
             loading1: true,
             loading2: true,
@@ -441,6 +124,10 @@
         }
     },
 
+    components: {
+        bAForm
+    },
+
     computed: {
         ids1 () {
             let ids1 = []
@@ -454,20 +141,6 @@
         }),
     },
     methods: {
-        // 打印保安信息
-        printBAInfo () {
-            var printDom = document.getElementById("avuePageEle")
-            this.$print("#avuePageEle", {
-                noPrint: ".noPrint",
-                onStart: () => {
-                    // console.log('打印开始', Date.parse(new Date()));
-                },
-                onEnd: () => {
-                    // console.log('打印完成', Date.parse(new Date()));
-                }
-            })
-        },
-
         Print () {
             var printDom = document.getElementById("baoanzheng")
             printDom.style.position = "fixed"
@@ -687,8 +360,8 @@
             }
             if (this.form.userDetail) {
                 this.form.userDetailId = this.form.userDetail.id
-                this.form.marriageStatus = this.form.userDetail.marriageStatus
-                this.form.signLevel = this.form.userDetail.signLevel
+                this.form.marriageStatus = this.form.userDetail.marriageStatus == -1 ? '' : this.form.userDetail.marriageStatus
+                this.form.signLevel = this.form.userDetail.signLevel ? '' : this.form.userDetail.signLevel
                 this.form.permanentResidenceAddress = this.form.userDetail.permanentResidenceAddress
                 this.form.dwellAddress = this.form.userDetail.dwellAddress
                 this.form.memberOfFamily = this.form.userDetail.memberOfFamily
@@ -743,26 +416,6 @@
     height: 100%;
     //   border: 1px solid #000;
     box-sizing: border-box;
-}
-
-.printBtn {
-    position: fixed;
-    top: 114px;
-    right: 216px;
-}
-
-.avue-page {
-
-
-    :deep(.el-input.is-disabled .el-input__inner) {
-        background-color: #fff;
-        color: #000;
-    }
-
-    :deep(.el-textarea.is-disabled .el-textarea__inner) {
-        background-color: #fff;
-        color: #000;
-    }
 }
 
 .baoanzheng {

--
Gitblit v1.9.3