guhongwei 2 years ago
parent
commit
3d7ba19b9b

+ 1 - 1
src/views/admin/admins/detail.vue

@@ -108,7 +108,7 @@ const searchOther = async () => {
     codeList.value = data.filter((i) => i.value != 'CJGLY');
   }
   // 角色
-  res = await role.query();
+  res = await role.query({ account_type: '1', is_use: '0' });
   if (res.errcode == 0) roleList.value = res.data;
   // 管理员
   res = await admin.query({ type: '0' });

+ 1 - 1
src/views/admin/business/detail.vue

@@ -110,7 +110,7 @@ const searchOther = async () => {
     codeList.value = data.filter((i) => i.value != 'CJGLY');
   }
   // 角色
-  res = await role.query();
+  res = await role.query({ account_type: '3', is_use: '0' });
   if (res.errcode == 0) roleList.value = res.data;
   // 管理员
   res = await admin.query({ type: '2' });

+ 1 - 1
src/views/admin/mechanism/detail.vue

@@ -108,7 +108,7 @@ const searchOther = async () => {
     codeList.value = data.filter((i) => i.value != 'CJGLY');
   }
   // 角色
-  res = await role.query();
+  res = await role.query({ account_type: '2', is_use: '0' });
   if (res.errcode == 0) roleList.value = res.data;
   // 管理员
   res = await admin.query({ type: '1' });