From 5f052d4e17b53d4fe07a87d53a9c112bff3dc852 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期一, 13 九月 2021 11:58:36 +0800
Subject: [PATCH] 修改文案 为 下载导入模板

---
 src/pages/system/admin.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/pages/system/admin.vue b/src/pages/system/admin.vue
index dc81aaf..2b20b29 100644
--- a/src/pages/system/admin.vue
+++ b/src/pages/system/admin.vue
@@ -49,6 +49,7 @@
       <el-table-column label="鐘舵��" align="center" min-width="100">
         <template slot-scope="scope">
           <el-switch
+            v-if="scope.row.type!=0"
             v-model="scope.row.isUse"
             :active-value="1"
             :inactive-value="0"
@@ -67,7 +68,7 @@
             @click="showEditAdminDialog(scope.row)"
           >缂栬緫</el-button>
           <el-button
-            v-if="getAuthValueFN('sys_admin_del')"
+            v-if="getAuthValueFN('sys_admin_del') && scope.row.type!=0"
             size="mini"
             type="text warn"
             icon="el-icon-delete"
@@ -184,7 +185,7 @@
         ],
         password: [
           { required: true, message: '瀵嗙爜涓嶈兘涓虹┖', trigger: 'change' },
-          { min: 5, max: 20, message: '瀵嗙爜鍦�5~20涓瓧涔嬮棿'}
+          { min: 5, max: 20, message: '瀵嗙爜鍦�5~20涓瓧涔嬮棿' }
         ],
         passwordSure: [
           { required: true, message: '纭瀵嗙爜涓嶈兘涓虹┖', trigger: 'change' },
@@ -231,7 +232,7 @@
           }
         }
       }, (inf) => {
-        this.roleArr = inf.list || []
+        this.roleArr = inf.list && inf.list.filter(item => item.isUse === 1) || []
       })
     },
 

--
Gitblit v1.8.0