From 4da370f500cbabfbeb75f8006b8a3403656c4c5f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 01 Sep 2021 16:33:17 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_enterprises

---
 src/views/securityMan/index.vue |   85 ++++++++++++++++++++----------------------
 1 files changed, 41 insertions(+), 44 deletions(-)

diff --git a/src/views/securityMan/index.vue b/src/views/securityMan/index.vue
index 0c476a8..d0ceff0 100644
--- a/src/views/securityMan/index.vue
+++ b/src/views/securityMan/index.vue
@@ -2,7 +2,8 @@
   <div class="dispatch">
     <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
     <span v-if="typeTABS.prop === 'tab1'">
-      <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit"> </avue-form>
+      <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit">
+      </avue-form>
     </span>
     <span v-else-if="typeTABS.prop === 'tab2'">
       <avue-crud
@@ -95,7 +96,7 @@
   updateExperience,
   getUserDetails,
   experienceRemove,
-  getExperienceList
+  getExperienceList,
 } from "@/api/experience/experience";
 
 import {
@@ -107,7 +108,7 @@
   getER,
 } from "@/api/performance/performance";
 
-import {update as updateUserInfo} from "@/api/system/user";
+import { update as updateUserInfo } from "@/api/system/user";
 
 import { mapState } from "vuex";
 
@@ -116,7 +117,7 @@
     return {
       typeTABS: {}, //标签页
       row: {}, //数据
-      isSecurity:false,
+      isSecurity: false,
       optionTABS: {
         column: [
           {
@@ -192,7 +193,7 @@
       option2: {
         card: true,
         menu: false,
-        addBtn:false,
+        addBtn: false,
         height: "auto",
         widtd: "auto",
         calcHeight: 54,
@@ -222,7 +223,6 @@
     ...mapState({
       userInfo: (state) => state.user.userInfo,
     }),
-    
   },
   methods: {
     Print() {
@@ -262,7 +262,7 @@
         securityid: this.id,
       };
       //获取用户从业信息
-      getExperienceList(this.current, this.size,param).then((res1) => {
+      getExperienceList(this.current, this.size, param).then((res1) => {
         const data = res1.data.data;
         this.page1.total = data.total;
         this.data1 = data.records;
@@ -283,7 +283,6 @@
         this.loading2 = false;
       });
     },
-    
 
     rowSave2(form, done, loading) {
       form.securityid = this.id;
@@ -391,56 +390,54 @@
         });
     },
     //信息修改
-    submit(){
-
-      updateUserInfo(this.obj0).then(()=>{
-          this.$message({
+    submit() {
+      updateUserInfo(this.obj0).then(() => {
+        this.$message({
           type: "success",
           message: "操作成功!",
         });
-      })
-    }
+      });
+    },
   },
   mounted() {
     this.typeTABS = this.optionTABS.column[0];
     // var data = JSON.parse(this.$route.query.row);
     //查询保安员信息
-    console.log(this.userInfo,456);
+    console.log(this.userInfo, 456);
     this.id = this.userInfo.Id;
-    var roleName  = this.userInfo.role_name;
-    debugger;
+    var roleName = this.userInfo.role_name;
+    // debugger;
     //如果保安,才能看保安证
-    if(roleName=="保安"){
-      this.isSecurity= true;
+    if (roleName == "保安") {
+      this.isSecurity = true;
       this.optionTABS.column = [
-          {
-            // icon: "el-icon-info",
-            label: "保安员基本信息",
-            prop: "tab1",
-          },
-          {
-            // icon: "el-icon-info",
-            label: "从业记录",
-            prop: "tab2",
-          },
-          {
-            // icon: "el-icon-info",
-            label: "现实表现记录",
-            prop: "tab3",
-          },
-          {
-            // icon: "el-icon-info",
-            label: "保安员证",
-            prop: "tab4",
-          },
-        ]
+        {
+          // icon: "el-icon-info",
+          label: "保安员基本信息",
+          prop: "tab1",
+        },
+        {
+          // icon: "el-icon-info",
+          label: "从业记录",
+          prop: "tab2",
+        },
+        {
+          // icon: "el-icon-info",
+          label: "现实表现记录",
+          prop: "tab3",
+        },
+        {
+          // icon: "el-icon-info",
+          label: "保安员证",
+          prop: "tab4",
+        },
+      ];
     }
-    getUserDetails(this.id).then((res)=>{
-      console.log(res.data.data,123);
+    getUserDetails(this.id).then((res) => {
+      console.log(res.data.data, 123);
       var data = res.data.data;
       this.obj0 = data;
-    })
-
+    });
 
     var flag = false,
       i = 0,

--
Gitblit v1.9.3