diff --git a/env/.env.development b/env/.env.development
index 4451dc4..44dd13a 100644
--- a/env/.env.development
+++ b/env/.env.development
@@ -4,5 +4,5 @@ NODE_ENV = 'development'
VITE_DELETE_CONSOLE = false
# 是否开启sourcemap
VITE_SHOW_SOURCEMAP = true
-#VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot'
-VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
\ No newline at end of file
+VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot'
+#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
\ No newline at end of file
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index f1fe650..fecb88a 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -20,10 +20,19 @@ export function queryPostByUserIdApi(userid : string) {
* @param config 用户信息
* @returns
*/
-export function editUserApi(config) {
+export function editUserApi(config : object) {
return http({
url: '/sys/user/appEdit',
method: 'PUT',
data: config
});
+}
+
+/*根据部门Cod和角色Id查询用户信息*/
+export function queryUserByOrgRoleApi(config : object) {
+ return http({
+ url: '/cxcChangesInPersonnel/cxcChangesInPersonnel/queryByDepCodRoleId',
+ method: 'GET',
+ data: config
+ })
}
\ No newline at end of file
diff --git a/src/pages-humanResource/absence/add.vue b/src/pages-humanResource/absence/add.vue
index 7a44c43..69388f6 100644
--- a/src/pages-humanResource/absence/add.vue
+++ b/src/pages-humanResource/absence/add.vue
@@ -27,6 +27,8 @@
:rules="[{ required: true, message: '请选择结束时间' }]" :min-date="minEndtime" />
+
+
{
if (valid) {
+ console.log('----',model)
const submitData = {
...model,
type: model.type[model.type.length - 1], // 取最后一级
@@ -196,7 +203,7 @@
const startMutilProcess = (id) => {
startMutilProcessApi({
- flowCode: "dev_cxc_qxj",
+ flowCode: "dev_cxc_qxj_new",
id,
formUrl: "modules/qxj/modules/CxcQxjBpmModel",
formUrlMobile: "leaveApplication"
@@ -330,11 +337,28 @@
minEndtime.value = model.begintime
}
+ const getHrList = () => {
+ queryUserByOrgRoleApi({
+ roleId: '1554379432313397250',
+ orgCode: userStore.userInfo.orgCode
+ }).then(res => {
+ model.hr = res.result[0].username
+ hrData.value = res.result.map(item => {
+ return {
+ label: item.realname,
+ value: item.username
+ }
+ })
+ })
+ }
+
onLoad(() => {
/*获取请假类别*/
getTypeList()
/*获取审批领导*/
getZwmcAndExa()
+ /*获取劳资员*/
+ getHrList()
/*获取*/
queryHisDate()
});