From be8d7e4f0aea2b49ac7a9963df6482864abe3502 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期二, 02 十二月 2025 16:11:44 +0800
Subject: [PATCH] 修改

---
 src/views/work/qualityInfo/infrastructureMng/maintainPlan/components/editDialog.vue |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/views/work/qualityInfo/infrastructureMng/maintainPlan/components/editDialog.vue b/src/views/work/qualityInfo/infrastructureMng/maintainPlan/components/editDialog.vue
index 015d7a9..b6236d2 100644
--- a/src/views/work/qualityInfo/infrastructureMng/maintainPlan/components/editDialog.vue
+++ b/src/views/work/qualityInfo/infrastructureMng/maintainPlan/components/editDialog.vue
@@ -9,7 +9,7 @@
         :close-on-click-modal="false"
     >
       <el-form :model="state.form" size="default" ref="superRef" :rules="state.formRules" label-width="180px">
-        <el-form-item v-if="state.isAdmin" label="企业:" prop="companyId">
+        <el-form-item v-if="state.isAdmin" label="单位:" prop="companyId">
           <el-select v-model="state.form.companyId" placeholder="请选择" :disabled="state.title =='查看'" clearable @change="getDeptList">
             <el-option
                 v-for="item in state.companyList"
@@ -232,7 +232,7 @@
 import {getDepart} from "@/api/orgStructure/depart";
 import {listUser} from "@/api/system/user";
 import {getMaintenancePlanDetail, getStandingBookList, updateMaintenancePlan} from "@/api/infrastructureMng/ledger";
-
+import {getEmployeeRecords} from "@/api/onlineEducation/user";
 const emit = defineEmits(["getList"]);
 const dialogVisible = ref(false)
 const superRef = ref()
@@ -467,16 +467,9 @@
 }
 
 const getUserList = async (companyId)=> {
-  const res = await listUser({pageIndex: 1,pageSize: 999,companyId: companyId})
+  const res = await getEmployeeRecords({companyId: companyId})
   if(res.code == 200){
-    state.userList = res.data.list?res.data.list.map(item=>{
-      const user = item.id
-      const {id, ...data} = item
-      return {
-        ...data,
-        userId: user
-      }
-    }):[]
+    state.userList = res.data ? res.data :[]
     if(state.form.deptId){
       state.interUserList = state.userList.filter(i=>i.deptId !== state.form.deptId)
     }else{

--
Gitblit v1.9.2