From 73cdc84dd9aa7ad976ab9bdd46bed1345ef476b5 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 12 Oct 2021 13:52:37 +0800
Subject: [PATCH] +

---
 src/views/securityGuardManagement/register.vue |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/src/views/securityGuardManagement/register.vue b/src/views/securityGuardManagement/register.vue
index ef4afa4..b8f65ab 100644
--- a/src/views/securityGuardManagement/register.vue
+++ b/src/views/securityGuardManagement/register.vue
@@ -2,7 +2,7 @@
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
  * @Last Modified by: liu
- * @Last Modified time: 2021-09-14 17:56:13
+ * @Last Modified time: 2021-09-23 17:29:29
  * menu-name 保安员注册查询
  */
 <template>
@@ -846,8 +846,10 @@
     },
     "excelForm.isCovered"() {
       if (this.excelForm.isCovered !== "") {
-        const column = this.findObject(this.excelOption.column, "excelFile");
-        column.action = `/api/blade-user/import-user?isCovered=${this.excelForm.isCovered}`;
+        try {
+          const column = this.findObject(this.excelOption.column, "excelFile");
+          column.action = `/api/blade-user/import-user?isCovered=${this.excelForm.isCovered}`;
+        } catch {}
       }
     },
   },
@@ -1022,16 +1024,22 @@
     },
     initData(tenantId) {
       getRoleTree(tenantId).then((res) => {
-        const column = this.findObject(this.option.group, "roleId");
-        column.dicData = res.data.data;
+        try {
+          const column = this.findObject(this.option.group, "roleId");
+          column.dicData = res.data.data;
+        } catch {}
       });
       getDeptTree(tenantId).then((res) => {
-        const column = this.findObject(this.option.group, "deptId");
-        column.dicData = res.data.data;
+        try {
+          const column = this.findObject(this.option.group, "deptId");
+          column.dicData = res.data.data;
+        } catch {}
       });
       getPostList(tenantId).then((res) => {
-        const column = this.findObject(this.option.group, "postId");
-        column.dicData = res.data.data;
+        try {
+          const column = this.findObject(this.option.group, "postId");
+          column.dicData = res.data.data;
+        } catch {}
       });
     },
 

--
Gitblit v1.9.3