From afb26685e0dd38e6a1eada6ad207177666d5642b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 12 五月 2026 18:02:15 +0800
Subject: [PATCH] 班组长根据角色获取
---
src/views/productionManagement/productionTeam/index.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/views/productionManagement/productionTeam/index.vue b/src/views/productionManagement/productionTeam/index.vue
index b3fdcf9..39f79ae 100644
--- a/src/views/productionManagement/productionTeam/index.vue
+++ b/src/views/productionManagement/productionTeam/index.vue
@@ -67,7 +67,7 @@
filterable
>
<el-option
- v-for="user in userList"
+ v-for="user in leaderList"
:key="user.userId"
:label="user.nickName"
:value="user.userId"
@@ -114,7 +114,7 @@
getTeamDetail,
getTeamListPage,
} from "@/api/productionManagement/productionTeam.js";
-import { userListNoPageByTenantId } from "@/api/system/user.js";
+import { teamLeaderList, userListNoPageByTenantId } from "@/api/system/user.js";
const { proxy } = getCurrentInstance();
@@ -171,6 +171,7 @@
const open = ref(false);
const title = ref("");
const userList = ref([]);
+const leaderList = ref([]);
const selectedIds = ref([]);
// 鍙�夋嫨鐨勬垚鍛樺垪琛紙鎺掗櫎鐝粍闀匡級
@@ -268,6 +269,13 @@
/** 鑾峰彇鐢ㄦ埛鍒楄〃 */
function getUserList() {
+ teamLeaderList().then((response) => {
+ if (response.code === 200) {
+ leaderList.value = response.data || [];
+ }
+ });
+
+
userListNoPageByTenantId().then((response) => {
if (response.code === 200) {
userList.value = response.data || [];
--
Gitblit v1.9.3