|
@@ -131,13 +131,16 @@ import {onActivated, ref,watch} from "vue";
|
|
|
import projectApi from '~api/program/project.js';
|
|
|
import contractApi from '~api/project/project-contract.js';
|
|
|
import {getArrValue,getObjValue} from "js-fast-way"
|
|
|
-
|
|
|
+import { getuserList} from "~api/other";
|
|
|
+import {useAppStore} from "~src/store";
|
|
|
+const useAppState = useAppStore();
|
|
|
|
|
|
//初始变量
|
|
|
const router = useRouter()
|
|
|
const useRoutes = useRoute()
|
|
|
const dataId = ref(useRoutes?.query?.id ?? '')
|
|
|
const dataType = ref(useRoutes?.query?.type ?? '')
|
|
|
+
|
|
|
//缓存页面被激活时
|
|
|
onActivated(() => {
|
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
@@ -176,7 +179,19 @@ const getPlanByProjectId=async()=>{
|
|
|
// milestoneData.value=[]
|
|
|
}
|
|
|
}
|
|
|
+//获取所有员工
|
|
|
+const userList=ref([])
|
|
|
+//获取部门人员列表
|
|
|
+const getUserDict=async()=>{
|
|
|
+ const {error, code, data} = await getuserList({tenantId:useAppState.tenantId})
|
|
|
+ if (!error && code === 200) {
|
|
|
+ userList.value = getArrValue(data)
|
|
|
|
|
|
+ } else {
|
|
|
+ userList.value = []
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
//类型tab数据和相关处理
|
|
|
const tabKey = ref('')
|