Browse Source

任务计划

duy 2 years ago
parent
commit
8ccc719f4e
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/views/static/plan.vue

+ 15 - 0
src/views/static/plan.vue

@@ -69,9 +69,12 @@
  import {getObjValue,getArrValue} from "js-fast-way"
  import { getdepartmentList,getuserList} from "~api/other";
  import {getDiffYear} from "~uti/tools";
+ import {useAppStore} from "~src/store";
+ const useAppState = useAppStore()
 
  onMounted(()=>{
     getDepartmentDict()
+    getUserDict()
     getImageData()
     planFinishedRatio()
  })
@@ -182,6 +185,18 @@ const getDepartmentuserDict=async(id)=>{
 
     }
 }
+//获取所有员工
+
+const getUserDict=async()=>{
+    const {error, code, data} = await getuserList({tenantId:useAppState.tenantId})
+    if (!error && code === 200) {
+        departmentPeople.value = getArrValue(data)
+
+    } else {
+        departmentPeople.value = []
+
+    }
+}
 </script>
 <style lang="scss" scoped>
 @import "~src/styles/home/index.scss";